DigitalBerg
  • HOME
  • WINDOWS VPS
  • VIRTUAL SERVER
    • Virtuozzo VPS
    • OpenStack VPS
    • Amazon Lightsail VPS
    • VMware VPS
  • DEDICATED SERVER
    • INSTAND DEDICATED SERVERS
    • HOSTING DEDICATED SERVERS
    • DEDICATED ENTERPRISE SERVERS
    • INFRA. DEDICATED SERVERS
    • DEDICATED GAME SERVERS
  • MORE
    • SSL SHOP
    • FREE SSD WEBHOSTING
  • LOGIN
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

We talking about Cloud

Web Hosting & Cloud Services
Celebrate the power and freedom of Open Source
with Open Source Cloud Servers starting at only £10/mo £5/mo.

Internal Server Error 500

Internal server errors can be caused by a few different things. The most common reasons are noted below:

  • Bad Permissions, Writeable by Group See Below
  • Bad .htaccess, Invalid Command See Below
  • Exceeding Resources, Nothing in the Error Log See Below

There are steps to take to find out what is causing the errors. To begin troubleshooting:

  1. Log into cPanel.
  2. In the Logs section, click the Error Log icon.

This log will display the last 300 Error Log messages in reverse order. If the Error Log doesn’t provide any indication of the issue, try troubleshooting by following the suggestions listed below.


Bad Permissions, Writeable by Group

To troubleshoot this error, check your file permissions.

  1. In cPanel, in the Files section, click File Manager.
  2. Select the button for Web Root (public_html/www).
  3. Place a check mark in the box titled Show Hidden Files (dotfiles).
  4. Click Go.
  5. Review the numbers listed under the Perms column in File Manager.
    • Directories and folders should be set to 755.
    • Executable scripts within the cgi-bin folder must be set to 755.
    • Images, media, and text files like HTML should be set to 644.

Bad .htaccess, Invalid Command

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

Always make a copy of the .htacess file before making any changes to it.

You can comment out a line in the .htaccess file 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

Broken lines and lines that start with php_flags are the most common mistakes. If you cannot determine which line is the problem, then comment out every line. For additional information regarding php_flags, please review the following article: What is php.ini?

After commenting out a line, 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 .htacess file. If the issue has not been resolved, continue troubleshooting by commenting out additional lines and checking the site.


Exceeding Resources, Nothing in the Error Log

It is possible that the 500 error is being 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 the following command 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 the following command to kill the specific process. (Be sure to replace pid with the actual process ID.):

– kill -9 pid
Our server administrators will be able to offer advice on how to avoid this error. Please submit a ticket to our Support department and include the steps needed to see the 500 error on your site.
Get in Touch

Let me know if you got an interesting project and want to work together!

digitalberg.com

DigitalBerg fuels apps, websites, emails, and much more for numerous clients globally.

Virtual servers to dedicated servers at affordable prices that any hostinger student can afford.

Services

  • Web Hosting
  • Virtual Server
  • Instant Servers
  • Dedicated Servers
  • Enterprise Servers
  • Infrastructure Servers
  • Gaming Servers
  • SSL Shop

SUPPORT

  • Contact Us
  • Wiki
  • FAQ
  • Blogs

Company

  • About Us
  • Partners
  • Privacy Policy
  • Term of Service
  • Acceptable Use Policy
  • Green Hosting
  • Data center

CLIENT AREA

  • Registration
  • Client Area
  • Server Status
  • Support

OTHER SERVICES

  • Domain Registration
  • Transfer Domain
  • Add ons / Management
  • SSL Certificates
  • Server Monitoring
  • Server hardware
DigitalBerg review
DigitalBerg review
© Copyright - DigitalBerg | From January 1st 2015, in accordance with the amended Directive 2006/112/EC, prices inclusive of VAT may vary depending on the country of residence of the customer.
  • Link to Facebook
  • Link to X
  • Link to LinkedIn
Link to: PHP Package Configuration Plugin Link to: PHP Package Configuration Plugin PHP Package Configuration Plugin Link to: How to Access WebDav and Web Disk Link to: How to Access WebDav and Web Disk How to Access WebDav and Web Disk
Scroll to top Scroll to top Scroll to top