Install phpMyAdmin With LAMP Stack On Ubuntu 18.04 LTS

install phpMyAdmin with LAMP

27 Responses

  1. A random linux user says:

    Thank You for this tutorial, works like a charm.

  2. Jean says:

    Awesome! Thanks for great tutorial.

  3. fk says:

    Thank you. This is very good and accurate.

  4. subadrun says:

    how to fix ERROR 1698 (28000): Access denied for user ‘root’@’localhost’

  5. Bashar says:

    Thanks a lot it worked perfectly!

  6. hkm says:

    thank you

  7. alvaro says:

    pls help my
    why?

    Configuring phpmyadmin
    An error occurred while installing the database:

    ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) . Your options are:
    * abort – Causes the operation to fail; you will need to downgrade, reinstall, reconfigure this package, or otherwise manually intervene to continue using it. This will usually also impact your ability to install other packages until the installation failure is resolved.
    * retry – Prompts once more with all the configuration questions (including ones you may have missed due to the debconf priority setting) and makes another attempt at performing the operation.
    * retry (skip questions) – Immediately attempts the operation again,
    skipping all questions. This is normally useful only if you have
    solved the underlying problem since the time the error occurred.
    * ignore – Continues the operation ignoring dbconfig-common errors.
    This will usually leave this package without a functional database.

    Next step for database installation:

    abort
    retry
    retry (skip questions)
    ignore

  8. sk says:

    Setup LAMP stack as described in this guide. https://www.ostechnix.com/install-apache-mysql-php-lamp-stack-on-ubuntu-18-04-lts/
    And then, try to install Phpmyadmin.

  9. DEMOS says:

    Thanks a lot. Since now my problem with “Access denied for user ‘root’@’localhost’ (using password: YES)” is solved!!!

  10. Arvind says:

    It was Really Awesome till I found. Without any Error, I installed it. I just go through each step and I didnt get any error during installation. Thanks.
    Now Please tell me How to install wordpress after that.

  11. Michael Mendes says:

    Thank you!

  12. alamin says:

    I do all thing before section ‘Access phpMyAdmin dashboard’ but phpmyadmin is 404 not found. Please give a solution!

    • sk says:

      That’s odd. Have you already setup LAMP stack? If yes, please try on a fresh system. The instructions given in this guide have been properly tested in Ubuntu 18.04 LTS server and it worked fine for me.

  13. Arif says:

    http://localhost/phpmyadmin

    Not Found
    The requested URL was not found on this server.

  14. Arif says:

    phpmyadmin.conf file not found, why?

  15. J.F says:

    Hello! Thanks a lot for the tutorial!

    I had phpmyadmin is 404 not found problem and solved it doing:

    //OPEN apache2.conf FILE WITH TEXT EDITOR
    sudo vi /etc/apache2/apache2.conf

    // ADD THIS LINE
    Include /etc/phpmyadmin/apache.conf

    //RESTART apache2
    sudo systemctl restart apache2

    Cheers.
    J.F

  16. Jelly says:

    At the stage “Now, select the web server that should be automatically configured to run phpMyAdmin.” I have hit Enter. And when I remove and reinstall the all, I don’t have the new ask for reconfigure PhpMySql.
    Help me please !

  17. AndyN says:

    sudo nano /etc/apache2/conf-available/phpmyadmin.conf

    phpmyadmin.conf is blank and empty new file when you run this command.. is the path diferent/changed

    • sk says:

      The path to phpmyadmin.conf is correct when I tested it in Ubuntu 18.04 server. May be it is changed now. Please check the phpmyadmin official documentation.

  18. bloon head says:

    dude thanks please dont change this guide accpet i hate that update change things and this probly wont work in a year so ive done it and duplicated hard disks plus made a copy of all the files needed to do this from scratch and saved this guide … its awesome thanks

  19. Diaz Alief says:

    Not Found
    The requested URL was not found on this server.

    Apache/2.4.29 (Ubuntu) Server at 34.201.36.15 Port 80

  20. Alexandre says:

    Thank you very much for your explanations. It works perfectly.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.