I was having problems getting php scripts to parse on some virtual hosts i set up on my Apache server. When i entered the address to the script in my browser, all i got was the sour message; “No input file specified“.
I searched long and hard on google for a solution, and finally found one after tedious reading of forums and articles. Now, im not really sure if this is the best way to solve this problem, or even the safest way. But it worked for me.
All i had to do was comment out the DOC_ROOT line in my PHP.INI file.
I haven’t encountered any bad side effects yet, but i take no responsibility for the safety of your server(s) if you decide to apply this solution.
Good luck :)