As of Plesk 8.x, Parallel’s has yet to provide SuPHP support for Plesk. However it is possible to add this manually, however it does involve using a 3rd party repo and involves recompiling php. If you are running a VPS, you will need to check with your Hosting provider to see if this is something they can do for you or if you would be responsible for doing so.
And with that, let’s get to the good stuff!
1. In order to install SuPHP on the server, download and install the atomic script
# wget -q -O – http://www.atomicorp.com/installers/atomic | sh
2. Once the script is installed, install SuPHP module using yum
# yum install mod_suphp
3. The next step is to load the SuPHP module with Apache. The suphp installation automatically creates a “mod_suphp.conf” file under the Apache configuration directory, if not create it.
# vi /etc/httpd/conf.d/mod_suphp.conf
and insert the following lines:
#Load the Mod_SuPHP module
LoadModule suphp_module modules/mod_suphp.so
### Uncomment to activate mod_suphp
suPHP_AddHandler x-httpd-php
AddHandler x-httpd-php .php
#Enable the SuPHP engine
suPHP_Engine on
#Specify the path to the configuration directory
suPHP_ConfigPath /etc
Apache calls all the configuration files from the /etc/httpd/conf.d directory by default so there is no need to include the module in the httpd.conf file separately.
4. Now, configuration file under /etc should be present (if not create it)
vi /etc/suphp.conf
copy/paste the following contents as it is:
[global]
logfile=/var/log/suphp.log
loglevel=info
webserver_user=apache
docroot=/var/www/vhosts
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false
errors_to_browser=false
umask=0022
min_uid=30
min_gid=30
x-httpd-php=”php:/usr/bin/php-cgi”
x-suphp-cgi=”execute:!self”
Make sure the “handle_userdir” directive is commented or removed from the file since it is deprecated from the latest version.
5. At the end, we have to restart the httpd service for all these changes to take effect
# service httpd restart
6. Test the SuPHP installation: Create a phpinfo.php file with 777 permission and it should show you an “Internal Server Error” on browsing.


