Error 500 After convert PHP CLi to suPHP (CGI)

wanener

Verified User
Joined
Apr 16, 2012
Messages
23
hi there
for a long time we face a problem that web scripts and cms like joomla create directories with apache:apache permission

i google it and end to this http://help.directadmin.com/item.php?id=197

i tried to do this and after that i get Error 500 on most of the website that run joomla
and a error for site that protected by source guradian !

PHP script /home/domian/domains/dmian.com/public_html/index.php is protected by SourceGuardian and requires the SourceGuardian loader ixed.5.2.lin. The SourceGuardian loader has not been installed, or is not installed correctly. Please visit the SourceGuardian php encoder site to download required loader.


i also tried http://help.directadmin.com/item.php?id=176 after the first step and now hope

when i use php -v
i get this
Code:
PHP 5.2.17 (cli) (built: Sep  8 2012 03:36:35)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd., and
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies


what is the solution ?
 
You can use find to search suphp related file, but, for now just revert to cli and suphp should not be used.
For go to CLI edit options.conf set php5_cgi=no and php5_cli=yes

Than rebuild php

Regards
 
You can use find to search suphp related file, but, for now just revert to cli and suphp should not be used.
For go to CLI edit options.conf set php5_cgi=no and php5_cli=yes

Than rebuild php

Regards

thanks
i used following command

./build set php5_cgi no
./build set php5_cli yes
./build all d
./build rewrite_confs

hope to solve proplem
all sites are offline for now !
first they are show Error 500
and now

Unable to connect
Firefox can't establish a connection to the server at

i thinks that this commands are recommended by direct admin because on help.directadmin.com
 
What error you get if you manually restart apache?

Starting httpd: Syntax error on line 26 of /etc/httpd/conf/extra/httpd-directories.conf:
Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration
 
mmmh strange that rewrite_confs didnt fixed that o.O check that file...

You should have: <IfModule mod_suphp.c>


if you got that means that apache notice the mod_suphp.c file, find and remove that and than restart apache again

Regards
 
Back
Top