I tried uploading my system in dreamhost, and I always get “No input file specified.” error/notice. Checked the config file but it was ok, I tried to upload the system in another host (my friend’s), and it worked well. However since dreamhost is my main hosting I need to fix this issue.
Anybody who has encountered the same issue before? Need some help.
Actually, it was a tiny addition to the .htaccess file that finally solved it. So, for all you Dreamhost users out there, use this to strip that nasty index.php string from your URLs:
RewriteEngine On RewriteCond $1 !^(index\.php) RewriteRule ^(.+)$ index.php?$1 [L]
It seems the question mark on teh third line is the key.
i have a sneaking suspicion that this has somethign to do with the mod_security apache module enabled by default on Dreamhost Shared account setups.
But, I have no proof.
[Update: After testing a few different scenarios surrounding CI and mod_security on Dreamhost Servers it seems that my sneaking suspicion… snuck away. I thought that is was playing against the mod_rewrite module setup in an anomalous way but this is, as far as I can tell, not the case or the cause.]
That worked for me too, thank you for the workaround of the problem.
I’m however not using Dreamhost servers, but rather my own server that has been configured from the scratch and I’m pretty much interested why this happens.
If someone, that is more enlightened with the mod_rewrite and the apache structure can shed some light on that particular issue?:)
This tends to happen when people are running PHP as a CGI versus an Apache module due to the way the environment is set up. I feel like this has happened enough to warrant a note in the docs.
This page on EE wiki explains in more detail about the different options that programmers have at solving this issue. EE is built off CI and so faces a similar problem in this regard.