Install Firewall on a cPanel Server

First, you would need to login as root via ssh, then as root issue the following commands:

tar zxfv csf.tgz
cd csf

Now the CSF establishment is finished and the arrangement document should suit your necessities, to alter the CSF setup issue this summons:

pico /etc/csf/csf.conf

Set the TESTING variable to 1 instead of and make sure that the MONOLITHIC_KERNEL variable is set to 1 this is important for OpenVZ VPS servers You may open/filter incoming and outgoing ports by editing the TCP_IN and TCP_OUT variables. Save your configuration by pressing CTRL + x, when asked press “y” then press the enter key

Now start CSF by issuing:

/etc/init.d/csf start

How to Install Zend Optimizer with cPanel.

Zend Optimizer is a PHP addon which offers storing to enhance speed when stacking destinations; it can build execution by up to 40% by reserving as often as possible saw segments of PHP pages. Zend Guard likewise is helpful for encoding PHP documents to secure source code.

Here’s the manner by which to introduce Zend Optimizer:

1.    Login to your server by means of SSH

2.    Run:/scripts/installzendopt

3.    Take after the directions on the screen to introduce Zend Optimizer

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.
  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.