The configuration method of phpmyadmin under Linux is:
1. phpmyadmin official website[https://www.phpmyadmin. net/】
Download the installation package, unzip it, rename the folder phpmyadmin
and put it into the root directory of the web service, give permission chmod -R 755 phpmyadmin [Browser access When opening, an error will be reported if the permissions are insufficient]
2. Enter the phpmyadmin folder, find config.sample.inc.php and rename it to config.inc.php
Open the config.inc.php file and find this code:
$cfg['blowfish_secret'] = '' 改成 $cfg['blowfish_secret'] = 'c4ca4238a0b923820dcc509a6f75849b';//一个长字符串密码就行
Next, configure the access method,
1. Put it directly into the root directory of your project, use the project The access address phpmyadmin can be accessed, simple~
2. If you need to access from port 80, you need to configure it in httpd.conf, as follows:
Enter the apache installation directory, Create a phpmyadmin.conf configuration file
##Copy the following code to phpmyadmin.confAlias /phpmyadmin "/home/www/phpmyadmin/" #这里填你自己phpmyadmin安装包的地址Add Include conf/phpmyadmin.conf# at the end of httpd.conf#这里填你自己phpmyadmin安装包的地址 Options Indexes FollowSymLinks MultiViews AllowOverride all Require all granted php_admin_value upload_max_filesize 128M php_admin_value post_max_size 128M php_admin_value max_execution_time 360 php_admin_value max_input_time 360
##Save and restart the apache service
Start login
Enter in the browser address bar: http://ip port/phpmyadmin
Recommended tutorial: "
Oracle TutorialThe above is the detailed content of How to configure phpmyadmin under linux. For more information, please follow other related articles on the PHP Chinese website!