

This process adds phpmyadmin to /etc/apache2/conf-enabled/, you can verify it with: ls /etc/apache2/conf-enabled/Įnable PHP mcrypt and mbstring: sudo phpenmod mcrypt
Phpmyadmin not found ubuntu install#
Install phpmyadmin: sudo apt install phpmyadmin php-mbstring php-gettextĭuring the installation you will be asked to choose your web server (apache2) and if you want to use dbconfig-common to configure the db, finally the password for phpmyadmin will be requested. Now go to and you should see something like the image below: Test if PHP works, create an info.php: sudo nano /var/www/html/info.php Restart Apache and check its status: sudo systemctl restart apache2Īfter this step if you want to install PHP modules, you can search for them using: apt-cache search php- | less Install PHP: sudo apt install php libapache2-mod-php php-mcrypt php-mysqlĮdit the file /etc/apache2/mods-enabled/dir.conf, after editing it should look like this:ĭirectoryIndex index.php index.html index.cgi index.xhtml index.htm Secure your MySQL installation executing: sudo mysql_secure_installationĬhoose the options that you prefer in this step. Install MySQL: sudo apt install mysql-serverĭuring this installation you will be asked to enter the MySQL password. At the login, page enter root for the username. In a browser, go to (replace servername with the server’s actual hostname). Here, we are using Apache2 for the web server. Attempts to open phpMyAdmin showed a blankpage, or a 'connection refused' page. At the prompt, choose which web server to configure for phpMyAdmin. Verify if Apache is working, open you browser and go to: you should see somehing like the following image: I upgraded from Ubuntu 20.04 to Ubuntu 22.04. Restart Apache to implement changes: sudo systemctl restart apache2 But cannot install and access phpmyadmin. But I can't access it via : localhost/phpmyadmin. sudo ln -s /usr/share/phpmyadmin /var/you may want to use /var/Open nf using your favorite editor, mine is nano :) sudo nano /etc/apache2/nf. I tried the following: sudo apt-get install mysql-server sudo dpkg-reconfigure phpmyadmin sudo service apache2 restart.

The output should be like this: Syntax OK I'm trying to install phpmyadmin on Mint.

In Ubuntu 16.04.3 LTS you can follow these steps to install Apache2, MySQL, PHP7 and phpmyadmin, I tested this today and it shouln't give you any kind of problems, maybe you missed one of these steps, so please check them out:Įdit the file /etc/apache2/nf, add the following line at the end: ServerName Ĭheck if your config is OK: sudo apache2ctl configtest
