As I was following on this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-18-04-server, halfway I entered a wrong option. That is why I aborted the installation proces, removed phpmyadmin with the commands below and tried to restart the installation.

sudo apt-get remove phpmyadmin
sudo apt-get purge phpmyadmin
sudo apt-get autoremove

Now, when I enter the following commands as to restart the installation proces, no program is started that takes me to the next step, which is:

*During the installation process, you will be prompted to choose the web server (either Apache or Lighthttp) to configure. Because we are using Nginx as web server, we shouldn’t make a choice here. Press tab and then OK to advance to the next step.

Next, you’ll be prompted whether to use dbconfig-common for configuring the application database. Select Yes. This will set up the internal database and administrative user for phpMyAdmin. You will be asked to define a new password for the phpmyadmin MySQL user. You can also leave it blank and let phpMyAdmin randomly create a password.*

Any advice on how I can restart the installation procedure? I am installing on Ubuntu 20.04

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

@KFSys @alexdo , thank you for your help. I found a solution! When I start the tutorial again using the Digital Ocean Console and not the Terminal, the installation process starts :)

Hi @katovonkatz,

*During the installation process, you will be prompted to choose the web server (either Apache or Lighthttp) to configure. Because we are using Nginx as web server, we shouldn’t make a choice here. Press tab and then OK to advance to the next step.

Does seem to be the beginning of the installation. Anyway, try and remove all the files from your /tmp. Maybe there is a temporary file that holds the initial information you put.

  • Hi KFSys,

    You are right, the problem arises at the beginning of the installation.

    I did as you said, and cleaned the /tmp file.

    But still, when I run the following command, I get this, and are not redirected to the installation wizard.

    sudo apt install phpmyadmin
    
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    phpmyadmin is already the newest version (4:4.9.5+dfsg1-2).
    0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
    

    Any other thoughts on what I can do to start it?

    • Hi @katovonkatz,

      Okay so I have two questions in that case, what is the output when you run

      sudo apt-get remove phpmyadmin
      

      And let’s say the above doesn’t work and it doesn’t remove phpMyAdmin, can you try following the tutorial to the end and see if it would work?

      Regards,
      KFSys

      • This is my output.

        sudo apt-get remove phpmyadmin
        

        Reading package lists… Done
        Building dependency tree

        Reading state information… Done
        The following packages were automatically installed and are no longer required:
        dbconfig-common dbconfig-mysql icc-profiles-free javascript-common
        libjs-jquery libjs-openlayers libjs-sphinxdoc libjs-underscore php php-bz2
        php-google-recaptcha php-phpmyadmin-motranslator php-phpmyadmin-shapefile
        php-phpmyadmin-sql-parser php-phpseclib php-psr-cache php-psr-container
        php-psr-log php-symfony-cache php-symfony-cache-contracts
        php-symfony-expression-language php-symfony-service-contracts
        php-symfony-var-exporter php-tcpdf php-twig php-twig-extensions php7.4
        php7.4-bz2
        Use ‘sudo apt autoremove’ to remove them.
        The following packages will be REMOVED:
        phpmyadmin
        0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
        After this operation, 27.2 MB disk space will be freed.
        Do you want to continue? [Y/n] y
        (Reading database … 107076 files and directories currently installed.)
        Removing phpmyadmin (4:4.9.5+dfsg1-2) …
        Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.

        sudo apt autoremove
        

        Reading package lists… Done
        Building dependency tree

        Reading state information… Done
        The following packages will be REMOVED:
        dbconfig-common dbconfig-mysql icc-profiles-free javascript-common
        libjs-jquery libjs-openlayers libjs-sphinxdoc libjs-underscore php php-bz2
        php-google-recaptcha php-phpmyadmin-motranslator php-phpmyadmin-shapefile
        php-phpmyadmin-sql-parser php-phpseclib php-psr-cache php-psr-container
        php-psr-log php-symfony-cache php-symfony-cache-contracts
        php-symfony-expression-language php-symfony-service-contracts
        php-symfony-var-exporter php-tcpdf php-twig php-twig-extensions php7.4
        php7.4-bz2
        0 upgraded, 0 newly installed, 28 to remove and 52 not upgraded.
        After this operation, 41.5 MB disk space will be freed.
        Do you want to continue? [Y/n] y
        (Reading database … 105360 files and directories currently installed.)
        Removing dbconfig-mysql (2.0.13) …
        Removing dbconfig-common (2.0.13) …
        Removing php-tcpdf (6.3.5+dfsg1-1) …
        Removing icc-profiles-free (2.0.1+dfsg-1) …
        Removing javascript-common (11) …
        Removing libjs-sphinxdoc (1.8.5-7ubuntu3) …
        Removing libjs-jquery (3.3.1~dfsg-3) …
        Removing libjs-openlayers (2.13.1+ds2-7) …
        Removing libjs-underscore (1.9.1~dfsg-1) …
        Removing php (2:7.4+75) …
        Removing php-bz2 (2:7.4+75) …
        Removing php-google-recaptcha (1.2.3-1) …
        Removing php-phpmyadmin-motranslator (5.0.0-1) …
        Removing php-phpmyadmin-shapefile (2.1-3) …
        Removing php-phpmyadmin-sql-parser (4.6.1-2) …
        Removing php-phpseclib (2.0.23-2) …
        Removing php-symfony-expression-language (4.3.8+dfsg-1ubuntu1) …
        Removing php-symfony-cache (4.3.8+dfsg-1ubuntu1) …
        Removing php-symfony-cache-contracts (1.1.8-1) …
        Removing php-psr-cache (1.0.1-2) …
        Removing php-symfony-service-contracts (1.1.8-1) …
        Removing php-psr-container (1.0.0-2) …
        Removing php-psr-log (1.1.2-1) …
        Removing php-symfony-var-exporter (4.3.8+dfsg-1ubuntu1) …
        Removing php-twig-extensions (1.5.4-1) …
        Removing php-twig (2.12.5-1) …
        Removing php7.4 (7.4.3-4ubuntu2.4) …
        Removing php7.4-bz2 (7.4.3-4ubuntu2.4) …
        Processing triggers for man-db (2.9.1-1) …
        Processing triggers for php7.4-fpm (7.4.3-4ubuntu2.4) …

        sudo apt-get purge phpmyadmin
        

        Reading package lists… Done
        Building dependency tree

        Reading state information… Done
        The following packages will be REMOVED:
        phpmyadmin*
        0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
        After this operation, 0 B of additional disk space will be used.
        Do you want to continue? [Y/n] y
        (Reading database … 103712 files and directories currently installed.)
        Purging configuration files for phpmyadmin (4:4.9.5+dfsg1-2) …

Hello, @katovonkatz

May I ask if this is a new droplet and you’re basically still in the early process of configuring the droplet?

If that is correct you can simply deploy a new droplet and quickly go through the article and the install process again, but with choosing the options you like this time.

Hope that this helps!
Regards,
Alex

Submit an Answer