我一直在尝试通过 Bitvise SSH 客户端安装 phpmyadmin。
我在 SSH 客户端控制台上所做的是:
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.4.1/phpMyAdmin-4.5.4.1-all-languages.zip
unzip phpMyAdmin-4.5.4.1-all-languages.zip
mv phpMyAdmin-4.5.4.1-all-languages /var/www/html/phpMyAdmin
rm phpMyAdmin-4.5.4.1-all-languages.zip
egrep ‘User|Group’ /etc/httpd/conf/httpd.conf
Here it came out an eoor about '|Group***, I ignored it and kept doing the next step'
useradd phpmydmin
passwd phpmyadmin
cd /var/www/html
chown –R phpmyadmin.apache phpMyAdmin/
cd phpMyAdmin
mkdir config
cp config.sample.inc.php config/config.inc.php
chown –R phpmyadmin.apache config/
chmod –R o+rw config/
service httpd restart
它不起作用...然后我按照我在网上找到的步骤进行操作
http://tecadmin.net/setup-phpmyadmin-on-linux-using-source/ 。
我也不知道如何添加以下内容:
<Directory "/usr/share/phpmyadmin">
Order Deny,Allow
Deny from all
Allow from 192.168.1.0/24
</Directory>
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin"
Could someone help me with it please? &
Why allowing from 192.168.1.0/24? which IP is this?
非常感谢!
最佳答案
您的问题不太清楚,老实说,我无法理解您的需求。您似乎无法编辑该配置文件。好吧,如果这是问题所在,您只需按照以下说明操作即可。
Create a new apache configuration file for phpMyAdmin at
/etc/httpd/conf.d/phpMyAdmin.conf
and add following settings there.
为此,您只需打开一个文本编辑器(nano 是我最喜欢的)
sudo nano/etc/httpd/conf.d/phpMyAdmin.conf
我们需要root权限才能在/etc文件夹中进行操作,这就是我们使用sudo
的原因。根据需要编辑文件,然后使用 Ctrl+O
保存。然后,使用 Ctrl+X
退出 nano。
关于php - 尝试在 Amazon AWS Linux 上安装 phpmyadmin 时无法正常工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35297827/