Friday, May 3, 2019

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

Install Antivirus (Clamav) on a cPanel

eAccelerator is a PHP quickening agent and streamlining agent. It enhances execution by re-utilizing assembled PHP scripts and streamlining them to accelerate their execution.

With a specific end goal to have it introduced you will require a committed server condition since it requires worldwide server changes. In cPanel its establishment is simple and quick after these two stages:

1. Ensure PHP keeps running as DSO Apache module. For this reason, sign into your cPanel server WHM and go to 'Design PHP and SuExec'. There ensure that the PHP 5 Handler is set to dso. 2. Next, sign in as root by ssh and issue the accompanying summon:
/scripts/phpextensionmgr install EAccelerator

With the above basic and simple strides, your PHP (site all in all) execution ought to be impressively enhanced with the assistance of eAccelerator.

How to Add multiple IPs to the server with WHM

1. Login to cPanel Webhost Manager (WHM) on the server.

2. On the left side board, explore the IP Functions menu, and afterward, tap on Add a New IP Address interface.

3. Enter the IP address in the IP(s) to include field. In spite of the fact that the connection says An IP Address, you can without much of a stretch present various or more than one IP delivers to the server on the double. For more than 1 IP address, indicate in Class C CIDR arrange or 192.168.0.1-254 organization. For instance, 192.168.4.128/25, 192.168.3.5-10, 192.168.99.55-230.

4. Adjust the subnet cover default estimation of 255.255.255.0 to the legitimate an incentive for the IP address(s) in the Subnet Mask field, if required. Typically this esteem will be given by your facilitating supplier.


5. Tap on Submit catch

How to Assign Dedicated IPs to the Website in WHM

1. Sign in to your WHM 

2. Under the IP Functions select the Change Site's IP Address 

3. Presently pick the record or site to which you need to allocate a devoted IP and the IP you will give

4. Spare the progressions