"Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server at ip Port 80" Error for phpMyAdmin.

ยท

1 min read

If you've recently installed phpMyAdmin on your Ubuntu server and encountered the "Not Found The requested URL was not found on this server" error, don't worry.

This is a common issue that can be resolved with a simple configuration change.

Follow these steps to get your phpMyAdmin up and running smoothly.

Step-by-Step Guide to Configure PhpMyAdmin on Ubuntu

First, ensure that phpMyAdmin is installed on your server.

1. Configure Apache to Include phpMyAdmin Configuration

The most common cause of the "Not Found" error is that Apache is not configured to serve phpMyAdmin. You need to include the phpMyAdmin configuration file in your Apache configuration.

Run the following command to include the phpMyAdmin configuration:

sudo bash -c 'echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf'

This command appends the phpMyAdmin configuration to your main Apache configuration file, ensuring that Apache knows where to find phpMyAdmin.

2. Restart Apache

After updating the configuration, you need to restart Apache to apply the changes:

sudo systemctl restart apache2
3. Access phpMyAdmin

Now, you should be able to access phpMyAdmin through your web browser. Navigate to:

http://<your_server_ip>/phpmyadmin

4.Still not able to access ?

If you still cannot access phpMyAdmin, make sure port 80 is enabled in your inbound network traffic settings. This ensures that your server can accept HTTP requests.

ย