Current time: 02-17-2025, 08:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] No input file specified
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #7
RE: No input file specified
Okay, this may be caused by either (1) apache sending an incorrect path to the php file to php5-cgi; or (2) something (permissions?) that prevents php5-cgi from running the script.

The first should be easy to test. Look in your /var/log/apache2/users/domain.tld-error.log and copy us some of the "mod_fcgid: call /path/to/php/file ..." lines. Does the path look correct?

For the second one, I would try a more "direct" approach than to check for every permission in the path to the file. What we will do is try to run the file under the user of this website. To do so, start by:
Code:
grep domain.tld /etc/passwd
This will answer you with the vuXXXX user that corresponds to "domain.tld". Does it match the owner of the /var/www/fcgi/domain.tld folder? If it doesn't, ispcp got confused somehow about the users of the system and we have found the problem.
If it matches, proceed to switch to this user, by runnig (as root):
Code:
cd /; su -s/bin/sh vuXXXX
At this point you have the very same permissions than the website user. Now try to run the php file and see if any error comes out, or the page is rendered correctly (you'll see the output):
Code:
export PHPRC="/var/www/fcgi/<domain.tld>/php5/"
/usr/bin/php5-cgi -f /path/to/the/php/file/that/you/saw/in/the/mod_cgid/call/line

Okay, what happened? If there's an error, this should lead you to the appropiate solution.

If everything went well, then we go back to the beggining in that there's some problem about the path that apache tells php where to find the file. If this is the case, the last idea I have right now is to try enabling the "cgi.fix_pathinfo" directive in the domain's php.ini file and restarting apache.

I hope this helped. Please tell us what happened with this issue as there seems to be other users seeing it.
01-13-2011 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: No input file specified - surfweb82 - 01-12-2011, 10:30 PM
RE: No input file specified - surfweb82 - 01-13-2011, 04:04 AM
RE: No input file specified - joximu - 01-13-2011, 10:16 AM
RE: No input file specified - MePha - 01-13-2011, 12:16 PM
RE: No input file specified - BeNe - 01-13-2011, 04:14 PM
RE: No input file specified - kilburn - 01-13-2011 04:54 PM
RE: No input file specified - surfweb82 - 01-13-2011, 05:22 PM
RE: No input file specified - kilburn - 01-13-2011, 05:45 PM
RE: No input file specified - surfweb82 - 01-13-2011, 05:56 PM
RE: No input file specified - kilburn - 01-13-2011, 06:23 PM
RE: No input file specified - surfweb82 - 01-13-2011, 06:27 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)