Professional Documents
Culture Documents
Install PhpMyAdmin With Apache On CentOS, RHEL 8 - TechSupport
Install PhpMyAdmin With Apache On CentOS, RHEL 8 - TechSupport
YouTube 467
1 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
sudo dnf -y install php php-common php-process php-xmlrpc php-xml php-soap php-snmp php-re
sudo mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
2 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
3 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
info.php /var/www/html
sudo vi /var/www/html/info.php
<?php
phpinfo();
?>
http://your_server_name_or_ip
4 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
mod_ssl
export VER="5.0.0"
config.sample.inc.php
5 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
config.inc.php
sudo vi /usr/share/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = '$2a$07$H6V9J74bK5S5qez6CRXt7OviIqRlFwJiniEFAaBsGXoz8MCukudia';
$cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
phpmyadmin.conf
sudo vi /etc/httpd/conf.d/phpmyadmin.conf
<Directory /usr/share/phpmyadmin/>
AddDefaultCharset UTF-8
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 192.168.137.1
Allow from ::1
</IfModule>
</Directory>
6 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
Allow from
192.168.137.1
sudo setenforce 0
https://your_server_name_or_ip/phpmyadmin
7 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
8 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
9 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
10 de 11 03/11/2023, 16:38
Install PhpMyAdmin with Apache on CentOS, RHEL 8 - TechSupport https://www.techsupportpk.com/2019/12/how-to-set-up-phpmyadmin-o...
Enter Comment
11 de 11 03/11/2023, 16:38