View Single Post
  #1 (permalink)  
Old 03-16-09, 08:28
Amelia Amelia is offline
Moderator
 
Join Date: Mar 2009
Posts: 493
Default How To's - Linux Servers with cPanel/ WHM.

Here are some HOWTOs, related to cPanel /WHM control panel.

1. How can I setup an alternate port for SMTP in WHM?

You can run exim on another port when your ISP has blocked the default Port 25.

# Log in to WHM.
# Click Service Manager.
# Check the enable box for Exim on Another Port.
# Set the port to 26 (recommended).
# Click save.


2. How to Disable/Enable open_basedir protection in cPanel servers?

You can easily Disable/Enable open_basedir protection in cPanel servers as follows.

Login to the WHM panel
Security Center.
PHP open_basedir Tweak

Here you can Disable/Enable the protection for particular domain or server wide.


3. While accessing PhpMyAdmin you get the following error.

#2002 - The server is not responding (or local MySQL server’s socket is not correctly configured).


A common reason to this is, the mysql socket file is missing from the /tmp directory

To Fix:

Create a symbolic link from the original mysql socket file to /tmp

[root@server]# ln -s /var/lib/mysql/mysql.sock /tmp

Now Restart MySQL service.

If this does not fix it, the issue is with the PhpMyAdmin configuration file. I will recommend to create a ticket for this to have a tech investigate and fix it for you.


4. If you are getting an error while sending mails using the webmail client 'Squirrel mail' as:

Server replied: 451 Temporary local problem - please try later.


This error is due to the missing entry of the recipient domain in '/etc/localdomains'.

Edit the /etc/localdomains file with your favorite editor.

Add the domain name in this file and save.

Then restart the Exim service.

/etc/init.d/exim restart

This should fix the error.


5. How can I check Error / Access / Apache Logs? What is the exact Path?

The path on linux to check the logs are:

/usr/local/apache/logs

You are able to see access_log, error_log and other useful logs in this directory.



I'll keep posting more quick fixes, so please don't forget to visit this section again
Reply With Quote