utorok 15. decembra 2020

phpmyadmin on centos 8

phpmyadmin on centos 8

 

 


 1. yum install httpd -y

2. yum install mariadb-server

3. systemctl start mariadb

4. mysql_secure_installation

5. yum install -y wget php php-pdo php-pecl-zip php-json php-common php-fpm php-mbstring php-cli php-mysqlnd

6. yum install -y php-json php-mbstring

7. wget https://files.phpmyadmin.net/phpMyAdmin/4.9.1/phpMyAdmin-4.9.1-all-languages.tar.gz

8. tar -zxvf phpMyAdmin-4.9.1-all-languages.tar.gz

9. mv phpMyAdmin-4.9.1-all-languages /usr/share/phpMyAdmin

10. cp -pr /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php

11. Generate blowfish secret and place it into the below line.

$cfg['blowfish_secret'] = 'bo95yavJ;V,1PzSlxyFwtyMJ}WmG98-6'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

12. mysql < /usr/share/phpMyAdmin/sql/create_tables.sql -u root -p

(heslo do roota pre mariadb)

13. vi /etc/httpd/conf.d/phpMyAdmin.conf

14. copy and paste from: https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-install-phpmyadmin-on-rhel-8.html

15. mkdir /usr/share/phpMyAdmin/tmp

16. chmod 777 /usr/share/phpMyAdmin/tmp

17. chown -R apache:apache /usr/share/phpMyAdmin

18. apachectl configtest

19. systemctl restart httpd

20. restorecon -Rv '/usr/share/phpMyAdmin/'

21. run: http://localhost/phpmyadmin


Žiadne komentáre:

Zverejnenie komentára