Search our database

Unable to access phpMyAdmin due to “Internal Server Error”

Normally phpMyAdmin can be accessed by browsing to one of these following URLs:

However, if you can only access the phpMyAdmin through:

http://123.123.123.123[server ip address]/phpmyadmin

But getting the phpMyAdmin drop with “Internal Server Error” when trying to access phpMyAdmin using one of these URLs:

It’s possibly due to a mis-configured httpd.conf. You can refer the following steps to fix it:

First edit the httpd.conf file:

# vi /etc/httpd/conf/httpd.conf

Add the following lines:

<location /phpmyadmin>
    php_admin_value open_basedir /var/www/html/phpMyAdmin/:/var/www/html:/tmp:/tmp/
</location>
<location /phpMyAdmin>
    php_admin_value open_basedir /var/www/html/phpMyAdmin/:/var/www/html:/tmp:/tmp/
</location>

Save it and restart the httpd service.

# /etc/init.d/httpd restart

Tags: