How to Rebuild Apache in cPanel

Log in as the root using ssh to your server

Type the following commands:
# cd /scripts
# ./updatenow
# ./easyapache

Simply take after on screen directions to modify Apache for CPanel server under Linux/FreeBSD OSes. If you don’t mind take note of that you should see a menu on the screen asking you which alternative you might want to be incorporated with your Apache introduce. Select alternatives according to your prerequisites. When it has finished it will naturally restart Apache for you and you will then have the capacity to utilize the new components.

How can I use remote mail servers for my mails in CPanel

a) Make beyond any doubt that you have every one of the subtle elements of your mail servers such mail servers hostname, IPs and so forth.

b) Login to CPanel of your site

c) Now scan for MX passage choice under Mail menu in your CPanel and tap on it

d) In the following interface look down. To start with, evacuate any present MX records that are set up

e) Then under the “Include New Record” segment, enter 1 as the “Need,” enter your remote mail servers hostname as the “Goal,” and after that snap “Include New Record.”

f) After you have included the greater part of your MX records, select “Consequently Detect Configuration” under the “Email Routing” segment, and after that snap “Change.”

g) Now you have sit tight for the DNS proliferation for these new MX records , it might take upto 24 hrs to refresh the DNS

How can I create Auto-responders for my email address through CPanel

a) Login to your site CPanel

b) Under mail segment scan for Auto Responders and tap on it

c) On the following interface tap on Add Auto Responders

d) Now this is the place you need to make the Auto responders Once you have filled in the data, tap on “Make/Modify:”

e) Now you can affirm that your new Auto responder has been made.

How to Create a Cron Job in cPanel?

  1. Click on the “Cron Jobs” icon inside cPanel, under Advanced.
  2. Make sure the current email address is valid. If not, enter a new email and click the “Update Email” button.
  3. Select the Common Setting you want. This will automatically change the other time settings.
  4. Alternatively, you may adjust the individual time settings. Minute, Hour, Day, Month and Weekday can be modified to achieve your goal.
  5. In the input box to the right of “Command”, type the name of the file type, then add a space and provide the path to the file which you would like the command to run.
  6. Click the “Add New Cron Job” button.

How to Fix “Internal Server Error 500”

The most common reasons for 500 errors:

 

1) Bad permissions, Writable by group

Directories and folders should be 755. Executable scripts within the cgi-bin folder must be 755. Images, media, and text files like HTML should be 644.

 

2) Bad .htaccess, Invalid command

In the (dot) htaccess file, you may have added lines that are either worded badly or conflicting. The best way to troubleshoot this is the comment out the lines in the htaccess.

You can comment out a line in the .htaccess by adding # to the beginning. You are wise to save an original copy of any file before you make changes.

For example, if the .htaccess looks like

Directory Index default.html
Add Type application/x-httpd-php5 PHP

Then try something like this

Directory Index default.html
#Add Type application/x-httpd-php5 PHP

Broken lines and lines that start with php_flag are the most common mistakes. If you cannot determine which line is the problem, then comment out every line.

 

3) Exceeding resources, nothing in the Error Log

It is possible your 500 error is caused by too many processes in the server queue.

With SSH (shell) access, you can view the processes running on your account. Simply type this command:

Ps faux

Or type this to view a specific user’s account (be sure to replace username with the actual username):

ps faux |grep username

Once you have the process ID (“pid”), type this to kill the specific process (be sure to replace pidwith the actual process ID):

Kill -9 pid

How to Redirect an URL in cPanel

  1. Login to cPanel and click the Redirects icon.
  2. Leave the setting as 301 redirects, as this is preferred by search engines.
  3. Select the appropriate domain name from the drop-down.
  4. In the subsequent blank, enter an optional path and file name; this exact name must be typed to trigger the redirect.
  5. In the large blank, enter the full URL for the redirect target; include http:// or https:// (e.g. http://hivelocity.net).
  6. Leave the other settings as they are, unless you know why you want to change them.
  7. Click the Add button and you are done.

How to Backup & Restore MySQL Database in cPanel.

  To backup the databases please do the following:

  1. Login to your control panel and click Backups.
  2. Under Download a MySQL Database Backup, click the name of the database.
  3. Click Save As.
  4. Select a destination for where you would like the back up to be saved, locally.

Once you have a backup, if you ever inadvertently lose your data, then you can restore the database easily and quickly.

To restore a database, please do the following:

  1.  Login to your control panel and click Backups.
  2.  Click the Browse button next to the option which says Restore a MySQL Database.
  3. Select the .sql.gz file which you want to be restored.
  4. Click the Open button and click the Upload button.

Your database driven website should be working again.