Ubuntu – How to configure Adminer to be reachable on the local network

Apache2networkingwebserver

I have currently configured a Ubuntu web development server machine, but am having problems connecting/viewing Adminer on the local network. e.g. I can connect to Apache without any problems from a different machine using the local network IP e.g. 172.16.0.24/index.php fine. But when I try to access 172.16.0.24/adminer i get the:

Not Found

The requested URL /adminer was not found on this server.

On the Ubuntu web development server machine, i can access adminer via 127.0.0.1 on localhost. e.g. 127.0.0.1/adminer, the same as Apache.

I would like to know what would be the correct config, to make adminer reachable without playing around with my DNS/host settings on the other networked computer.

Best Answer

I found on Ubuntu 16.04 that after installing Adminer via

sudo apt-get install adminer

it didn't correctly set up the Adminer Apache configuration file. I did the following to get it working:

cd /etc/apache2/conf-available
sudo ln -s ../../adminer/apache.conf adminer.conf
sudo a2enconf adminer
sudo service apache2 reload

After that the it worked locally and remotely for me