Sometimes you may be required to remove a user from cPanel backups due to inode usage or directory size, in order to do that you can use the web interface to exclude those users in WHM, but i prefer to do everything through the backend, and for those of you who maybe want to write […]
Enable fopen only for a specific cPanel or linux user with suPHP
For security reasons most hosts will have fopen disabled. This is for security reasons but there are also times when it is legitimately needed. Below I will show you how to enable fopen for a single cPanel user instead of server wide. This may be the error you get: Warning: fopen(): URL file-access is disabled […]
How to keep cPanel httpd.conf settings from being reset or removed
Have you made a change to the /usr/local/apache/conf/httpd.conf file and it’s not sticking? This is because you are not supposed to edit that file directly on a cPanel server! Many linux guru’s have made this mistake just because they are not used to cPanel! When you need to edit the httpd.conf file or settings for […]
How to change cPanel theme for specific user
All cPanel account information for each specific account is stored in the /var/cpanel/users/USERNAME If you need to change the specific theme for a certain user this is the file you need to edit, and the value you need to edit is described below: vi /var/cpanel/users/myuser BWLIMIT=unlimited DEMO=0 DNS=domainname.com FEATURELIST=default HASCGI=1 IP=IPHERE LANG=english LOCALE=en MAXADDON=0 MAXFTP=0 […]
How to check cPanel CPU and Memory usage for a specific user
There are a few ways to do this and I will explain some of them for you below. cPanel has a “built in” way to view this but I will give you a way to specify the amount of days you want the stats for and a few other neat tricks. cPanel Resource Usage Stats […]
How to check inode usage on linux for a specific cpanel user account or directory
If you’re a linux system administrator you’re probably already familiar with the term “inode”. For those of you who are not, an inode is basically a way to measure the amount of files a user has. This includes every email, cache file, image, and so on. If it has a filename it is considered an […]
How to install Git under CentOS running cPanel
Recently when working on creating a new bash script to calculate inode usage I attempted to install Git on a CentOS 5 cPanel server and got a lot of Perl errors. After running the install command from Yum as you can see in the output below it was complaining about dependencies. Here’s a few of […]
How to restore a BlueHost backup on another cPanel server (convert to default backup/restore format)
If you have had the joy of trying to move away from BlueHost, or HostGator (may be others as well), you have found out that their fully backups do not restore easily on another cPanel server. This is because BlueHost and HostGator have modified the structure of the backup to, in my opinion, make it […]
How to obtain root, install and run XBMC on D-Link Boxee Box
If you happened to be one of the ones (like me) who jumped on board with purchasing the first generation Boxee Box manufactured by D-Link, you probably ended up being just as disapointed as I was. I originally purchased the Boxee Box because I was using, and liked, the Boxee fork of XBMC…unfortunately the support […]
Generate an inode report (file count) for Debian, CentOS, cPanel, RHEL, with INODES shell/bash script
If you have every used shared hosting, or are involved with the hosting business in any way, you should already know what an inode is. Each time a file is created, uploaded, and so on, an inode is created. This inode stores information like ownership, permissions, etc … basically all the metadata about the file. […]