Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-09, 07:28
Moderator
 
Join Date: Mar 2009
Posts: 363
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
  #2 (permalink)  
Old 03-16-09, 09:18
Shane Phillips's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,057
Send a message via AIM to Shane Phillips Send a message via MSN to Shane Phillips
Default

Quote:
Originally Posted by Amelia View Post
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
Amelia,

Thanks for the post.

I am sure many have been looking for Linux "How TOs"

Regards,

Shane Phillips
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #3 (permalink)  
Old 03-16-09, 11:19
Super Moderator
 
Join Date: Nov 2008
Posts: 752
Smile

Thank you for this informative post Amelia. This information will certainly help many of them who were in search of some more information about Linux with cPanel/WHM.
Reply With Quote
  #4 (permalink)  
Old 03-19-09, 19:41
BOD Member
 
Join Date: Mar 2009
Posts: 34
Default

Got it, Amelia. And I thank you for a informative post. You're truly one of the best's on bodhost.
Reply With Quote
  #5 (permalink)  
Old 03-19-09, 22:48
sam sam is offline
BOD Member
 
Join Date: Jul 2007
Posts: 141
Send a message via Yahoo to sam
Default

Amelia for this helpful post, hope you will add some more how to's here
Reply With Quote
  #6 (permalink)  
Old 03-20-09, 05:44
BOD Member
 
Join Date: Nov 2008
Posts: 61
Default

Hey,
Nice peace of information.Thanks for that post Amelia I hope it'll help us
Reply With Quote
  #7 (permalink)  
Old 03-23-09, 16:06
BOD Member
 
Join Date: Mar 2009
Posts: 50
Default

I wopuld like to add mine Its about " How to install SSL certificate "

*) Login to WHM.
*) Click on Install an SSL Certificate and Setup the Domain under the SSL/TLS menu.
*) Enter the domain, user name, and IP address for the certificate in the Domain, User, and IP Address fields.
*) Click on the Fetch button to paste the .key and .crt files for the domain into the fields, if they are currently on your server. Otherwise, copy and paste the .key and .crt files into the available display areas.
*) Paste the ca bundle for the certificate in the bottom display area
*)Click on the Submit button.
That’s all you have successfully installed an SSL certificate for required your domain.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 02:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.