• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to Install phpMyAdmin on Ubuntu 18.10

  • 01:02 apt install phpmyadmin -y
  • 01:32 cd /etc/apache2/conf-enabled
  • 01:34 ll
  • 01:46 mysql -u root -p
  • 02:06 systemctl restart apache2
  • 02:24 mysql -u root -p
5568

Installation of phpMyAdmin On ubuntu 18.10

Requirements:

LAMP stack (Linux,Apache,MySQL and PHP ) installed.

PHP v --> 5.2.0 or newer

PHP modules

php-mysqli

Installation

Location of phpmyadmin configuration file:

/etc/apache2/conf-enabled/phpmyadmin.conf

Install the phpmyadmin using apt

root@linuxhelp:~# apt install phpmyadmin -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2
  php-php-gettext php-phpseclib php-tcpdf php7.2-bz2
Suggested packages:
  php-libsodium php-mcrypt php-gmp php-imagick
The following NEW packages will be installed:
  dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2
  php-php-gettext php-phpseclib php-tcpdf php7.2-bz2 phpmyadmin
0 upgraded, 12 newly installed, 0 to remove and 194 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 49.2 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 dbconfig-common all 2.0.9 [601 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu cosmic/universe amd64 dbconfig-mysql all 2.0.9 [1,038 B]
Get:3 http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 javascript-common all 11 [6,066 B]
Get:4 http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 libjs-jquery all 3.2.1-1 [152 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu cosmic/main amd64 libjs-underscore all 1.8.3~dfsg-1 [59.9 kB]

In the First Package Configuration Screen,Press Space And Click tab ,hit enter. snap1 In the second package Configuration Screen,Hit enter by clicking tab on yes. snap2 Provide the root password of MariaDB to configure the phpMyAdmin database into the MariaDB database. snap3 Re-enter the password of root again snap4 . . . .

Creating config file /etc/phpmyadmin/config-db.php with new version
checking privileges on database phpmyadmin for phpmyadmin@localhost: user creation needed.
granting access to database phpmyadmin for phpmyadmin@localhost: success.
verifying access for phpmyadmin@localhost: success.
creating database phpmyadmin: success.
verifying database phpmyadmin exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password
apache2_invoke: Enable configuration phpmyadmin

Go to the phpMyAdmin Configuration location

root@linuxhelp:~# cd /etc/apache2/conf-enabled/
root@linuxhelp:/etc/apache2/conf-enabled# ll
total 8
drwxr-xr-x 2 root root 4096 Apr 24 01:31 ./
drwxr-xr-x 8 root root 4096 Apr  6 09:52 ../
lrwxrwxrwx 1 root root   30 Apr  6 09:52 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root   40 Apr 24 01:30 javascript-common.conf -> ../conf-available/javascript-common.conf
lrwxrwxrwx 1 root root   44 Apr  6 09:52 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root   46 Apr  6 09:52 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root   33 Apr 24 01:31 phpmyadmin.conf -> ../conf-available/phpmyadmin.conf
lrwxrwxrwx 1 root root   31 Apr  6 09:52 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root   36 Apr  6 09:52 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf

Log in to the mariaDB database to check the phpmyadmin database

root@linuxhelp:/etc/apache2/conf-enabled# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 66
Server version: 10.1.29-MariaDB-6ubuntu2 Ubuntu 18.10
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| phpmyadmin         |
+--------------------+
4 rows in set (0.02 sec)
MariaDB [(none)]> exit
Bye

Restart the service Of Apache:

root@linuxhelp:/etc/apache2/conf-enabled# systemctl restart apache2

Open the browser and enter the url as follows: snap5 Login to the mariadb database and assign the credentials for phpmyadmin database.

root@linuxhelp:/etc/apache2/conf-enabled# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 67
Server version: 10.1.29-MariaDB-6ubuntu2 Ubuntu 18.10
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use phpmyadmin;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [phpmyadmin]> create user user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.02 sec)
MariaDB [phpmyadmin]> grant all on phpmyadmin.* to user@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [phpmyadmin]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [phpmyadmin]> exit
Bye

Go to the browser and enter the login credentials of phpmyadmin database then hit go. snap6 The dashboard of phpMyAdmin gets opened which displays the databases. snap7 Thus Installation of phpMyAdmin on Ubuntu 18.10 comes to end.

Tags:
niklaus
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is phpMyAdmin?

A

phpMyAdmin is a tool used for managing a database with a web browser.

Q

What is the location of phpmyadmin configuration file?

A

The Location of phpmyadmin configuration file in ubuntu 18.10 is /etc/apache2/conf-enabled/phpmyadmin.conf

Q

What is the latest version of phpMyAdmin?

A

The latest version of phpMyAdmin 4.8.5

Q

What is the least supported php version in phpmyadmin?

A

The least supported php version in phpmyadmin is 5.5 and the latest version is 7.2

Q

What are the php modules required for the phpmyadmin?

A

php-mysql is the module required for phpmyadmin.

Related Tutorials in How to Install phpMyAdmin on Ubuntu 18.10

Related Tutorials in How to Install phpMyAdmin on Ubuntu 18.10

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to Install phpMyAdmin on Ubuntu 18.10

Related Forums in How to Install phpMyAdmin on Ubuntu 18.10

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to Install phpMyAdmin on Ubuntu 18.10

Related News in How to Install phpMyAdmin on Ubuntu 18.10

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.