Current time: 11-15-2024, 07:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
Update from 1.0.0 to trunk: PHP files not interpreted
Author Message
nuke3d Offline
Junior Member
*

Posts: 107
Joined: Sep 2007
Reputation: 1
Post: #2
RE: Update from 1.0.0 to trunk: PHP files not interpreted
Some additional information:

- When I go to http://domain.com the PHP code is not interpreted and the index.php is printed out to the user.
- When I rename the index.php to index.php.old fcgid apparently tries to run it directly but fails because it's not an executable (!!! could this be a security hole? Seems like arbitrary executables could be run by the user. Only with his own credentials, but stil...). The line in suexec.log then reads:
Quote:uid: (2010/vu2010) gid: (2010/vu2010) cmd: index.php.old
and then some error message.
- When I rename index.php to index.old it wants to download the file as expected
- When I then change the line
Quote:FCGIWrapper /var/www/fcgi/domain.com/php5-fcgi-starter .php
in "/etc/apache2/sites-enabled/ispcp.conf" to
Quote:FCGIWrapper /var/www/fcgi/domain.com/php5-fcgi-starter .old
It correctly runs the index.old file as a PHP script! Mind = blown...
09-16-2010 11:12 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Update from 1.0.0 to trunk: PHP files not interpreted - nuke3d - 09-16-2010 11:12 AM

Forum Jump:


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