Login to WHM >>
Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration
Login to WHM >>
Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration
When suphp is enabled we get the username of the account running the apache process in ” top -c ” command.
When dso is enabled and even suexec is enabled user will be nobody.
To see the username in top command use cgi with SuExec On
View and change the default php version on your WHM sever.
Main >> Service Configuration >> Apache Configuration >> PHP and SuExec Configuration
You can also change and view Apache suEXEC status
If this is a WHM server make sure php handlers are setup correctly. (dso, cgi, suphp etc)
To correct this use
vi .htaccess
AddHandler application/x-httpd-php5 .php
IF IT IS PLESK
go to /var/www/vhost/domain.com/conf/httpd.include
Make sure
php_admin_flag engine on
If you have both php 4 and php 5 installed on your cpanel server and you want to set, say php 5 as default for all the clients. Login to
Cpanel >> php configuration
( This can be viewed only if php 4 and php 5 is installed using easy apache )
php -i | grep php.ini
cd /root/bin (If no bin flder create one)
vi clear_suphp.sh
cd /usr/local/apache/logs
echo > suphp_log
save and exit
chmod 700 clear_suphp.sh
crontab -e
10 */1 * * * /bin/bash /root/bin/suphp_clear > /dev/null 2>&1 (Will execute the cron in every 2hrs)
save and exit
service crond restart