当前位置:首页 > 服务器技术 > nginx

How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7

80; root /opt/app/blog/wz/wordpress/; index index.php index.html index.htm; server_name iwangzheng.com; location / { try_files $uri $uri/ /index.html; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/www; } location ~ .php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }

nginx.conf的第一行是user www-data;

把这个项目目录的权限修改下

sudo chown -R www-data:www-data /opt/app/blog/wz/wordpress/

4) Install and Configure PHP

Installation

You probably guessed it! We will use the apt-get command to install PHP-FPM:

sudo apt-get install php5-fpm php5-mysql


sudo service nginx restart
sudo service php5-fpm restart



How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7

标签:

本文系统来源:http://blog.csdn.net/shiralwz/article/details/51333783


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!