I did follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-phpmyadmin-on-a-lemp-server to install PHPMyAdmin to Lemp server but it doesn’t work when i run myipaddress/phpmyadmin. This page isn’t working.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
and when I follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04 i can’t run this command to install packages: sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl error : E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.
Hello,
In case that you already have Nginx and PHP installed, what you could do is to just download PHPmyAdmin directly rather than installing it via apt.
To do so you could just run:
wget https://files.phpmyadmin.net/phpMyAdmin/5.0.2/phpMyAdmin-5.0.2-all-languages.zip
Note: if you don’t have upzip already installed you can install it with:
sudo apt install unzip
After that unzip the archive:
unzip phpMyAdmin-5.0.2-all-languages.zip
Rename the folder:
mv phpMyAdmin-5.0.2-all-languages phpmyadmin
Move the phpMyAdmin folder to your document root:
sudo mv phpmyadmin /var/www/html
Note: change the /var/www/html path in case you are using a custom virtual host with a non-standard document root
Then finally change the ownership:
sudo chown -R www-data: /var/www/html/phpmyadmin
Hope that this helps!
Best,
Bobby
Hi @adrosonline,
I would like to turn your attention to the following paragraph:
Create a symbolic link between phpMyAdmin and your site’s directory. If you were using the previous tutorial, it may be still located in the nginx default directory, otherwise link it with the appropriate place:
sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/www
``
The above assumes that your Nginx's default directory is /usr/share/nginx/www which you might have changed or disabled the default Nginx config located in ```/etc/nginx2/sites-enabled/```
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.