phpMyAdmin is a web-based interface for managing MySQL and MariaDB databases. It allows administrators to manage databases, users, and tables via an intuitive web interface. Installing phpMyAdmin on openSUSE and SUSE Linux Enterprise Server (SLES) requires adding necessary repositories and configuring services like Apache and PHP.
Since phpMyAdmin is not included in the default repositories, you need to add an external repository such as SUSE Package Hub for SLES or a specific repository for openSUSE. The installation process will also handle dependencies like php-mysql and Apache, but additional configuration is necessary to ensure web access and security.
This guide provides the necessary steps to install and configure phpMyAdmin on openSUSE and SLES.
$ sudo zypper addrepo https://download.opensuse.org/repositories/openSUSE:Leap:15.2:Update/standard/openSUSE:Leap:15.2:Update.repo $ sudo zypper refresh
$ SUSEConnect -p PackageHub/15.2/x86_64
$ sudo zypper install phpMyAdmin
$ sudo zypper install apache2 php7 php7-mysql
$ sudo vi /etc/apache2/conf.d/phpMyAdmin.conf
Alias /phpmyadmin "/usr/share/phpMyAdmin"
Require all granted
extension=php_mbstring
$ sudo systemctl restart apache2
$ htpasswd -c /etc/phpMyAdmin/.htpasswd your_username
<Directory "/usr/share/phpMyAdmin"> AuthType Basic AuthName "phpMyAdmin" AuthUserFile /etc/phpMyAdmin/.htpasswd Require valid-user </Directory>
$ sudo systemctl restart apache2
http://server_ip_or_hostname/phpmyadmin
This guide is tested on openSUSE and SLES:
| Version | Details |
|---|---|
| openSUSE Leap 15.2 | Supported |
| openSUSE Tumbleweed | Supported |
| SLES 15.x | Requires SUSE Package Hub |