Arsal • Location • Starter

How to Fix 500 Internal Server Error Using cPanel

Client Problem

The website is showing a 500 Internal Server Error and the pages are not loading properly.

Cause

The error can occur due to incorrect or corrupted code in the .htaccess file. Removing the existing .htaccess code can help restore normal website access.

Technical Solution

Access the .htaccess file through cPanel File Manager, remove all the code inside the file, save the changes, and then reload the website.

Steps

1. Log in to cPanel
Log in to your hosting account and open the cPanel control panel.

2. Open File Manager
From the cPanel dashboard, go to the Files section and click File Manager.


3. Go to public_html
Open the public_html directory where the main website files are located.


4. Find .htaccess
Locate the .htaccess file inside the public_html directory.


5. Edit .htaccess
Right-click the .htaccess file and select Edit to open its contents.

6. Remove the .htaccess Code
Select all the code inside the .htaccess file and delete it completely. Do not delete the .htaccess file itself; only remove its contents.


7. Save Changes
Click Save Changes to save the updated .htaccess file.

8. Reload the Website
Open your website in a browser and reload the page. Check whether the 500 Internal Server Error has been resolved.