0
我一直無法成功安裝和配置phpMyadmin
,運行nginx
的Amazon Linux
。如何在運行nginx的亞馬遜Linux上安裝phpMyAdmin
這裏是我運行命令:
# Configure repel to install phpMyadmin
sudo yum-config-manager --enable epel
# Install phyMyAdmin
sudo yum install phpmyadmin -y
# Create a symbolic link to phpMyadmin
sudo ln -s /usr/share/phpMyAdmin /var/www/html/phpmyadmin
當我嘗試去安裝mydomain.com/phpmyadmin
我得到一個404 error
我的nginx.conf
server {
listen 80;
server_name server_name www.domain.com domain.com;
location/{
root /var/www/html;
index index.php index.html index.htm;
}
location ~ \.php$ {
root /var/www/html;
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
如何解決這個?
我想問問亞馬遜尋求幫助?如果你通過他們購買服務器,他們應該在一開始就幫助你。 –
@MartinJoneš那沒什麼幫助 –
你可以粘貼你的nginx配置嗎? –