微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

权威的LEMP堆栈官方 – Ubuntu 14.04

我已经按照这里所示的确切过程: https : //www.digitalocean.com/community/tutorials/how-to-install-linux-NginxMysqL-PHP-lemp-stack-on-ubuntu-14-04

我一直有这么多的问题得到一个本地Nginx堆栈启动。 我已经search了很多很多的堆栈,但无论如何我都弄不清楚。 虽然我很亲密,但是我的网站目前只是下载PHP文件而不是运行它们。 我正在使用我自己build立的虚拟盒子的stream浪汉。 我一直认为这是一个PHP5-fpm的问题,但我不知道了。

我需要帮助。

# You may add here your # server { # ... # } # statements for each of your virtual hosts to this file ## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # http://wiki.Nginx.org/Pitfalls # http://wiki.Nginx.org/QuickStart # http://wiki.Nginx.org/Configuration # # Generally,you will want to move this file somewhere,and start with a clean # file but keep this around for reference. Or just disable in sites-enabled. # # Please see /usr/share/doc/Nginx-doc/examples/ for more detailed examples. ## server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 listen 80 default_server; root /var/www; index index.html index.htm index.PHP; # Make site accessible from http://localhost/ server_name sandBox.dev.com; location / { # First attempt to serve request as file,then # as directory,then fall back to index.html #try_files $uri $uri/ /index.html; try_files $uri $uri/ =404; # Uncomment to enable naxsi on this location # include /etc/Nginx/naxsi.rules } location /doc/ { alias /usr/share/doc/; autoindex on; allow 127.0.0.1; deny all; }

Nginx.conf

问题与JPA,EclipseLink和区分大小写的MysqL

我怎样才能从bash脚本传递密码到aptitude来安装MysqL

什么Node.js的MysqL驱动程序在Windows上工作?

我的sql安装错误在Ubuntu – 12.04

解决MysqL的bash与coloumn名称有“ – ”&从文件查询MysqL

vagrant@precise64:/etc/Nginx$ cat Nginx.conf user www-data; worker_processes 4; pid /var/run/Nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; # server_name_in_redirect off; include /etc/Nginx/mime.types; default_type application/octet-stream; ## # Logging Settings ## access_log /var/log/Nginx/access.log; error_log /var/log/Nginx/error.log; ## # Gzip Settings ## gzip on; gzip_disable "msie6"; # gzip_vary on; # gzip_proxied any; # gzip_comp_level 6; # gzip_buffers 16 8k; # gzip_http_version 1.1; # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+RSS text/javascript; ## # Nginx-naxsi config ## # Uncomment it if you installed Nginx-naxsi ## #include /etc/Nginx/naxsi_core.rules; ## # Nginx-passenger config ## # Uncomment it if you installed Nginx-passenger ## #passenger_root /usr; #passenger_ruby /usr/bin/ruby; ## # Virtual Host Configs ## include /etc/Nginx/conf.d/*.conf; include /etc/Nginx/sites-enabled/*; } #mail { # # See sample authentication script at: # # http://wiki.Nginx.org/ImapAuthenticateWithApachePHPScript # # # auth_http localhost/auth.PHP; # # pop3_capabilities "TOP" "USER"; # # imap_capabilities "IMAP4rev1" "UIdplUS"; # # server { # listen localhost:110; # protocol pop3; # proxy on; # } # # server { # listen localhost:143; # protocol imap; # proxy on; # } #}

帮助安全疑问(PHP MysqL APACHE Windows)

MysqL'select Now()'与linux'date'不同步

手动安装Apache / MysqLPHP的优势

任何类似于WAMP?

找不到文件:'./ci/users.frm'(errno:13)

将以下位置添加到您的认/ conf文件中的服务器块。 之后,重新启动Nginx

server { location ~ .PHP$ { try_files $uri =404; fastcgi_split_path_info ^(.+.PHP)(/.+)$; 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将.PHP文件作为下载服务,而不是执行它们

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