All Entries in the "Quick fixes" Category
Root’s emails to another address
Issue : How can mails to root@hostname.com be redirected to another email address? Solution : If you have ‘root’ access to the server then open the file /etc/aliases in your favorite editor. Look for the section “# Person who should get root’s mail” and make the change as required.
Unpacking of archive failed
Issue : Unzipping of an archive fails with the following error : Updating : gzip 1/2 Error unpacking rpm package gzip-1.3.5-11.el5.centos.1.i386 error: unpacking of archive failed on file /bin/gunzip: cpio: rename Failed: gzip.i386 0:1.3.5-11.el5.centos.1 This is happening since the last cPanel update only. Fix : This might be a problem due to the attributes of [...]
Access Denied: Referrer Check
Issue : Following message occurs every time when trying to connect to an own dedicated server from other servers. Access Denied: Referrer Check Functions in cPanel / WHM are available only directly through the cPanel and WHM interfaces or through our XML API. It appears that this request is coming from a referring site and [...]
Security concerns in executing binary files
Issue : An application requires execution of a binary file. A separate account has been created but do not want to turn on the exec() function citing security concerns. What is the best way to go about this ? Solution : If it is a php suexec server then you can place a custom php.ini [...]
mail folder taking up huge space
Issue : No email accounts have been created on the domain but still the mail folder is taking up huge space. Solution : When a cPanel account is created, a default email account with the cPanel username is also created automatically. In this case it seems that it has been set as catchall which is [...]
How to find files containing a specific word ?
Issue : How to find files containing a specific word and store the results in another text file ? Solution : Use the following command : grep -R word /directory/* > filename Use -iR instead of -R for case insensitive search. This approach will take some time depending on the size and number of files. [...]
Cannot delete an email address after account rename
Issue : Account was renamed from abc.com to xyz.com. After renaming, when trying to delete an old email address ( test@abc.com), following error occurs : “The e-mail account test@abc.com was successfully deleted. Sorry, you do not have access to the domain abc.com” Fix : Check the file /home/user/.cpanel/email_accounts.yaml and remove any entries pertaining to the [...]
2010 SpamAssassin bug – Update rules now!
If you are using SpamAssassin then you need to update the rules now. There is a bug in the rules which will cause emails with a date of 2010 to be scored as spam. Here is an excerpt from the SA website : =============================== Versions of the FH_DATE_PAST_20XX rule released with versions of Apache SpamAssassin [...]
How to clear /tmp partition
Issue : How to clear unwanted stuff from the /tmp partition on the server? Fix : Run the following command : tmpwatch –mtime –all 48 /tmp The above command will remove all files and folders from the /tmp which have not been accessed in the last couple of days (24*2=48). You can modify the number [...]
Apache not starting after a fresh cPanel install
Issue : On a brand new server with a clean cPanel install, apache does not want to start. root@server [~]# service httpd start Syntax error on line 416 of /usr/local/apache/conf/httpd.conf: UserDir “enable” keyword requires a list of usernames root@server [~]# Fix : This usually happens when Apache mod_userdir Tweak is enabled in WHM before adding [...]
Uploaded files not visible in File Manager
Issue : After uploading the file via File Manager, it says, File 100% Uploaded. However, the file is not there when viewing the folder. Fix : One cause for this can be ClamAV Anti-Virus. If you have ClamAV installed then un-install it and see if the problem persists.
Mailing list redirecting to another host
Issue : The domain is hosted on the local server. However, the mails are controlled by an external server. The mailing lists is not working properly as it gets redirected to the local server instead of the remote mail server. Solution : This happens when there is a mismatch in the mail man settings. By [...]
Nameserver error while trying to add a domain
Issue : Following error occurs when trying to add a domain to a cPanel account : Please transfer the domain to this server’s nameservers or have your admin add one of its nameservers ips to /etc/ips.remotedns and make the proper A entries on that remote nameserver. Solution : To get around this, add the remote [...]
Disable password reset for cPanel users
Issue : How to restrict cPanel account users from resetting their account passwords? Solution : 1. Create a new feature list via WHM >> Packages >> “Feature Manager” 2. Keep the ‘Change Password’ option unchecked. 3. Edit the concerned packages and assign the new feature list to them. Now the users would not be able [...]
Restoring emails for a Parked domain
Issue : An erstwhile regular account was migrated to be a parked domain on another account. How can the email messages be restored to the parked domain? P.S. Backup of the original account is available. Solution : Following assumptions have been made in this case : Parked domain : abc.com New account : xyz.com ( [...]

1800 810 6547