Tag Archives: cpanel

How do I disable cphulk from the command line?

You can disable cPhulk‘s lockout by running the following command.

/usr/local/cpanel/bin/cphulk_pam_ctl –disable

You can then re-enable it by running

/usr/local/cpanel/bin/cphulk_pam_ctl –enable

Tagged , , ,

Disabling FTP access for a particular cPanel account when using pure-ftpd?

If you want to disable ftp for a particular account, there is no way you can do it through whm or cpanel.

If you are using pure-ftp, you can see that there is a section in the binary file “/usr/sbin/pureauth” which includes the solution.

# disallow accounts in ftpusers
if ( any( sub { lc($acctowner) eq lc($_) }, @ftpusers ) ) {

So you can specify the user-name of the account which you want to disable ftp in /etc/ftpusers (one username per line), and restart the pure-ftpd service.

Tagged , , ,

How do I fix PHP MIME Types when migrating from PHP 4 to PHP 5?

The following script is what updates the MIME types properly from PHP 4 to PHP 5.

/usr/local/cpanel/bin/update_php_mime_types –force={php version number} –user={username}

eg to force use of PHP 5.

/usr/local/cpanel/bin/update_php_mime_types –force=5 –user=testuser


Tagged , ,