/home/virtfs consuming a lot of space?

/home/virtfs is the directory created by cpanel to provide a restricted data access to jailshell users. When a user is logged in via jailshell, a virtual fileystem is created for the cpanel user by mounting only the selected filesystems under /home/virtfs/ so the user can (only) access the data under these filesystems. Since the data in /home/virtfs/ is pointed to the actual data, system would show...

May 2nd, 2011 by Akhthar Parvez 

Create an FTP user on a cPanel server from backend (shell)

Ever wondered how to create FTP users on a cPanel server? Adding FTP using pure-pw (for Pure-ftpd, who uses proftpd anyway?) won’t work because cPanel will overwrite it when you run /usr/local/cpanel/bin/ftpupdate. FYI, that command is being run everytime you add a new account on the server. Here’s the command to create an FTP user on a cPanel server: /usr/local/cpanel/bin/proftpd_passwd...

May 29th, 2010 by Akhthar Parvez 

WHM transfer not fetching accounts

If the WHM is not fetching any accounts on the remote server while Copying multiple accounts/packages from another server, it’s mostly to do with the Perl modules on the remote server. You may get the following message eventhough the packages do exist on the remote server: There are no packages that can be copied from the remote server. FIX: Goto the remote server and run the following script: #...

December 22nd, 2009 by Akhthar Parvez 

PHP CGI T_STRING error

PHP-CGI not working If you get the following error while accessing the PHP page, which is running as CGI: (ASCII=21) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 382 Warning: Unexpected character in input: ‘ in /usr/local/cpanel/cgi-sys/php4 on line 382 Parse error: syntax error, unexpected T_STRING in /usr/local/cpanel/cgi-sys/php4 on line 382 FIX: Set the following under “Paths...

December 22nd, 2009 by Akhthar Parvez 

Courier to Dovecot migration

You can switch the IMAP program from courier to dovecot on a cPanel by using the following steps. # nohup /scripts/setupmailserver dovecot & Note: nohup command is used to run a task with saving the ouput into the file nohup.out instead of standard output. The above cPanel script will install dovecot and disable courier from the system. It will also convert all maildirs into dovecot format. If...

October 10th, 2009 by Akhthar Parvez