Home WebServer PanelCyberPanel How to fix the 500 internal server error in PhpMyAdmin?

How to fix the 500 internal server error in PhpMyAdmin?

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, I will guide you to fix the 500 error on CyberPanel during use.

I. Overview

Error 500 on CyberPanel has many causes, but in this article, AZDIGI will show you a relatively common 500 error and how to fix it.

Below is an image to identify this error:

how-to-fix-the-error-500-on-cyberpanel
Error 500 appears when we access the CyberPanel admin page.
how-to-fix-the-error-500-on-cyberpanel
Error 500 appears when we are using the phpMyAdmin interface.

Usually, both of these errors will appear at the same time.

Please continue reading the next part of this article to refer to the solution to handling error 500 on CyberPanel.

II. Fix the 500 error on CyberPanel

To fix the error 500 on CyberPanel, we follow these steps.

Step 1: SSH into your CyberPanel system

To fix the 500 error on CyberPanel, we first need to SSH into your VPS/server as root. If you don’t know how to SSH into your VPS/Server, you can refer to the following tutorial:

After successfully SSH, we continue with step 2 to perform the 500 CyberPanel error checking and handling command.

Step 2: Check the cause and fix the error 500 on CyberPanel

First, you should find the cause in the CyberPanel error log file with the following command:

AZDIGI Tutorial
cat /home/cyberpanel/error-logs.txt
    

Or you can check the hard drive space with the df -h command to check the usage on the server partitions.

how-to-fix-the-error-500-on-cyberpanel
The /tmp partition is running out of space.

In the image above, my /tmp partition has reached 100%. So let’s move to this partition together and use the du -sh * command to check exactly which folders take up the most space.

In my /tmp partition, there are a lot of files and folders, but you will see that there is a folder lshttpd that uses the most space.

Screen Shot 2020 11 16 at 10.57.53 AM
The lshttpd folder takes up a lot of space in the /tmp partition.

When moving into this folder, we will see that there is a bak_core folder and in this folder, there are files that take up a lot of space as follows:

Screen Shot 2020 11 16 at 10.58.16 AM

I found out on CyberPanel’s forum, these are the files that back up the core of CyberPanel when CyberPanel is upgraded. And you can completely delete it after your CyberPanel is upgraded.

After deleting these files, we check the capacity of the /tmp partition again.

Screen Shot 2020 11 16 at 10.58.28 AM

As you can see, my /tmp partition has more free space already. Then use the following command to restart CyberPanel.

AZDIGI Tutorial
systemctl restart lscpd
    

After restarting CyberPanel, the error did not exist anymore.

Screen Shot 2020 11 19 at 2.43.46 PM

However, to prevent this from happening again, you should adjust the /tmp partition to a higher capacity.

III. Summary

With error 500, there are many causes, if I encounter other cases, I will update more in this article for your reference.

Hope the article is helpful to you.

Wishing you success.

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign