ERROR 500 - INTERNAL SERVER ERROR

Why am I seeing this page?

500 errors usually mean that the server has encountered an unexpected condition that prevented it from fulfilling the request made by the client. This is a general error class returned by a web server when it encounters a problem in which the server itself can not be more specific about the error condition in its response to the client.

In many cases this is not an indication of an actual problem with the server itself but rather a problem with the information the server has been instructed to access or return as a result of the request. This error is often caused by an issue on your site which may require additional review by your web host.

Please contact your web host for further assistance.

Is there anything that I can do?

There are a few common causes for this error code including problems with the individual script that may be executed upon request. Some of these are easier to spot and correct than others.

File and Directory Ownership

The server you are on runs applications in a very specific way in most cases. The server generally expects files and directories be owned by your specific user cPanel user. If you have made changes to the file ownership on your own through SSH please reset the Owner and Group appropriately.

File and Directory Permissions

The server you are on runs applications in a very specific way in most cases. The server generally expects files such as HTML, Images, and other media to have a permission mode of 644. The server also expects the permission mode on directories to be set to 755 in most cases.

(See the Section on Understanding Filesystem Permissions.)

Command Syntax Errors in .htaccess file

In the .htaccess file, you may have added lines that are conflicting with each other or that are not allowed.

If you would like to check a specific rule in your .htaccess file you can comment that specific line in the .htaccess by adding # to the beginning of the line. You should always make a backup of this file before you start making changes.

For example, if the .htaccess looks like

DirectoryIndex default.html
AddType application/x-httpd-php5 php

Then try something like this

DirectoryIndex default.html
#AddType application/x-httpd-php5 php

Note: Due to the way in which the server environments are setup you may not use php_value arguments in a .htaccess file.

Exceeded Process Limits

It is possible that this error is caused by having too many processes in the server queue for your individual account. Every account on our server may only have 25 simultaneous processes active at any point in time whether they are related to your site or other processes owned by your user such as mail.

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 pid with the actual process ID):

kill pid

Your web host will be able to advise you on how to avoid this error if it is caused by process limitations. Please contact your web host. Be sure to include the steps needed to see the 500 error on your site.

Understanding Filesystem Permissions

Symbolic Representation

The first character indicates the file type and is not related to permissions. The remaining nine characters are in three sets, each representing a class of permissions as three characters. The first set represents the user class. The second set represents the group class. The third set represents the others class.

Each of the three characters represent the read, write, and execute permissions:

  • r if reading is permitted, - if it is not.
  • w if writing is permitted, - if it is not.
  • x if execution is permitted, - if it is not.

The following are some examples of symbolic notation:

  • -rwxr-xr-x a regular file whose user class has full permissions and whose group and others classes have only the read and execute permissions.
  • crw-rw-r-- a character special file whose user and group classes have the read and write permissions and whose others class has only the read permission.
  • dr-x------ a directory whose user class has read and execute permissions and whose group and others classes have no permissions.

Numeric Representation

Another method for representing permissions is an octal (base-8) notation as shown. This notation consists of at least three digits. Each of the three rightmost digits represents a different component of the permissions: user, group, and others.

Each of these digits is the sum of its component bits As a result, specific bits add to the sum as it is represented by a numeral:

  • The read bit adds 4 to its total (in binary 100),
  • The write bit adds 2 to its total (in binary 010), and
  • The execute bit adds 1 to its total (in binary 001).

These values never produce ambiguous combinations. each sum represents a specific set of permissions. More technically, this is an octal representation of a bit field – each bit references a separate permission, and grouping 3 bits at a time in octal corresponds to grouping these permissions by user, group, and others.

Permission mode 0755

4+2+1=7
Read, Write, eXecute
4+1=5
Read, eXecute
4+1=5
Read, eXecute

Permission mode 0644

4+2=6
Read, Write
4
Read
4
Read

How to modify your .htaccess file

The .htaccess file contains directives (instructions) that tell the server how to behave in certain scenarios and directly affect how your website functions.

Redirects and rewriting URLs are two very common directives found in a .htaccess file, and many scripts such as WordPress, Drupal, Joomla and Magento add directives to the .htaccess so those scripts can function.

It is possible that you may need to edit the .htaccess file at some point, for various reasons.This section covers how to edit the file in cPanel, but not what may need to be changed.(You may need to consult other articles and resources for that information.)

There are Many Ways to Edit a .htaccess File

  • Edit the file on your computer and upload it to the server via FTP
  • Use an FTP program's Edit Mode
  • Use SSH and a text editor
  • Use the File Manager in cPanel

The easiest way to edit a .htaccess file for most people is through the File Manager in cPanel.

