Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 820
Siavash Abdoli Avatar asked Sep 07 '15 07:09

Siavash Abdoli


People also ask

Where is phpmyadmin conf?

The configuration files are located in the /etc/phpmyadmin directory. The main configuration file is /etc/phpmyadmin/config. inc. php, which contains the configuration options that apply globally to phpMyAdmin.

How to configure phpMyAdmin in Apache?

phpMyAdmin.conf file automatically create in /etc/httpd/conf.d location after installation complete. We will need to modify a bit to get it work. Open /etc/httpd/conf.d/phpMyAdmin.conf Save and exit. There are two directives are define for Apache version >2.4 AND <2.2.

Why is phpMyAdmin not working on my server?

If that's not working for you, you need to include PHPMyAdmin inside apache configuration. Usually this is an issue after a vanilla install in 16.04, 18.04 and 20.04 ( Focal Fossa) and higher too. sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin.conf sudo systemctl restart apache2

How to install phpMyAdmin in CentOS 6?

To install phpMyAdmin we need to install EPEL repo. It contain many packages including phpMyAdmin. There are no phpMyAdmin package available in Centos 6 default repository.

What to do before starting phpMyAdmin?

Before starting phpMyAdmin make sure LAMP ( Linux,Apache,MySQL and PHP ) stack is properly installed in your system If everything is properly functioning than we can start installation.


1 Answers

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
like image 139
NooBskie Avatar answered Oct 08 '22 14:10

NooBskie