HOWTO: Set default site for IP address in Plesk Control Panel

You can select and change which of your Domains your IP address points to by making a simple change in your Plesk Control Panel. This is also useful if you want to preview a site before changing your DNS settings.

1. First, log in to your Plesk control panel,
2. Click on Server.
3. Click the icon for IP Addresses, and you will see a number X under the heading hosting on the far right which indicates how many domains you have on each corresponding IP address.
4. Click on the number you see for the IP address in question.
5. On the next page, you’ll see radio buttons next to each of your domains. Select the radio button for the Domain that you want to see when browsing to your IP address, and then click Set as Default.

Now, when you browse to your IP address, you’ll see the domain that you have selected as Default.

Changing the Plesk Administrator email address

In the Plesk Control Panel you can set your email address for the Plesk Administrator. This address is used for all system-related messages. The address is also stored in the following files on your server, which uses the the popular qmail mail server.

/var/qmail/alias/.qmail-mailer-daemon
/var/qmail/alias/.qmail-postmaster
/var/qmail/alias/.qmail-root

You can edit these files to change the email address as originally configured in Plesk.

You can also have multiple entries. Just make sure that each address is on it’s own separate line and prefixed with an “&” symbol.

&root@example.com
&buddy@example.com
&admin@example.com

qmHandle - a tool for the qmail queue

qmHandle is a tool which can be used to manage the qmail message queue. It’s written in Perl (so fully customizable) and has more features than qmail-qread and qmail-qstat.

You can print queue statistics, like qmail-qstat, with color capabilities.
You can view a message in the queue.
You can remove one or more messages from the queue based on a criterion or use multiple delete requests each having its own criterion.

Download qmHandle from SourceForge. You actually only need the script ‘qmHandle’ Upload it to the server and untar it if necessary. You may download the file directly from SourceForge using the wget command:

http://optusnet.dl.sourceforge.net/sourceforge/qmhandle/qmhandle-1.3.2.tar.gz

Then decompress the file using the tar command.

tar -xvzf qmhandle-1.3.2.tar.gz

First it is recommended to shutdown qmail using the service command to prevent possible corruption of the mail queue.

service qmail stop

When you are done with qmhandle be sure to start it again using the service command:

service qmail start

Use -s to see some basic statistics.

qmHandle -s

Available parameters:

-a : try to send queued messages now (qmail must be running)
-l : list message queues
-L : list local message queue
-R : list remote message queue
-s : show some statistics
-mN : display message number N
-dN : delete message number N
-Stext : delete all messages that have/contain text as Subject
-D : delete all messages in the queue (local and remote)
-V : print program version

Additional (optional) parameters:

-c : display colored output
-N : list message numbers only

Reference : http://sourceforge.net/projects/qmhandle/

What can I do if I am unable to start the qmail service in Plesk?

First of all, make sure that qmail is not running.

ps ax | grep qmail-send

If so, try to start it from the command line.

/etc/init.d/qmail start

If that does not work take a look at the /usr/local/psa/var/log/maillog logfile for helpful error messages.

Reference: http://kb.parallels.com/en/

What to Do If MySQL Keeps Crashing on your cPanel Server

First, you should try to find out whether the problem is that the mysqld server dies or whether your problem has to do with your client. You can check how long your mysqld server has been up by executing mysqladmin version. If mysqld has died and restarted, you may find the reason by looking in the server’s error log.

There may be some internal lock problem. mysqladmin -u root processlist usually is able to make a connection even in these cases, and can provide useful information about the current number of connections and their status.

Run the command mysqladmin -i 5 status or mysqladmin -i 5 -r status in a separate window to produce statistics while you run your other queries.

Stop the mysqld server with mysqladmin shutdown, run myisamchk from the data directory to check all MyISAM tables, and restart mysqld.

myisamchk –silent –force */*.MYI

« Prev - Next »