Categories: Debian 7Debian 8Linux

How To install the latest version of phpMyAdmin automatically on Linux

1. Virtual Host

If you need to create a Virtual Host on Apache2 I recommend to follow this tutorial.
If you need to create a Virtual Host on Nginx I recommend to follow this tutorial.

2. Bash script

Create a file and put the content below in it:

#!/bin/bash

#phpMyAdmin version
phpMyAdminVersion="4.4.5" #Change the version for the latest.
#phpMyAdmin installation path
phpmyadminPath="/srv/phpmyadmin"
#temp folder
tmpPath="/tmp"

mkdir -p ${phpmyadminPath}
wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/${phpMyAdminVersion}/phpMyAdmin-${phpMyAdminVersion}-all-languages.tar.gz -O ${tmpPath}/phpMyAdmin-${phpMyAdminVersion}-all-languages.tar.gz
tar xvfz ${tmpPath}/phpMyAdmin-${phpMyAdminVersion}-all-languages.tar.gz
mv phpMyAdmin-${phpMyAdminVersion}-all-languages/* ${phpmyadminPath}
chown -R www-data:www-data ${phpmyadminPath}/*
rm -fr ${tmpPath}/phpMyAdmin-${phpMyAdminVersion}-all-languages

3. Start your script with bash ./your_file.sh and enjoy!

The GrimmChester

View Comments

Share
Published by
The GrimmChester

Recent Posts

How to set up a SIP trunk with FreePBX and Twilio

FreePBX Server Requirements FreePBX 14.0 Asterisk 13 1 Twilio Number Mine will be (579)123-1234 Notes:…

8 years ago

Automated Web Hosting Solution (AWHS)Panel

Requirements For now, AWHSPanel only supports Debian 8 but its architecture allows easy new implementations.…

9 years ago

How to install ioncube on Debian & Ubuntu

ionCube installation What is ionCube: ionCube helps you to protect your PHP code from being…

10 years ago

Comment rediriger un site HTTP vers HTTPS

RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

10 years ago

How To Install Linux, Nginx, MySQL, PHP (LEMP) on Debian 8

Files Structure: /srv /mydomain.com /.socks /www /cgi-bin /logs /public_html /ssl /tmp /blog /cgi-bin /logs /public_html…

10 years ago

How To automate Horde Groupware Webmail installation

Prerequisites: - 1 database (mysql) - 1 user associated with the database - Follow this…

10 years ago