skip to Main Content

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.

3

Answers


  1. 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/

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
  3. For Ubuntu 22.04

    Install Apache and adminer 4.8.1 (all required components will be installed):

    sudo apt install apache2 adminer
    

    enable adminer config

    sudo a2enconf adminer
    sudo service apache2 restart 
    

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

    http://[SERVER_IP]/adminer/conf.php
    

    if newer version is available:

    sudo wget "http://www.adminer.org/latest.php" -O /usr/share/adminer/adminer.php
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search