No announcement yet.

Steps to check if the server is Suexec...!

  • Filter
  • Time
  • Show
Clear All
new posts

  • Steps to check if the server is Suexec...!

    First login into you WHM with the root login details and run following command

    [[email protected]]# /usr/local/cpanel/bin/rebuild_phpconf current

    If server is Suexec then you would have the below information ::

    PHP4 SAPI: suphp
    PHP5 SAPI: suphp
    SUEXEC: enabled


    If you are not sure about Shell .Login into your WHM and in the menu find Configure PHP and SuExec

    Select the drop down box for PHP 4/5 Handler and if beside that it says suPHP then the sever is SuExec enabled.

    If you dont have server login details or WHM access, then you can create a php file under your account from cPanel >> File Manager and change the permissions on that file to 777 and open it in a browser. If it gives 500 Internal Server Error, then most probably running suPHP.

    As well as you can also create the phpinfo page under your account from your cPanel >> File manager For ex. phpinfo.php with the following code

    After creating phpinfo.php page browse it and if it shows Server API = Apache then server is not running PHP in Suexec mode and if Server API = CGI the server is running PHP in Suexec mode.

    Thanks and Regards,
    Web Hosting UK - Leader in Web Hosting & Domain Names