In order to properly stop httpd/apache on a cPanel server is to run the below commands as the root user in a shell prompt:service chkservd stop (the checkservd service is a script written by cPanel that checks the status of services, and if a service has failed or not running will automatically restart the service. Therefore if you ever wonder why httpd/apache starts back up after you have stopped it, chkservd will be your answer)
server httpd stop (this is …
Results > Posts Filed Under > Cpanel
The proper way to stop&start httpd/apache on a cPanel server
Cpanel Errors, WHM errors
error 1)
cpanel is showing diskusage full
solution
#find / -user username -ls >> used to find the files that are owned by that user
#find / -user uid  -ls    >> used to find the files that are owned by the user by looking the uid. The uid can found from/etc/passwd
error 2)
whm is not showing correct disk space
before running this Go to cPanel Update Config, and change config to auto update to last STABLE release and /scripts/upcp –force
/scripts/fixquotas
/usr/local/cpanel/cpkeyclt –sync
Useful Cpanel commands
On a RedHat,Centos, fedora CPanel servers, here are the useful services:
bandmin
chkservd
cpanel
crond
exim
httpd
mysql
named
proftpd
CRON INFO:
Root crontab:
crontab -e
To edit a users cron jobs
crontab -u username -e
Replace username with the actual username of the client you want to edit.
/scripts/adddns Add a Dns Entry
/scripts/addfpmail Install Frontpage Mail Exts
/scripts/addservlets Add JavaServlets to an account (jsp plugin required)
/scripts/adduser Add a User
/scripts/admin Run WHM Lite
/scripts/apachelimits Add Rlimits (cpu and mem limits) to apache.
/scripts/dnstransfer Resync with a master DNS Server
/scripts/editquota Edit A User’s Quota
/scripts/finddev Search For Trojans in /dev
/scripts/findtrojans …