nginxの代理応答解析PHPのLAMP環境

1つのLAMP構成

-Y MariaDB MariaDBのhttpdのyum-SERVER-mysqlのPHP PHPをインストールします  (はいmysqlのMariaDBの分岐)

2サービス開始

HTTPDを起動systemctl

mariadbを開始systemctl 

テストファイルを作成します。

vimの/var/www/html/test.php

<?phpのの
のphpinfo();
?>

テストhttp://192.168.200.113/test.php

サーバーnginxのを修正

Vimの/usr/local/nginx/conf/nginx.conf


場所〜* \ .phpの$ {
proxy_passます。http://192.168.20
0.113;
}

メインの設定ファイルをリロード

killallを-HUP nginxの

サーバがPHPを解析することができるかどうかをテスト

192.168.200.112/test.php

 

おすすめ

転載: www.cnblogs.com/shinian12138/p/11528843.html