How to build a website with phpmyadmin:
Prepare the environment
httpd php php-mysql
[root@DB3 ~]#yum install httpd php php-mysql -y
Unpack and specify the release path
phpMyAdmin-4.7.5-all-languages.tar.gz
[root@DB3 ~]#tar -xvf phpMyAdmin-4.7.5-all-languages.tar.gz -C /var/www/html/
Rename the unzipped directory for easy access
[root@DB3 html]# mv phpMyAdmin-4.7.5-all-languages phpadmin
Change permissions for security reasons
[root@DB3 html]# chown -R apache:apache phpadmin
Prepare phpmyadmin configuration file
[root@DB3 phpadmin]# cp config.sample.inc.php config.inc.php
Modify configuration file
Modify lines 17 and 31 of config.inc.php
[root@DB3 phpadmin]# vim config.inc.php
17 $cfg['blowfish_secret'] = 'heya'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
31 $cfg['Servers'][$i]['host'] = 'localhost';
#17 line needs to be in $cfg['blowfish_secret'] = ' ' Add any characters between the two single quotes for COOKIE cache verification.
Line 31 is to change [‘host’] = ‘localhost’; localhost is changed to the IP address of your database. Ned’s data is on this machine, so it is localhost.
Start the service and test it on the client
[root@DB3 phpadmin]#systemctl restart httpd
To test the client, just find a machine that can connect to the newly set up machine and test it
In the browser Enter http://machine’s IP/phpadmin/
Recommended learning:phpmyadmin tutorial
The above is the detailed content of How to build a website with phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!