inside the mind of a linux admin

PECL install fails / how to compile manually

When attempting to compile using PECL install, you will likely get an error stating: checking whether the C compiler works… configure: error: cannot run C compiled programs. This is due to the environment CentOS and Redhat flavors have for the /tmp directory. Rather than remounting /tmp without exec, you can compile the module manually on […]

Read More

setting up automated rsync backups

From time to time, I’ll hear a request from a customer to setup custom nightly automated backups using ftp, rsync, or scp. I’ve created this script for my own personal backup needs, but have since realized it’s value for implementing in customer environments as well. The script relies on rsync, and can be setup to […]

Read More

view suspended user’s acct size and reason

Use this to output a human readable list of suspended cPanel users. Helpful when performing disk reclamations, outputs an available suspension reason along with size of the account: # cd /var/cpanel/suspended # for i in * ; do echo -n "$i - "; cat $i ; echo -n " ### suspension date: `ls -la $i […]

Read More

new eDesk version 2.0 released today

A long awaited release for eDesk is live as of my evening off this morning. It includes a new frontend, Iframes, and I’ve included separate functionality for separating queues by department and Tier, as well as the addition of the “Search Frog” which allows easy lookup of client information or case details. For more information, […]

Read More

How to give a user access to generate their own Awstats

Sometimes you will find issues where we’re constantly having to regenerate the logs due to server load issues, log file size, or other factors. Or, the customer may actually request this access. We can enable a particular user to update his Awstats through an update link on the top of his Awstats window. Follow the […]

Read More

fix permissions recursively using find

find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; Share on FacebookTweet

Read More

older OSCommerce + mySQL 5.0 Compatibility Workaround

older OSCommerce + mySQL 5.0 Compatibility Workaround

Read More

enable/disable webmail access for a particular user

Yes, you can disable one or more of the Webmail packages on specific accounts or domains: SSH into the server as root and edit the file: /var/cpanel/users/username Now, if you want to disable all webmails then add below lines: skiphorde=1 skipsqmail=1 skipneomail=1 Restart cPanel using /etc/init.d/cpanel restart Share on FacebookTweet

Read More

force a horde update and reset databases

Sometimes you may need to update Horde forcefully due to a database or MySQL version upgrade/downgrade. Additionally, if Horde is not “saving” user preferences or remembering last logins, you can force upgrade Horde by executing following command: /usr/local/cpanel/bin/update-horde –force Please note that it will drop the existing Horde Database and will create a new database. […]

Read More

can’t find user in WHM

cPanel doesn’t know user, or you can’t find the user in WHM * There aren’t account neither in “List Accounts” neither in “Show Reseller Accounts” * Check on /var/cpanel/users/username. Make sure the user is owned by the correct account. It should also have a “DNSX=domain.com” line. * Execute the following commands: # /scripts/updateuserdomains # /scripts/rebuildcpusers […]

Read More
Tweeter button Facebook button Myspace button