Tag Archives: cpanel

Important CPANEL logs

These cpanel logs are important when troubleshooting: apache: /usr/local/apache/logs/ exim, ssh and others: /var/log/ cpanel: /usr/local/cpanel/logs/

CPanel exim unrouteable address

if exim is showing up errors like “unrouteable address”, it means that exim is trying to send mail locally. If your local dns is borked, you will get this error. The fix is to fix your local mx entry. If you have configured an external dns server, then you should go to DNS functions -> … Continue reading

How to harden and optimise whm/cpanel

Cpanel website provides some good tips to harden your server After login to whm, go to configserver security & firewall and add your IP to the “allow ip” list. https://documentation.cpanel.net/display/CKB/How+to+Prevent+Email+Abuse WHM > Server Configuration > Tweak Settings, Mail -> Set Initial default/catch-all forwarder destination to false https://documentation.cpanel.net/display/CKB/Tips+to+Make+Your+Server+More+Secure go to security center -> security advisor and … Continue reading

cpanel php exec – memory or cannot fork error

If you are using php, and try to run command line scripts containing php command, you will get a loop that fails with a warning “cannot fork” or memory error. This is because you are most likely using suphp in cpanel. While suphp is popular, it fails misery when trying to execute php command line. … Continue reading

cpanel changing document root of primary domain

there might be times when you want to restructure the default public_html directory structure. The document root might reside somewhere deep in for security reasons. go to /var/cpanel/userdata/USERNAME/DOMAIN.COM edit the documentroot line then /scripts/rebuildhttpdconf service httpd restart