Image 01 Image 02

27
Posted on 30th 九月 2009 by admin

*nginx更新到0.7.62
*增加apahce2.2.13,可以在nginx和apache之间无缝切换
*修改nginx开机启动的方式(改为加入程序->开始)
*修正mysql载入服务无法启动
*通过vista(32),server2008sp1(32)测试

软件简介:
NPMserv 是一款图形界面的快速搭建nginx 0.7.62、PHP 5.3.0、MySQL 5.1.35、phpMyAdmin 3.2.1,网站服务器平台的绿色软件。无需安装,具有灵活的移动性(如D:/NPMserv),打开NPMserv.exe启动服务即可。官方网站:http://www.nginxcn.com/NPMserv

1、注意事项:路径不要有中文或特殊字符
2、MySQL默认用户名:root,密码123456
3、MySQL数据库文件存放目录:MySQL5.1\data
4、网站根目录www
5、访问本机请用http://127.0.0.1/
6、NPMserv集成了以下软件:

apahce2.2.13
Nginx 0.7.62
PHP 5.3.0
MySQL 5.1.35
phpMyAdmin 3.2.1
Sendmail
如果不能运行php,请安装Microsoft 2008 C++ Runtime (x86)
下载地址http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF

0.3.2升级到0.4.0方法,先备份config.ini然后覆盖即可

由于zend不支持php5.3.0所以暂时就不集成zend,如果需要zend的,可以用0.2.2旧版或再等一段时间
感谢群里的同学进行测试和一些建议,感谢scomota的支持

点击下载0.4.0 站长下载

1
Posted on 21st 九月 2009 by admin

整理一下最近的资料

#!/bin/bash
service iptables stop
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp –dport 22 -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp –dport 25 -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp –dport 53 -j ACCEPT
iptables -A INPUT -i ppp0 -p udp –dport 53 -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp –dport 80 -j ACCEPT
iptables -A INPUT -i ppp0 -p tcp –dport 110 -j ACCEPT
service iptables save
service iptables restart

把这个保存为iptables.sh然后运行一下

说明一下这段代码的作用,第一部份就是清掉所有的配置,第二部份就是关闭所有进来端口,开放去出的端口,最后就是打开进来的端口

2
Posted on 14th 九月 2009 by admin

服务器是centos x86_64安装mcrypt的时候一直提示

checking for libmcrypt – version >= 2.5.0… no
*** Could not run libmcrypt test program, checking why…
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding LIBMCRYPT or finding the wrong
*** version of LIBMCRYPT. If it is not finding LIBMCRYPT, you’ll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location  Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
***
configure: error: *** libmcrypt was not found

google了所有的方法,全都试过了,还不行

最后终于找到解决方法了

重新安装libmcrypt加上路径

./configure -prefix=/usr/local/libmcrypt

make

make install

再安装mcrypt

LD_LIBRARY_PATH=/usr/local/lib ./configure –with-libmcrypt-prefix=/usr/local/libmcrypt

加上路径,终于安装上了

这问题困绕了我多天

21
Posted on 2nd 九月 2009 by admin

*修改每次启动都覆盖vhost.conf的bug
*修改nginx开机启动方式(开始->程序->启动)
*修改nginx rewrite的写法,以apache为参考

软件简介:
NPMserv 是一款图形界面的快速搭建nginx 0.7.61、PHP 5.3.0、MySQL 5.1.35、phpMyAdmin 3.2.1,网站服务器平台的绿色软件。无需安装,具有灵活的移动性,盘下根目录(如D:/NPMserv)、打开NPMserv.exe启动服务即可。

1、注意事项:路径不要有中文或特殊字符
2、MySQL默认用户名:root,密码123456
3、MySQL数据库文件存放目录:MySQL5.1\data
4、网站根目录www
5、访问本机请用http://127.0.0.1/
6、NPMserv集成了以下软件:

Nginx 0.7.61
PHP 5.3.0
MySQL 5.1.35
phpMyAdmin 3.2.1
Sendmail
如果不能运行php,请安装Microsoft 2008 C++ Runtime (x86)

下载地址:点击下载 站长下载

0.3.1升级补丁 升级方法,覆盖即可