There was a problem loading the comments.

Internal Server Error Help, 500 Error

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

This article will discuss the commonly known causes of the 500 Internal Server Error and the general troubleshooting steps in resolving them.

 

What does 500 Internal Server Error mean?

An Internal Server Error (ISE), also known as a 500 error, is not specific only to WordPress. This error can be caused by a PHP function not working as intended, whereas a database error causes 500 errors. Both errors can, however, be resolved in the same way. Finding the cause of a 500 Error and then resolving it is often a matter of trial and error.

The 500 Internal Server Error is presented in several ways, which may include the following:

  • 500 Error
  • 500 Internal Server Error
  • 500. That's an error
  • HTTP 500 Internal Error
  • HTTP 500 - Internal Server Error
  • HTTP Error 500
  • Internal Server Error
  • Temporary Error (500)

Basic Troubleshooting

"Is your domain properly connected to your web host?"

One of the basics of troubleshooting web pages is ensuring that the domain (your website name) is active and properly connected to your web host (your hosting plan). Ensuring that requires you to check your DNS records. Let's think of it as checking the "bridge" connecting your website and your hosting server.

 

"Did you already try clearing/deleting your browser's cache and cookies?"

This may be a simple step, but most website error pages are caused by cache. The cache is a temporarily stored memory that helps your browser load a webpage faster. Sometimes it causes a problem when websites are updated as the web files saved in the cache may conflict with what is on the website. Clearing the cache fixes most website issues like that, including loading or formatting problems.

 

What are the other possible causes of the 500 Internal Server Error?

Here are some of the commonly known causes.

 

File permissions error

Your website has files and folders inside your web host, and each of these will have its permission settings regardless of the application used to build the site. Permissions can allow our server computer to write and edit your files. Also, some files need to be protected from writing and editing as a security measure.

To fix the 500 Error page caused by permissions error, you must ensure that your website files and folders have the correct permission settings.  

  • WordPress website files must be 644 or 640
  • Directories and WordPress folders must be 755.
  • Executable scripts within the cgi-bin folder must be 755.
  • Images, media, and text files (like HTML) must be 755 or 644.

Corrupted or broken .htaccess file

A .htaccess file is an Apache file that tells a website how to function. As one of a site's core files, it is important to ensure that the .htaccess file exists and is properly configured. The script or code for a .htaccess is written depending on the CMS or application used to build the website. If the .htaccess is missing or misconfigured, you may need to manually upload or create a new .htaccess file.

 

If there are custom scripts in the .htaccess, you may need to contact your web developer for assistance as HostGator's Support cannot assist with customized scripts and coding unique to your website.

If you find an unusual script in your .htaccess, you can comment out a line by adding # to the beginning of that particular line. For example, if the code in the .htaccess file looks like:

DirectoryIndex default.html   

AddType application/x-httpd-php5 php

Then, try commenting it out like so:

DirectoryIndex default.html   

#AddType application/x-httpd-php5 php

Alternatively, you can create a new default .htaccess file instead.

 

If you cannot determine which line is the problem, comment on every line.

After commenting out a line(s), refresh the site to see if the issue has been resolved. If it has, that confirms that the issue was in that particular line of code in the .htaccess file. If the issue has not been resolved, continue troubleshooting by commenting out additional lines and reloading the website.

 

Exceeding resources, nothing in the error logs

Too many processes may be causing the 500 error in the server queue.

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

ps faux

Or type the following command to view a specific user's account. (Be sure to replace the username with the actual username.):

ps faux |grep username

Type the following command to kill the specific process once the process ID (pid). (Be sure to replace pid with the actual process ID.):

kill -9 pid

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

CAPTCHA

On-Premise Help Desk Software by SupportPal
© Support Portal - WP Lighthost