Can't access phpmyadmin (apache ok, php ok)
When I go to localhost/phpmyadmin
I get the apache "Not Found" error (404). However, I can load html pages, and run php pages (such as <?php phpinfo(); ?>
). And phpmyadmin
is installed.
balter@homedevbox:~$ aptitude search phpmyadmin
i phpmyadmin - MySQL web administration tool
I also installed the standard ubuntu LAMP stack and set passwords for mysql and all that.
What could be the problem?
EDIT:
Here is where my phpmyadmin
files are.
balter@homedevbox:/var$ cd /
balter@homedevbox:/$ sudo find . -type d -name phpmyadmin
./var/lib/mysql/phpmyadmin
./var/lib/phpmyadmin
./etc/phpmyadmin
./usr/share/phpmyadmin
./usr/share/dbconfig-common/scripts/phpmyadmin
./usr/share/dbconfig-common/data/phpmyadmin
./usr/share/doc/phpmyadmin
Solution 1:
Within the default Ubuntu's installation (apt install phpmyadmin
) PhpMyAdmin is included (and enabled) into the Apache's configuration through this additional configuration file:
/etc/apache2/conf-enabled/phpmyadmin.conf
This file is a symbolic link to the file /etc/apache2/conf-available/phpmyadmin.conf
and when we type a2enconf
or a2disconf
we 'enable' or 'disable' this symbolic link.
On its side, the file /etc/apache2/conf-enabled/phpmyadmin.conf
is a symbolic link to the file /etc/phpmyadmin/apache.conf
.
According to the discussion below the question, during the installation process something goes wrong and the last symbolic link isn't created.
The solution, that @abalter provided, is manual creation of this symbolic link:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
Then enable this configuration file and restart Apache or just reload its configuration:
sudo a2enconf phpmyadmin.conf
sudo systemctl reload apache2.service # within Ubuntu 16.04
sudo service apache2 reload # within Ubuntu 14.04