Retired Documentation:  You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.

Troubleshooting

Main page content appears on every page / I get 404s except on the main page / "No Input File Specified"

If you encounter any of the above while trying to navigate your site, please review this Knowledge-Blog entry.

Running PHP as CGI

People using servers that run PHP as a CGI process tend to encounter more difficulties than those with servers running PHP as a web server module. Here are some additional things you can try.

Typically, these tips will not apply to people on servers running PHP as a web server module. Usually, they only apply to people on servers running PHP as a CGI process and even then not every user will need to do any of these.

Add "shebangs"

This tip will only apply to some people on web servers running PHP as a CGI process. Please consult your Host or server admin to determine if you will need to perform this.

On some servers, you will need to add a "shebang" line to two files in order to have ExpressionEngine work. The actual syntax of the line can vary from server to server, so be sure to consult your Host or server admin for the correct syntax.

In the following two files:

  1. index.php
  2. system/index.php

You will need to add the following "shebang" line immediately before the opening PHP code. The top of your files will look similar to:

#!/usr/bin/php
<?php

File Permissions

Some "PHP as CGI" servers automatically set uploaded files so that they do not have permission to "execute", which can cause problems with ExpressionEngine. Make sure that all of your .php files are set to 755 (except those that are specifically mentioned as having other permissions in the instructions above).

HTTP Headers

Some "PHP as CGI" servers also do not like it if ExpressionEngine explicitly sends its own HTTP Headers. Try going into General Configuration and turn the "Generate HTTP Page Headers?" setting to "No".

If you cannot log into the Control Panel, then you will need to manually change the setting inside your system/config.php file:

$conf['send_headers'] = "n";

Top of Page