Using cPanel’s standardized hooks system

Working with Standardized Hooks While cPanel’s standardized hook documentation is great it lacks practical examples of how to add and remove non Perl based hooks. We’ll be looking at how to implement a simple bash script to maintain custom entries to Apache’s PHP configuration file across handler and PHP version…

read more

cPanel Tutorials

cPanel for sysadmins! This will be a series of tutorials on some of the more advanced things you can do with the cPanel web hosting automation software. We’ll be covering everything from building RPMs for use with EasyApache 4, automating tasks with the various APIs, standardized hooks to running your…

read more

Softaculous and CageFS

Sometimes when installing CloudLinux after Softaculous is installed Softaculous is unable to detect PHP versions outside of the server’s native PHP installation. The following steps need to be taken to configure the pre_install hooks for Softaculous to recognize alt-php from the command line: # cp /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_install_cagefs{.txt,.php} # cp /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_upgrade_cagefs{.txt,.php} #…

read more

Changing PHP handlers outside of WHM

cPanel makes it easy to change the handler Apache uses to interpret and execute PHP code. Changing the PHP handler is much quicker if done through the command line. EasyApache 3 With EA3 the PHP handler can be changed with /usr/local/cpanel/bin/rebuild_phpconf using the following syntax: DEFAULT_PHPVER PHP4_HANDLER PHP5_HANDLER SUEXEC_MODRUID2 For…

read more

What is DKIM?

DKIM What is it? DKIM (DomainKeys Identified Mail) is a method to validate the authenticity of email messages. When an email is sent it is signed using a private key on the sending mail server and then validated on the recipient mail server using a public key that is contained…

read more