Hi,
How can I verify that suPHP is enabled?
Hi,
How can I verify that suPHP is enabled?
From your shell, just try this one, it will give you the handlers enabled for PHPs in the server.
root@xxx.xxx.xxx.xxx [~]# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled
Abhilash S V
Unix Admin
Make a php file, change the permissions on that file to 777 and open it in a browser. If it says 500 Internal Server error, your most probably running suPHP.
Alternatively,
If you have access to WHM - login, in the menu find Configure PHP and SuExec
Check the drop down box for "PHP 4/5 Handler" - and if beside that it says "suPHP" - ur running it
Edit: Or shell it as above. How did you post ahead of me, that's just weird. LOL.
Last edited by darren.nolan; 08-01-2008 at 02:58 PM. Reason: Cause.
SuPHP activity is logged in /usr/local/apache/logs/suexec_log. If you tail it, you will see if there is any current activity:
Code:tail -f /usr/local/apache/logs/suexec_log
If PHP has write access it is running suphp. For instance, check for write perms on your current directory, or try creating a file.