"No Input file specified" problem for CodeIgniter

Today I found a problem working with CodeIgniter. When I tried to check my current in live site it says “No Input file specified“. I googled it and founded that the problem was not with CI. It occurs when website in PHP scripts runs in APACHE CGI server. If there is no file in requested URL Apcache raises this error, that is if the pages are generated dynamically like Joomla/CI etc. There are lots of solution in the net.

The solution I found for CI is described here.

Open CI’s config.php file from application folder. Configure these two lines

$config[‘index_page’] = “index.php?”; //remeber index.php + ?
$config[‘uri_protocol’] = “AUTO”;

Now the change in your URL will be like this

Please inform me if there are better solution instead of .htaccess. Wish it will help you who face this kind of problem with CodeIgniter.

Khilgaon, Dhaka

This entry was posted in Apache, CodeIgniter, php. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s