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 particular site, has suphp enabled?
![]() | View Full Version : How to tell if server has suphp 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 particular site, has suphp enabled? zacharooni 06-27-2009, 02:04 AM Run this in root cli: /usr/local/cpanel/bin/rebuild_phpconf --current Rekhatitus 06-27-2009, 03:06 AM you can also know this by looking into your php info page. 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). larwilliams 06-30-2009, 05:32 PM <?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). 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. |