0

I get the "server not found" message in the browser when I try to access localhost/phpmyadmin/ and my websites configured in /etc/hosts and /etc/apache2/sites-enabled.

My "hosts" file:

127.0.0.1       localhost
127.0.1.1       website1
127.0.0.1       website2

...

How can I solve this problem?

Danilo
  • 382
  • 7
  • 23

2 Answers2

0

Your phpmyadmin configuration might not be included by apache. Open apache.conf using your favorite editor

sudo nano /etc/apache2/apache2.conf

Then add the following line:

Include /etc/phpmyadmin/apache.conf

Then restart your apache server:

sudo service apache restart

Hope this helps.

Hevlastka
  • 1,878
  • 2
  • 18
  • 29
0

As mentioned here

A cleaner way is to create the new configuration file:

/etc/apache2/conf-available/phpmyadmin.conf

and write the following in it:

Include /etc/phpmyadmin/apache.conf

then, soft link the file to the directory /etc/apache2/conf-enabled:

sudo ln -s /etc/apache2/conf-available/phpmyadmin.conf /etc/apache2/conf-enabled
Community
  • 1
  • 1
Zahid Gill
  • 302
  • 3
  • 13