Home > Database > phpMyAdmin > body text

How to build a website with phpmyadmin

Release: 2019-12-13 11:08:40
Original
3585 people have browsed it

How to build a website with phpmyadmin

How to build a website with phpmyadmin:

Prepare the environment

httpd php php-mysql

[root@DB3 ~]#yum install httpd php php-mysql -y
Copy after login

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/
Copy after login

Rename the unzipped directory for easy access

[root@DB3 html]# mv phpMyAdmin-4.7.5-all-languages phpadmin
Copy after login

Change permissions for security reasons

[root@DB3 html]# chown -R apache:apache phpadmin
Copy after login

Prepare phpmyadmin configuration file

[root@DB3 phpadmin]# cp config.sample.inc.php config.inc.php
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!