Page 1 of 1

Problems after a PHPSuExec install

Posted: Fri Aug 05, 2005 1:47 pm
by fieldyweb
My ISP shyper.com has recently been having a lot of Denial of Service attacks, and because of that they have installed a package called PHPSuExec on thier servers. I have been using Serendipidy for over 2 weeks fine, they install this software and now all i get is errors...

I got an Internal Server error 500 to start with, contacted thier support, no help, looked up PHPSuExec on google, and from what i gather the php files are not allowed apermissions of 777 and should be at 755, so i haveced all the permissions down from 777 to 755 and now i get an error

Warning: main(/home/davefiel/public_html/diary/serendipity_config_local.inc.php): failed to open stream: Permission denied in /home/davefiel/public_html/diary/serendipity_config.inc.php on line 179

Warning: main(): Failed opening '/home/davefiel/public_html/diary/serendipity_config_local.inc.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/davefiel/public_html/diary/serendipity_config.inc.php on line 179

Fatal error: Call to undefined function: serendipity_db_connect() in /home/davefiel/public_html/diary/serendipity_config.inc.php on line 200

could anyone point me in the right direction, i have the version released august 2005 running...

I will post and give any info which could help resolve this issue.. I'm stuck.and i don't want to use the poor alternatives (of which b2evolution has the same issue on thier servers) I'm also working with the engineer from Shyper, and if he has any updates i will post them here..

Resolved

Posted: Fri Aug 05, 2005 2:22 pm
by fieldyweb
As i hate going onto forums and seeing the same problem as i have with no answer, here is how i resolved the problem

When PHPSuexec is installed it seems to have aproblem with .htaccess files

Quote
.htaccess
Under the old Apache Module mode you were able to manipulate the PHP settings from within a .htaccess file placed in the script's directory.

For example you could turn off the php setting "magic_quotes_gpc" with this line in .htaccess:

php_value magic_quotes_gpc on

With PHP running as CGI/phpsuexec manipulating the PHP settings is still possible however it can not be done with .htaccess. Using .htaccess with php_value entries within it will cause a 500 internal server error when attempting to access the scripts. This is because php is no longer running as an apache module and apache will not handle those directives any longer.

All php values should be removed from your .htaccess files to avoid the 500 internal server error. Creating a php.ini file to manipulate the php settings will solve this issue.

http://www.digitalpulsehosting.com/supp ... article/9/

So i deleted the .htaccess file, and for some reason the file

/home/davefiel/public_html/diary/serendipity_config.inc.php

was zero bytes

So i deleted it, and then was upble to run the application again, after i uploaded the latest files and run the install program