[apache] phpmyadmin "Not Found" after install on Apache, Ubuntu

Setting up a development environment with Ubuntu 14.04 running in VirtualBox, following this guide: http://klau.si/dev

After installing phpmyadmin, it seems I should be able to access it at http://localhost/phpmyadmin but apache returns a Not Found error. Did this guide leave out a configuration step somewhere? I have already tried restarting the apache service.

There is no phpmyadmin.conf file in apache2/sites-enabled or apache2/sites-available, is this required?

If so, where can I find these files?

using instead of localhost returns the same error. The default apache page at http://localhost works just fine.

the console in the browser shows nothing of value, simply Not Found.

I have also tried rerunning the install script with dpkg-reconfigure -plow phpmyadmin

This question is related to apache ubuntu phpmyadmin

The answer is

This issue was resolved thanks to this guide: https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Phpmyadmin_.26_mysql-workbench by adding

Include /etc/phpmyadmin/apache.conf

...to the /etc/apache2/apache2.conf file and restarting the service.

sudo dpkg-reconfigure -plow phpmyadmin 

Select No when asked to reconfigure the database. Then when asked to choose apache2, make sure to hit space while [ ] apache2 is highlighted. An asterisk should appear between the brackets. Then hit Enter. Phpmyadmin should reconfigure and now http://localhost/phpmyadmin should work. for further detail https://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-ubuntu-13.04-lamp

Try this

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo systemctl restart apache2

Create a link in /var/www like this:

sudo ln -s /usr/share/phpmyadmin /var/www/

Note: since 14.04 you may want to use /var/www/html/ instead of /var/www/

If that's not working for you, you need to include PHPMyAdmin inside apache configuration.

Open apache.conf using your favorite editor, mine is nano :)

sudo nano /etc/apache2/apache2.conf

Then add the following line:

Include /etc/phpmyadmin/apache.conf

For Ubuntu 15.04 and 16.04

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

The easiest way to do in ubuntu (I tested in ubuntu-20.04):

Step 1. Open the file:

sudo nano /etc/apache2/apache2.conf

Step 2: Add the following line at the end of file:

Include /etc/phpmyadmin/apache.conf

Step 3: Restart apache2:

sudo systemctl restart apache2.service

Hopefully, it'll be helpful!

Finally I got the solution

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

More about https://askubuntu.com/questions/55280/phpmyadmin-is-not-working-after-i-installed-it

Create a link in /var/www/html like this to fix the error:

sudo ln -s /usr/share/phpmyadmin /var/www/html

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin

sudo service apache2 restart

Run above commands issue will be resolved.

You will need to configure your apache2.conf to make phpMyAdmin works.

sudo nano /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Then restart apache

sudo service apache2 restart

It seems like sometime during the second half of 2018 many php packages such as php-mysql and phpmyadmin were removed or changed. I faced that same problem too. So you'll have to download it from another source or find out the new packages

I had the same issue where these fixes didn't work.

I'm on Ubuntu 20.04 using hestiaCP with Nginx.

Today after adding

Include /etc/phpmyadmin/apache.conf

into both Apache and Nginx, Nginx failed to restart. It was having an issue with "proxy_buffers" value.

Yesterday I had to modify the Nginx config to add and increase these values so Magento 2.4 would run. Today I altered "proxy_buffers" again

proxy_buffers            3 64k;
proxy_buffer_size        128k;
proxy_busy_buffers_size  128k;

After the second alteration and the removal of "Include /etc/phpmyadmin/apache.conf" from both Apache and Nginx, Magento 2.4 and PHPMyAdmin are working as expected.

Run the following command in terminal:

sudo ln -s /usr/share/phpmyadmin /var/www/html/

First check PhpMyAdmin is install or not. If it is installed then search PhpMyadmin folder. After search cut and paste that folder in location Computer->var->www->html->paste folder. Open browser and type localhost/phpMyAdmin and login using username and password.

If you are having this problem in 2019, go to your 000-default.conf file, by typing this subl /etc/apache2/sites-enabled/000-default.conf (in your terminal to open the file in sublime editor)

When the file loads, locate "The ServerName directive sets the request scheme" and place this "Include /etc/phpmyadmin/apache.conf" on top .

Then restart your apache with the command...service apache2 restart That will certainly fix the issue. Hope it helps!

Questions with apache tag:

Enable PHP Apache2 Switch php versions on commandline ubuntu 16.04 Laravel: PDOException: could not find driver How to deploy a React App on Apache web server Apache POI error loading XSSFWorkbook class How to enable directory listing in apache web server Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details How to enable php7 module in apache? java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing while starting Apache server on my computer WAMP won't turn green. And the VCRUNTIME140.dll error MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engine SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed resource error in android studio after update: No Resource Found XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04 installing apache: no VCRUNTIME140.dll Could not load the Tomcat server configuration How to add Apache HTTP API (legacy) as compile-time dependency to build.grade for Android M? Apache Server (xampp) doesn't run on Windows 10 (Port 80) How to set up file permissions for Laravel? Chrome net::ERR_INCOMPLETE_CHUNKED_ENCODING error How to allow Cross domain request in apache2 Getting Error:JRE_HOME variable is not defined correctly when trying to run startup.bat of Apache-Tomcat Netbeans 8.0.2 The module has not been deployed Only variable references should be returned by reference - Codeigniter laravel the requested url was not found on this server httpd-xampp.conf: How to allow access to an external IP besides localhost? WebSockets and Apache proxy : how to configure mod_proxy_wstunnel? How to force reloading php.ini file? XAMPP: Couldn't start Apache (Windows 10) how to create virtual host on XAMPP phpmyadmin "Not Found" after install on Apache, Ubuntu XAMPP installation on Win 8.1 with UAC Warning Httpd returning 503 Service Unavailable with mod_proxy for Tomcat 8 how to configure apache server to talk to HTTPS backend server? How to fix PHP Warning: PHP Startup: Unable to load dynamic library 'ext\\php_curl.dll'? error running apache after xampp install How to enable local network users to access my WAMP sites? Apache Proxy: No protocol handler was valid OSError - Errno 13 Permission denied Project Links do not work on Wamp Server WAMP Cannot access on local network 403 Forbidden Apache 2.4 - Request exceeded the limit of 10 internal redirects due to probable configuration error How to enable CORS in apache tomcat Apache won't start in wamp Execute PHP script in cron job "End of script output before headers" error in Apache Starting of Tomcat failed from Netbeans Tomcat in Intellij Idea Community Edition