How to Edit .htaccess files in cPanel's File Manager

Before you do anything, it is suggested that you backup your website so that you can revert back to a previous version if something goes wrong.

Open the File Manager

  1. Log into cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Check the box for Document Root for and select the domain name you wish to access from the drop-down menu.
  4. Make sure Show Hidden Files (dotfiles)" is checked.
  5. Click Go. The File Manager will open in a new tab or window.
  6. Look for the .htaccess file in the list of files. You may need to scroll to find it.

To Edit the .htaccess File

  1. Right click on the .htaccess file and click Code Edit from the menu. Alternatively, you can click on the icon for the .htaccess file and then click on the Code Editor icon at the top of the page.
  2. A dialogue box may appear asking you about encoding. Just click Edit to continue. The editor will open in a new window.
  3. Edit the file as needed.
  4. Click Save Changes in the upper right hand corner when done. The changes will be saved.
  5. Test your website to make sure your changes were successfully saved. If not, correct the error or revert back to the previous version until your site works again.
  6. Once complete, you can click Close to close the File Manager window.

How to modify file and directory permissions

The permissions on a file or directory tell the server how in what ways it should be able to interact with a file or directory.

This section covers how to edit the file permissions in cPanel, but not what may need to be changed.(See the section on what you can do for more information.)

There are Many Ways to Edit a File Permissions

  • Use an FTP program
  • Use SSH and a text editor
  • Use the File Manager in cPanel

The easiest way to edit file permissions for most people is through the File Manager in cPanel.

How to Edit file permissions in cPanel's File Manager

Before you do anything, it is suggested that you backup your website so that you can revert back to a previous version if something goes wrong.

Open the File Manager

  1. Log into cPanel.
  2. In the Files section, click on the File Manager icon.
  3. Check the box for Document Root for and select the domain name you wish to access from the drop-down menu.
  4. Make sure Show Hidden Files (dotfiles)" is checked.
  5. Click Go. The File Manager will open in a new tab or window.
  6. Look for the file or directory in the list of files. You may need to scroll to find it.

To Edit the Permissions

  1. Right click on the file or directory and click Change Permissions from the menu.
  2. A dialogue box should appear allowing you to select the correct permissions or use the numerical value to set the correct permissions.
  3. Edit the file permissions as needed.
  4. Click Change Permissions in the lower left hand corner when done. The changes will be saved.
  5. Test your website to make sure your changes were successfully saved. If not, correct the error or revert back to the previous version until your site works again.
  6. Once complete, you can click Close to close the File Manager window.


"brunette porn star""gay for pay black porn""perfect tiits""hollywood knockouts oil wrestling""pornstars anal movies""asian porn star name""prettiest asshole""who has the sexiest feet in the world""top milf xxx""lex steele size""summer brielle evil angel""young czech pornstar""short midget porn""amateur porn stars""best feet porn ever""the hottest asian porn""sideshow porn""couple in porn""2019 pornstar""becky lesabre clips4sale""extreme pornstars""erotic comic""playboy playmates porn videos""aisa porn star""gold club centerfolds sacramento""xxx porn trailer""top 10 new porn stars""best playboy models ever""medium breast actresses""recent porn stars""milf porn actors""amateur porn awards""best looking ass""new amateur porn stars""retired pornstars 2017""top 10 porn stars now""sexy butts on the redheads""pornstar anal fucking""girlsway clips4sale"rawyoungporn"big ass milfs""most popular japanese porn star""famous women porn stars""famous european pornstars""list of hottest blonde pornstars""mexican porn actress""transvestite porn star""pornstar face finder""short pornstar""uncencerd hentai""does brandi love do anal""unique pussies""top blowjob porn""pornstar boobs""popular tits""2007 porn""longest shemale penis""top porn start""nautica thorn retired""top french pornstars""prettiest pornstars 2016""pornstar scenes""knotty bondage""hottest porn stars of the 90's""natasha vega blowjob""plump pass""sneak attack porn""sexiest mature pornstars""largest cock in history""worlds hottest pornstar""xbiz awards 2017""worlds most perfect breasts""natural tit pornstars""the biggest ass porn""punk pornstars""funny xxx movies""hustler magazine 2019""midget porb""feet pron""sacramento pornstars""black male pornography""madison ivy retire""top 10 sexiest porn stars""autumn falls pornstar""top brazilian porn stars""popular jav stars""perfect tits pornstar""best porn stars of 2018""stars with big boobs""blavk porn""russian teen porn star""wild life miami playboy""list of russian pornstars""porn emo punk inked""newcomer pornstars""samantha mack clips4sale""deja vu showgirls rancho cordova ca""sybian links""hottest japanese models""official first anal thread 2019"