标签:png .com firewall isa lib resolve sys har bsp
在一台初始化的linux服务器上安装 httpd php-fpm php-mysql mariadb-server
vim /etc/my.cnf
添加:skip_name_resolve
systemctl stop firewalld systemctl disable firewalld
vim /etc/php-fpm.d/www.conf listen =0.0.0.0:9000 listen.allowed_clients = 192.168.153.7
vim /etc/httpd/conf.d/pma.conf DirectoryIndex index.php <VirtualHost *:80> ServerName pma.magedu.com DocumentRoot /vhosts/pam/htdocs ProxyRequests Off ProxyPassMatch ^/(.*\.php)$ fcgi://192.168.153.7:9000/vhosts/pam/htdocs/$1 <Directory "/vhosts/pam/htdocs"> Options None AllowOverride None Require all granted </Directory> </VirtualHost>
根据上面弄得虚拟主机,我们要在目录/vhosts/pam/下 解压
unzip phpMyAdmin-4.0.10.20-all-languages.zip
此处做一个软连接,方便管理。
ln -sv phpMyAdmin-4.0.10.20-all-languages htdocs
进入到htdocs 下,ls
里面是phpmyadmin所有的文件。首先我们要把主配置文件找出来。
config.sample.inc.php 是一个模板配置,我们要把它改为config.inc.php
然后编辑 vim config.inc.php
在这里面我们要改一项 host 改为本机ip,不能为默认 localhost。
进入mysql,我们要给一个用户访问本地数据库权限的账号密码
grant all on *.* to ‘root1‘@‘192.168.153.7‘ identified by ‘magedu‘ with grant option;
五:验证
进入linux 图形化界面打开狐火浏览器
输入 pam.magedu.com
成功,输入账号密码验证
搭建成功。
标签:png .com firewall isa lib resolve sys har bsp
原文地址:https://www.cnblogs.com/zkwjl/p/9845684.html