Archive for the ‘System Administration’ Category:
Easy way to optimize apache,php & MySQL
There are 2 important scripts to optimize apache,php and mysql very easily. They are
MySQLTuner (Perl) and MySQL Performance Tuning Primer (shell)
They can help diagnose MySQL database performance issues, and provide recommendations on how to solve them.
More »
Domain has exceeded the max emails per hour (200) allowed. Message discarded.
Some times you get error from cpanel
Domain example.com has exceeded the max emails per hour (200) allowed. Message discarded.
Simple solution for it is
echo domain.com=10000 >> /var/cpanel/maxemails
Using both php4 and php5 at the same time in Directadmin
If you wish to use both php4 and php5 at the same time, custombuild will allow you to do this.
Note that you must have the 2 copies of php running as different types, one as CLI and one as CGI (suPhp). You cannot have both running as CLI, and similarly you cannot have both running as CGI.
First, make sure you’re running custombuild.
This is the guide to install it if you don’t have it:
http://files.directadmin.com/services/custombuild/1.1
To setup both php4 and php5, you’ll be editing the options.conf, eg:
Installing ImageMagick in Cpanel
You can install by running one command only
#/scripts/installimagemagick
You can check whether imagemagick is installed or not using
#/scripts/checkimagemagick
If this installation does not work, then you can uninstall it and install it manually
How to mount second hard drive in CentOS 5.x
I was trying to mount second drive in my server which was connected via usb, so I thought to post it here as well
Run
# fsdisk -l
to see the list of drives in server..
second drive will most probably will be sdb
1) Make its partition
# fdisk /dev/sdb
press n
press p
press w
How to create tar archive
Since I started working with cPanel server I always needed to create archives from directories.
For example backing up a user’s home directory.
How can you do this? It’s not difficult at all. For exemple to backup a user home directory you would have to run:
tar -pczf rchive.tar.gz /home/USERNAME
Customize your default apache page in cpanel
You just have to login to your server via ssh.
Navigate to /usr/local/apache/htdocs
# cd /usr/local/apache/htdocs
And finaly edit the file index.html
More »
How to add new RBLs to cpanel Exim
More then a year ago, cPanel added a future to the Exim Configuration Editor for everyone to easily select from two RBLs (spamhaus.org and spamcop.net) that can be used to filter most of the SPAM that a server receives. While this has been great for most of us (enabling a RBL is a simple as selecting a check box in WHM and pressing the Save button), there are a few admins that would have liked to add additional RBLs to the list that Exim uses to filter SPAM emails. RBLs like dnsbl.njabl.org, list.dsbl.org, dul.dnsbl.sorbs.net, etc. are all considered useful by many, but not included by default.
The question is how can such a RBL be added to Exim ?
Well it’s not that hard !
First you will have to login to your server using ssh.
After a successful login:
- Change directory to /usr/local/cpanel/etc/exim/acls/ACL_RBL_BLOCK
More »
How to enable Passive ftp in Pure FTPD
For users that are behind a firewall it might be required that you enable passive ftp in your ftp server and client.
While enabling passive ftp in your ftp client is simple, doing so in your ftp server configuration files might be a bit tricky if you don’t know what you are doing.
This tutorial will cover Pure-FTPd, the ftp server used on most cPanel powered servers.
Exim configuration and messages in mail queue – cPanel server
If you have cpanel then you can check email queue in cpanel by login to cpanel and then “Email” and then “Manage Mail Queue.
In command line, you can run following command to check queue
# exim -bpc
