Installing phpMyAdmin on your Account

If you have a web designer and they are designing your website with a content management system (CMS), the designer may need access to the databases. Until now, the easiest solution was to provide them with the cPanel username and password to access phpMyAdmin. For security purposes, this may not be the best solution since this would allow the third party complete access to your cPanel account, including email, add-on domains, and other files/ databases you may have.

You can install phpMyAdmin on your account in a few easy steps that will eliminate the need to provide your designer with cPanel access.

Manual Installation SSH Softaculous

Installing phpMyAdmin on Shared Hosting Packages

  1. Download the zip file of the latest version at phpMyAdmin.net.
    phpmyadmin.net website

    You can read about verifying file checksums in our related article.

  2. Once you download the zip file, you’ll need to upload the file via an FTP program or cPanel using File Manager. We recommend FileZilla for FTP.
  3. Once in File Manager, upload the package you downloaded to the public_html folder.
    zip file in cPanel File Manager
  4. After uploading the file, uncompress it. To do so, right-click the highlighted file and select extract.
    Extracting file in File Manager
  5. Once the file is extracted, you will notice there is a file folder created. Rename the folder “phpMyAdmin-4.8.3-all-languages.zip” to “phpmyadmin” or similar for additional security.
  6. Visit the folder in your web browser, e.g. http://example.com/phpmyadmin/setup.
  7. You will need to create a config.inc.php file. You can do this on the setup screen, download the file, and upload it into the /phpmyadmin directory or by copying public_html/phpmyadmin/config.sample.inc.php to config.inc.php.
    phpMyAdmin setup screen

    Note: Info on all options possible in the config file such as Authentication options is available in phpMyAdmin documentation.

  8. Click New server and type your server hostname beside “Verbose name of this server“, easily found in your AMP Account Technical Details. Then click “Save”.
  9. You can now access phpMyAdmin without cPanel by visiting, e.g. http://example.com/phpmyadmin/index.php.
  10. Note: If using SuPHP, make sure the .htaccess files do not have PHP settings.

Congratulations! You have successfully installed phpMyAdmin externally and you can access your databases without cPanel!

Installing phpMyAdmin using SSH

  1. SSH into the cPanel account.
  2. Enter the public_html folder:

    cd ~/public_html

  3. Install the compressed file:

    wget https://files.phpmyadmin.net/phpMyAdmin/4.8.3/phpMyAdmin-4.8.3-all-languages.zip

  4. Unzip the compressed file:

    unzip phpMyAdmin-4.8.3-all-languages.zip > /dev/null

  5. Assign the correct file permissions:

    chown -R $USER:$USER phpMyAdmin-4.8.3-all-languages*

  6. Move the files to the appropriate place:

    mv phpMyAdmin-4.8.3-all-languages phpmyadmin

  7. Copy the file and rename the config.inc.php file:

    cp -p phpmyadmin/config.sample.inc.php phpmyadmin/config.inc.php

  8. Set a random string to the “blowfish_secret”:

    randomString=$( head -1 /dev/urandom|md5sum|cut -d” ” -f1 ); sed -i “s/\$cfg\[‘blowfish_secret’\] = ”;/\$cfg\[‘blowfish_secret’\] = ‘$randomString’;/g” config.inc.php; unset randomString

You can now access phpMyAdmin by visiting, for example, http://example.com/phpmyadmin/install.

Note: If using SuPHP, make sure the .htaccess files do not have PHP settings.

Install phpMyAdmin in Softaculous

  1. Log into cPanel

directly or via AMP.

  • Search and select the 'Softaculous Apps Installer' icon in cPanelSoftaculous button.
  • From the left of the page, search and select phpMyAdmin under DB Tools.
    Screenshot in Softaculous searching for and selecting phpMyAdmin
  • Select Install Now to begin with installation details.
    Screenshot selecting 'Install Now' to begin with installation details
  • Specify the protocol, domain, directory, database host, and Softaculous backup location as needed before pressing Install.
    Blue Softaculous install button

    Note: You’ll receive the error below if the specified domain isn’t using PHP 7.1 or higher. You can check this via cPanel PHP Configuration (or MultiPHP Manager for VPS/Dedicated)
    or a phpinfo page – e.g. example.com/phpinfo.php.
    Screenshot showing at least PHP 7.1 required to install phpMyAdmin

    Select the checkbox in the warning to update the specified domain (or subdomain) to PHP 7.1 or edit it manually from the cPanel PHP Configuration (MultiPHP Manager for VPS/Dedicated). Screenshot showing ability to check box to change PHP version to 7.1

  • Congratulations. You can now access phpMyAdmin using your specified domain.

    Thoughts on “Installing phpMyAdmin on your Account

    • I have a shared hosting site and installed phpadmin to a folder in my account, however what is the hostname I should set in phpadmin ?

      • Hello Ricky,

        Typically, the host name for a MySQL database using the database on our servers is set to “localhost”.

        If you have any further questions, please let us know.

        Kindest regards,
        Arnel C.

      • Hello Oz,

        Sorry you’re having problems with the config folder. Unfortunately, it’s difficult for us to determine what you’ve done in the process unless you have an account we can access. Can your provide a URL for the site? Also, can you describe how you are creating the new folder or directory? It would help us to understand why you say the folder is not being seen by phpMyAdmin. Are you able to see the contents of the folder?

        Please provide a little more information and we would happy to help.

        Regards,
        Arnel C.

    • the prob is that the “privileges” tab does not appear, i guess it’s a root privilege thing..
      Thank you !

      • Hello dilan,

        Thank you for your question. Yes, you can install PHPmyAdmin on any account, however it is in cPanel by default, in the Databases section.

        If you need to install it, I recommend using Softaculous to install PHPmyAdmin, since it is a simplified 1-click installation.

        If you have any further questions, feel free to post them below.
        Thank you,

        -John-Paul

    Leave a Reply