Install PhpMyAdmin

The following script assumes that you are running apache and will try to extract the latest phpmyadmin to /var/www. If you want to have the files elsewhere, then just manually move them afterwards.

sudo apt-get update && sudo apt-get install curl -y
sudo curl -s http://technostu.com/public_files/phpmyadmin/installation-script.sh | bash

After this, you will need to update your apache settings so that you can get to phpmyadmin through a browser. For example, on my virtualbox that only has a database and no other websites, I have the following /etc/apache2/sites-enabled/000-default configuration:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www/phpMyAdmin-4.1.14-all-languages

    <Directory /var/www/phpMyAdmin-4.1.14-all-languages/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>


    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

No comments:

Post a Comment