-
Recent Posts
Categories
Archives
Monthly Archives: June 2011
Updating Perl on cPanel
This guide is related to my earlier guide that shows you how to install Perl on cPanel servers. First check if you need an update. Run the following command and it will show you which version of perl you have … Continue reading
Posted in cPanel Guides
Leave a comment
Installing Perl on cPanel
So you found yourself on a newly provisioned server, but perl doesn’t seem to work. Maybe cPanel scripts are all breaking and giving you perl errors. What do you do? Install perl of course! But on cPanel we DO NOT … Continue reading
Posted in cPanel Guides
Leave a comment
Run and Debug Awstats Manually From Shell
If Awstats does not seem to be working correctly and there are no errors in the /usr/local/cpanel/logs/stats_log log file and there are no errors from running /scripts/runweblogs you can debug things further by running Awstats manually. To do so will … Continue reading
Posted in cPanel Guides
Leave a comment
SquirrelMail Failed Login
When SquirrelMail breaks you may get errors like these when logging in. You will find that Horde is probably broken as well: Try this script: Your problems should go away!
Posted in cPanel Guides
Leave a comment
Horde Database MySQL Error
If Horde is not able to connect to the MySQL database ‘horde‘ it may give an error about SQL and the sessions table. To fix this you can try running the script /sripts/fullhordereset but it may also fail. If that … Continue reading
Posted in cPanel Guides
Leave a comment
Disable Exim Catch-all Address Manually on cPanel
To disable the catchall address for a particular user/domain you just need to edit one file! So if you ever need to do this en mass you can easily script it. You can edit /etc/valiases/ and change the line that … Continue reading
Posted in cPanel Guides
Leave a comment
Basic Exim Whitelisting on cPanel
This is super simple. You can add domains that are hosted on the server to /etc/rblbypass. This will bypass all RBL filtering for those domains. You can also add the remote IP of a host that is being rejected to … Continue reading
Posted in cPanel Guides
1 Comment
Broken Relay Daemon on cPanel
cPanel is generally very stable, but if you find that the relay daemon has failed there is an easy fix. From the server make sure you kill all running antirelayd processes. Now run: You should now cat the /etc/relayhosts file … Continue reading
Posted in cPanel Guides
Leave a comment
Using Awk to Manage Fields and Swap Data
We all know how to use cut with a delimiter to print specific fields. What do you do when you need to swap the position of the fields around? Cut won’t do that, but awk will! Lets say we have … Continue reading
Posted in Bash One-Liners
Leave a comment
550 Relaying Prohibited by Administrator
If you are receiving the following error on your cPanel server: 550 Relaying Prohibited by Administrator Run the following cPanel script to fix this issue:
Posted in cPanel Guides
Leave a comment