Questions with ubuntu tag:

grep's at sign caught as whitespace "E: Unable to locate package python-pip" on Ubuntu 18.04 How to Install pip for python 3.7 on Ubuntu 18? "Repository does not have a release file" error ping: google.com: Temporary failure in name resolution How to install JDK 11 under Ubuntu? How to upgrade Python version to 3.7? Issue in installing php7.2-mcrypt Install Qt on Ubuntu Failed to start mongod.service: Unit mongod.service not found When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0) Cannot open new Jupyter Notebook [Permission Denied] Can't install laravel installer via composer Yarn install command error No such file or directory: 'install' Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running? How to completely uninstall python 2.7.13 on Ubuntu 16.04 How to update-alternatives to Python 3 without breaking apt? How to open the terminal in Atom? How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit? How to install "ifconfig" command in my ubuntu docker image? How to install pip for Python 3.6 on Ubuntu 16.10? Default password of mysql in ubuntu server 16.04 How to install PHP intl extension in Ubuntu 14.04 Unable to set default python version to python3 in ubuntu updating nodejs on ubuntu 16.04 Docker Repository Does Not Have a Release File on Running apt-get update on Ubuntu Curl : connection refused How to install all required PHP extensions for Laravel? Getting permission denied (public key) on gitlab Cannot import keras after installation Docker - Ubuntu - bash: ping: command not found Copy Paste in Bash on Ubuntu on Windows How to install php-curl in Ubuntu 16.04 PHP XML Extension: Not installed webpack command not working sudo: docker-compose: command not found How to find which version of TensorFlow is installed in my system? How to fix git error: RPC failed; curl 56 GnuTLS How to tell if tensorflow is using gpu acceleration from inside python shell? Docker Error bind: address already in use MySQL fails on: mysql "ERROR 1524 (HY000): Plugin 'auth_socket' is not loaded" How to use systemctl in Ubuntu 14.04 Package php5 have no installation candidate (Ubuntu 16.04) How to enable php7 module in apache? Is there a keyboard shortcut (hotkey) to open Terminal in macOS? To enable extensions, verify that they are enabled in those .ini files - Vagrant/Ubuntu/Magento 2.0.2 After installing with pip, "jupyter: command not found" How to verify if nginx is running or not? How to install Android SDK on Ubuntu? Docker-Compose can't connect to Docker Daemon

Questions with phpmyadmin tag:

phpMyAdmin on MySQL 8.0 phpmyadmin - count(): Parameter must be an array or an object that implements Countable Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?' phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO) phpMyAdmin access denied for user 'root'@'localhost' (using password: NO) mysqli_real_connect(): (HY000/2002): No such file or directory How to create a foreign key in phpmyadmin #1292 - Incorrect date value: '0000-00-00' MySQL error - #1932 - Table 'phpmyadmin.pma user config' doesn't exist in engine phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration #1273 - Unknown collation: 'utf8mb4_unicode_ci' cPanel phpmyadmin "Not Found" after install on Apache, Ubuntu How to get phpmyadmin username and password http://localhost/phpMyAdmin/ unable to connect Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) phpMyAdmin - config.inc.php configuration? Change MySQL root password in phpMyAdmin phpMyAdmin allow remote users Forbidden :You don't have permission to access /phpmyadmin on this server PHP: maximum execution time when importing .SQL data file XAMPP MySQL password setting (Can not enter in PHPMYADMIN) Delete a database in phpMyAdmin PhpMyAdmin not working on localhost phpmysql error - #1273 - #1273 - Unknown collation: 'utf8mb4_general_ci' New xampp security concept: Access Forbidden Error 403 - Windows 7 - phpMyAdmin phpmyadmin #1045 Cannot log in to the MySQL server. after installing mysql command line client phpmyadmin.pma_table_uiprefs doesn't exist MySQL Daemon Failed to Start - centos 6 How to Import 1GB .sql file to WAMP/phpmyadmin Fix Access denied for user 'root'@'localhost' for phpMyAdmin Forbidden: You don't have permission to access / on this server, WAMP Error MySQL: How to set the Primary Key on phpMyAdmin? This table does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available How to set my phpmyadmin user session to not time out so quickly? MySQL CREATE TABLE IF NOT EXISTS in PHPmyadmin import phpMyAdmin mbstring error #1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs' Delete all records in a table of MYSQL in phpMyAdmin How to log in to phpMyAdmin with WAMP, what is the username and password? Remove privileges from MySQL database how to get login option for phpmyadmin in xampp How to Set user name and Password of phpmyadmin "Logging out" of phpMyAdmin? #1045 - Access denied for user 'root'@'localhost' (using password: YES) How to access remote server with local phpMyAdmin client? How to solve time out in phpmyadmin? MySQL: How to reset or change the MySQL root password? How to get back Lost phpMyAdmin Password, XAMPP php/mySQL on XAMPP: password for phpMyAdmin and mysql_connect different? display data from SQL database into php/ html table