Knowledgebase
How to tell if server has suphp
Posted by Skeptical, 06-26-2009, 07:31 PM | Is there a reliable way via php cli or a system command whether or not httpd, or a certain site, has suphp enabled?
|
Posted by zacharooni, 06-27-2009, 02:04 AM | Run this in root cli:
/usr/local/cpanel/bin/rebuild_phpconf --current
|
Posted by Rekhatitus, 06-27-2009, 03:06 AM | you can also know this by looking into your php info page.
|
Posted by HivelocityDD, 06-30-2009, 10:10 AM | php
system('id');
?>
Granted, it assumes Linux and that the whoami command is installed but
it should work. If it doesn't come back with the username of the
script owner, it isn't working (in the simplest case).
|
Posted by larwilliams, 06-30-2009, 05:32 PM | That would only prove that either open_basedir is set, or "system" has been added to the "disable_functions" option.
If, in addition, a phpinfo() output indicates that the Server API is CGI, then it's a safe assumption that SuPHP may be in use.
|
|
Add to Favourites
Print this Article |
Also Read