全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: licess

LNMP 0.5-CentOS/Debian下Nginx+MySQL+PHP一键安装包(5月21日再次更新)

[复制链接]
发表于 2010-2-21 22:34:17 | 显示全部楼层
原帖由 gdtv 于 2010-2-2 15:53 发表
刚刚在burst的vps上装了,nginx成功,php没有安装成功

我也是,难道PHP官方链接问题了?
发表于 2010-2-27 12:42:31 | 显示全部楼层
怪了,前几天在dia上安装成功了
今天换了个vps确安装失败
同样是PHP没有安装成功……
发表于 2010-3-1 01:58:35 | 显示全部楼层
http://67.213.211.82/phpinfo.php
http://67.213.211.82/p.php

这算成功否?

我快哭死了,这个东西,我装了不下10次。。。

我想绑定多个域名,修改文件后就nginx不启动
发表于 2010-3-1 20:13:54 | 显示全部楼层

回复 93# 的帖子

成功了哈,nginx已经启动了,php页面也可以解析开了。
发表于 2010-3-5 15:49:08 | 显示全部楼层
15:56 2010-03-05
linode vps再次安装成功
发表于 2010-3-20 01:08:44 | 显示全部楼层
我安装好0.3版的之后 是这样的
  1. server
  2.         {
  3.                 listen       80;
  4.                 server_name xxAAA.net;
  5.                 index index.html index.htm index.php;
  6.                 root  /home/wwwroot;

  7.                 location ~ .*\.(php|php5)?$
  8.                         {
  9.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  10.                                 #fastcgi_pass  127.0.0.1:9000;
  11.                                 fastcgi_index index.php;
  12.                                 include fcgi.conf;
  13.                         }

  14.                 location /status {
  15.                         stub_status on;
  16.                         access_log   off;
  17.                 }

  18.                 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  19.                         {
  20.                                 expires      30d;
  21.                         }

  22.                 location ~ .*\.(js|css)?$
  23.                         {
  24.                                 expires      12h;
  25.                         }

  26.                 log_format  access  '$remote_addr - $remote_user [$time_local] "$request" '
  27.              '$status $body_bytes_sent "$http_referer" '
  28.              '"$http_user_agent" $http_x_forwarded_for';
  29.                 access_log  /home/wwwroot/logs/access.log  access;
  30.         }
  31. include vhost/*.conf;
  32. }
复制代码
是不是应该在
  1. include vhost/*.conf;
  2. }
复制代码
上面加入
  1. server
  2. {
  3.   listen       80;
  4.   server_name xxBBB.com;
  5.   index index.html index.htm index.php;
  6.   root  /home/xxBBB;
  7.   location ~ .*\.(php|php5)?$
  8.    {
  9.     fastcgi_pass  unix:/tmp/php-cgi.sock;
  10.     #fastcgi_pass  127.0.0.1:9000;
  11.     fastcgi_index index.php;
  12.     include fcgi.conf;
  13.    }
  14.   location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  15.    {
  16.     expires      30d;
  17.    }
  18.   location ~ .*\.(js|css)?$
  19.    {
  20.     expires      12h;
  21.    }
  22.   access_log   off;
  23. }
复制代码
还是要将默认的那一段server 复制之后 修改为自己的域名和目录呢?
少了其中的
location ~ .*\.(php|php5)?$
会不会影响效率呢?
还有就是
  1. include fcgi.conf;
复制代码
这个是干嘛的?是调用的为静态吗?如果不是的话 可以取消吗?

我是完全的小白,在您的教程操作之下 3个小时左右就安装并成功运行了php 上传了discuz 非常棒!现在只差绑定多域名和为静态了
再次感谢一下您的教程

[ 本帖最后由 berliz 于 2010-3-20 01:37 编辑 ]
 楼主| 发表于 2010-3-20 02:22:42 | 显示全部楼层

回复 96# 的帖子

放在include vhost/*.conf;前面


没有不能解析php
发表于 2010-3-20 02:36:49 | 显示全部楼层
wget http://blog.licess.cn/uploads/200903/vsftpd-for-LNMP.zip
unzip vsftpd-for-LNMP.zip
cd vsftpd-for-LNMP
chmod +x installvsftpd.sh
./installvsftpd.sh
-----------------------------------------------------------------------------------------------------
licess, 你好
我在 64位的centos上安装你的一键是成功了的,ea也安装了,但是想安装vsftpd,安装你网站的教程安装,如上,好像没有安装好
  1. [root@server1 vsftpd-for-LNMP]#chmod +x installvsftpd.sh
  2. [root@server1 vsftpd-for-LNMP]#./installvsftpd.sh
  3. =========================================================================
  4. Vsftpd for LNMP  Written by Licess
  5. =========================================================================
  6. A tool to auto-compile & install VSftp for LNMP on Linux
  7. For more information please visit http://blog.licess.cn/lnmp/

  8. =========================================================================

  9. start download vsftpd package
  10. --2010-03-20 02:34:01--  http://licess.googlecode.com/files/vsftpd-2.1.0.tar.gz
  11. Resolving licess.googlecode.com... 74.125.155.82
  12. Connecting to licess.googlecode.com|74.125.155.82|:80... connected.
  13. HTTP request sent, awaiting response... 200 OK
  14. Length: 178636 (174K) [application/x-gzip]
  15. Saving to: `vsftpd-2.1.0.tar.gz.3'

  16. 100%[===============================================>] 178,636     --.-K/s   in 0.1s

  17. 2010-03-20 02:34:01 (1.20 MB/s) - `vsftpd-2.1.0.tar.gz.3' saved [178636/178636]

  18. download vsftpd package finished!
  19. installing vsftpd 2.1.0.......
  20. mkdir: cannot create directory `/usr/local/man/man8': File exists
  21. mkdir: cannot create directory `/usr/local/man/man5': File exists
  22. make: `vsftpd' is up to date.
  23. if [ -x /usr/local/sbin ]; then \
  24.                 install -m 755 vsftpd /usr/local/sbin/vsftpd; \
  25.         else \
  26.                 install -m 755 vsftpd /usr/sbin/vsftpd; fi
  27. if [ -x /usr/local/man ]; then \
  28.                 install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
  29.                 install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
  30.         elif [ -x /usr/share/man ]; then \
  31.                 install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
  32.                 install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
  33.         else \
  34.                 install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
  35.                 install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
  36. if [ -x /etc/xinetd.d ]; then \
  37.                 install -m 644 xinetd.d/vsftpd /etc/xinetd.d/vsftpd; fi
  38. mkdir: cannot create directory `/etc/vsftpd': File exists
  39. mkdir: cannot create directory `/var/ftp': File exists
  40. setsebool:  SELinux is disabled.
  41. Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]
  42. Flushing firewall rules:                                   [  OK  ]
  43. Setting chains to policy ACCEPT: filter nat mangle         [  OK  ]
  44. Unloading iptables modules:                                [  OK  ]
  45. Applying iptables firewall rules:                          [  OK  ]
  46. adduser: user adminftp exists
  47. Terminated
  48. [root@server1 vsftpd-for-LNMP]#
复制代码
Terminated  是提示中断了

请教一下
发表于 2010-3-20 12:41:35 | 显示全部楼层
我也一样的问题
发表于 2010-3-20 14:09:06 | 显示全部楼层
原帖由 CNK 于 2010-3-20 12:41 发表
我也一样的问题


你是说跟我遇到的问题一样?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-3-29 13:46 , Processed in 0.061189 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表