Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Adminer on Ubuntu 18.04 bionic

I'm trying to install Adminer from Ubuntu repository using:

sudo apt install adminer

Installation works fine but can't find the file /etc/adminer/apache.conf to use with Apache server. The folder /etc/adminer/ is empty and can't find it anywhere with find command.

Any help? Thanks in advance.

like image 494
karim Avatar asked Sep 24 '18 12:09

karim


People also ask

How do I login as administrator?

To access it, all you need to do is visit its link through your browser. For example, if you've placed it in your website's root directory, then you can access it by visiting https://your-website.com/adminer-4.7.8.php.


2 Answers

Install Apache:

sudo apt-get install apache2

Install PHP:

sudo apt-get install php libapache2-mod-php php-mysql

Install Adminer:

sudo wget "http://www.adminer.org/latest.php" -O /var/www/html/adminer.php

Once the installation completes, restart Apache.

sudo service apache2 restart 

At this point, the setup is complete. You can access Adminer at the following address.

http://[SERVER_IP]/adminer.php
like image 151
Valsaraj Viswanathan Avatar answered Oct 08 '22 20:10

Valsaraj Viswanathan


In the next few steps, I'll show you how I installed adminer for Ubuntu 18.04.1 LTS .

  1. After installation with apt package manager change into the adminer directory.

    cd /usr/share/adminer
    

    There you will find a file called compile.php.

  2. Run the following command and the adminer-X.X.X.php (X.X.X for your version) file will be created.

    sudo php compile.php
    
  3. Create the apache adminer configuration file.

    sudo echo "Alias /adminer.php /usr/share/adminer/adminer-X.X.X.php" | sudo tee /etc/apache2/conf-available/adminer.conf
    
  4. Now you'll need to activate the configuration.

    cd /etc/apache2/conf-available/
    sudo a2enconf adminer.conf
    
  5. Reload your apache webserver.

    sudo systemctl reload apache2.
    
  6. Test in your browser of choice (localhost/adminer.php)

This source was really helpful:
https://www.linuxhelp.com/how-to-install-adminer-on-ubuntu-16-04/

like image 30
Dominik K Avatar answered Oct 08 '22 19:10

Dominik K