Siavash Abdoli
Siavash Abdoli

Reputation: 1862

there is no phpmyadmin.conf in /etc/apache2/conf-available/phpmyadmin

I follow this tutorial and I can't find phpmyadmin.conf for step two of this tutorial. I only have the following files in /etc/apache2/conf-available/

charset.conf
other-vhosts-access-log.conf
javascript-common.conf
security.conf
localized-error-pages.conf
serve-cgi-bin.conf

I have to to edit which one?

Upvotes: 15

Views: 40629

Answers (2)

Gary Llegend Moore
Gary Llegend Moore

Reputation: 391

When the first prompt appears, apache2 is highlighted, but not selected. If you do not hit "SPACE" to select Apache, the installer will not move the necessary files during installation. Hit "SPACE", "TAB", and then "ENTER" to select Apache.

If you didn't do this, enter the following command:

sudo dpkg-reconfigure phpmyadmin

Select no to reconfiguring the database and then you will get the option to select Apache following the steps above.

Upvotes: 39

NooBskie
NooBskie

Reputation: 3841

Are you sure you followed this correctly?

When the first prompt appears, apache2 is highlighted, but not selected. If you do not hit "SPACE" to select Apache, the installer will not move the necessary files during installation. Hit "SPACE", "TAB", and then "ENTER" to select Apache.

This is a very important part of step one that i've overlooked before that can cause this problem

As another remedy you could try this:

From the docs: https://help.ubuntu.com/community/phpMyAdmin

If this does not work, then you can do the following to include the phpMyAdmin-shipped Apache configuration into Apache:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload

Since Ubuntu 13.10 (Saucy Salamander), Apache no longer loads configuration files from the /etc/apache2/conf.d directory. Instead, they are placed in the /etc/apache2/conf-available directory which is managed with the a2enconf command. Therefore, if you need to manually include the phpMyAdmin-shipped Apache configuration file, you must run the following:

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin
sudo /etc/init.d/apache2 reload

Upvotes: 37

Related Questions