Home>Article>Database> How to configure phpmyadmin under linux

How to configure phpmyadmin under linux

hzc
hzc Original
2020-06-09 14:01:08 2392browse

How to configure phpmyadmin under linux

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

How to configure phpmyadmin under linux

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

How to configure phpmyadmin under linux

##Copy the following code to phpmyadmin.conf

Alias /phpmyadmin "/home/www/phpmyadmin/" #这里填你自己phpmyadmin安装包的地址  #这里填你自己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 

Add Include conf/phpmyadmin.conf# at the end of httpd.conf


How to configure phpmyadmin under linux##Save and restart the apache service

Start login

Enter in the browser address bar: http://ip port/phpmyadmin

How to configure phpmyadmin under linuxRecommended tutorial: "

Oracle Tutorial

"

The 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!

Statement:
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