全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 6785|回复: 33
打印 上一主题 下一主题

【原创】LNMP-LNMPz 最新Linux下的一键安装包

[复制链接]
跳转到指定楼层
1#
发表于 2010-3-17 17:01:42 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
2010年3月17日发布升级文件update.sh
适合所有安装过本LNMP的服务器,文件打包于LNMP.zip
2010年3月14日晚发布1.0正式版本,更新如下:
1.增加FTP管理员账户(提示输入)和密码
2.增加MYSQL管理员账户提示输入密码
3.完善主机系统,完整添加新域名的FTP用户、MYSQL用户以及PHPMYADMIN
4.新版本系统更加安全,修正其他小问题
计划:
1.用pureftp替换目前VSFTP,以便为用户划分磁盘份额
2.增加WEB交互友好界面,让管理员运用自如
历次改版:
2010年1月28日上午改版,增加VSFTPD自动安装;增加PHP安全性能自动配置;
修正主机域名问题,修正添加主机问题。
2010年1月2日上午改版,增加SHTML支持,增加虚拟主机管理系统。
==============================全新安装开始==================================

全新安装:
首先声明,该LNMP一键安装包并非我个人的原创。本人接触Linux刚2个星期,对于Linux 的很多细节都不甚了解。
LNMP是本人根据张宴Licess的LNMP改
写而成,并经过本人的测试成功后才发布的。因此,这个LNMP上有很多前辈的身影。之所以发布出来,是本着共享的精神,也是希望更多的人能用上最新版本的Nginx+MySQL+PHP+phpMyAdmin+eAcelerator+Zend optimizer这些软件。
目前已经有超过200台服务器运用该LNMP软件包,且本人在THENYNOCBURSTNET的VPS上都以做过测试,运行良好。言归正传,开始本LNMP的正式介绍。
VPS重装后,运行yum update进行系统升级。
运行cd /usr/src
接着下载本LNMP一键安装包 wget http://fengzi.org/LNMP.zip
解压缩 unzip LNMP.zip
进入该目录 cd LNMP
给脚本赋权 chmod +x down.sh install.sh opt.sh startup.sh addhost.sh
进行下载和安装
执行./down.sh
执行./install.sh
安装到最后的Zend optimizer时需要确认,在php.ini的location时填写 /usr/local/php/etc/ 然后询问服务器是否是apache时选NO,因为我们用的是Nginx
运行完毕后,进行优化,命令: ./opt.sh 最后开机运行 ./startup.sh

完毕。


这样就可以上传网站了。
程序安装路径:
MySQL :   /usr/local/mysql
PHP :     /usr/local/php
Nginx :   /usr/local/nginx
PHPMyAdmin /web/www/phpmyadmin
Web目录    /web/www
添加虚拟主机与用户:
首先给PHP做安全配置,别的我不说了说一下增加虚拟主机时候需要的设置。
登陆SSH后用户默认的路径在/root/里 若不在此目录直接cd回车
运行./addhost.sh         里面有提示添加虚拟主机
添加后会显示用户的密码等信息。
更多交流请到LINUX-PHP群讨论: 8707379
注意:MYSQL数据库用户名root密码为你初始设置的密码,登陆后进入mysql数据库,找到user表,删除除了有root密码外的所有用户。
==============================全新安装结束==================================

==============================旧版本升级开始===================================
旧版本升级:
(适合所有曾经安装过本LNMP软件包的服务器)
cd /usr/src
rm -fr  LNMP*
wget  http://fengzi.org/LNMP.zip
unzip LNMP.zip
cd LNMP
sh update.sh
这样就可以了。
注意:
1.安装ZEND的时候询问php.ini目录时需要更改成/usr/local/php/etc/
2.升级过程中会根据服务器的状况停止WEB约30分钟,全新安装不必升级。

==============================旧版本升级结束===================================




我自己用的,发给大家共享吧。
安全策略都做好了,PHP/VSFTPD的都做过,有马马应该也问题不大
有BUG及时反馈哈

评分

参与人数 4威望 +81 收起 理由
deepure + 20 原创内容
daitangjun + 6
wzwen + 25 原创内容
cpuer + 30 精品文章

查看全部评分

34#
发表于 2010-4-24 18:23:53 | 只看该作者
老大你发的版本 为什么新建网站 里面有程序啊·· 怎么修改?
33#
发表于 2010-3-25 12:15:00 | 只看该作者

回复 32# 的帖子

呵呵,用google code的地址最好,不会失效。
32#
发表于 2010-3-25 09:53:01 | 只看该作者
  此包暂时有问题,大家暂时不要用 等删除回来更新
里面里面的 zend 包下载不了
31#
发表于 2010-3-20 01:14:15 | 只看该作者
看来还是权限的问题?
在新建立的 网站下面上传个phpinfo.php 还是无法访问的
30#
发表于 2010-3-20 01:06:54 | 只看该作者
借用了论坛一朋友的BURST centos32位 进行测试,貌似成功了
不过有几个小问题:
新建立一个网站后:
1.ngingx没有自动平滑重启
2.网站空间建立了,权限也是设置了,FTP也是正常的
3.数据库里面没有自动建立数据库

现在就是我的64位不成功,安装后phpmyadmin都打不开,好像是权限的问题
29#
发表于 2010-3-19 14:09:50 | 只看该作者
  1. [root@server1 mcrypt-2.6.8]#./configure
  2. checking build system type... x86_64-unknown-linux-gnu
  3. checking host system type... x86_64-unknown-linux-gnu
  4. checking target system type... x86_64-unknown-linux-gnu
  5. checking for a BSD-compatible install... /usr/bin/install -c
  6. checking whether build environment is sane... yes
  7. checking for a thread-safe mkdir -p... /bin/mkdir -p
  8. checking for gawk... gawk
  9. checking whether make sets $(MAKE)... yes
  10. checking for style of include used by make... GNU
  11. checking for gcc... gcc
  12. checking for C compiler default output file name... a.out
  13. checking whether the C compiler works... yes
  14. checking whether we are cross compiling... no
  15. checking for suffix of executables...
  16. checking for suffix of object files... o
  17. checking whether we are using the GNU C compiler... yes
  18. checking whether gcc accepts -g... yes
  19. checking for gcc option to accept ISO C89... none needed
  20. checking dependency style of gcc... gcc3
  21. checking for a sed that does not truncate output... /bin/sed
  22. checking for grep that handles long lines and -e... /bin/grep
  23. checking for egrep... /bin/grep -E
  24. checking for fgrep... /bin/grep -F
  25. checking for ld used by gcc... /usr/bin/ld
  26. checking if the linker (/usr/bin/ld) is GNU ld... yes
  27. checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
  28. checking the name lister (/usr/bin/nm -B) interface... BSD nm
  29. checking whether ln -s works... yes
  30. checking the maximum length of command line arguments... 98304
  31. checking whether the shell understands some XSI constructs... yes
  32. checking whether the shell understands "+="... yes
  33. checking for /usr/bin/ld option to reload object files... -r
  34. checking how to recognize dependent libraries... pass_all
  35. checking for ar... ar
  36. checking for strip... strip
  37. checking for ranlib... ranlib
  38. checking command to parse /usr/bin/nm -B output from gcc object... ok
  39. checking how to run the C preprocessor... gcc -E
  40. checking for ANSI C header files... yes
  41. checking for sys/types.h... yes
  42. checking for sys/stat.h... yes
  43. checking for stdlib.h... yes
  44. checking for string.h... yes
  45. checking for memory.h... yes
  46. checking for strings.h... yes
  47. checking for inttypes.h... yes
  48. checking for stdint.h... yes
  49. checking for unistd.h... yes
  50. checking for dlfcn.h... yes
  51. checking for objdir... .libs
  52. checking if gcc supports -fno-rtti -fno-exceptions... no
  53. checking for gcc option to produce PIC... -fPIC -DPIC
  54. checking if gcc PIC flag -fPIC -DPIC works... yes
  55. checking if gcc static flag -static works... yes
  56. checking if gcc supports -c -o file.o... yes
  57. checking if gcc supports -c -o file.o... (cached) yes
  58. checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
  59. checking whether -lc should be explicitly linked in... no
  60. checking dynamic linker characteristics... GNU/Linux ld.so
  61. checking how to hardcode library paths into programs... immediate
  62. checking whether stripping libraries is possible... yes
  63. checking if libtool supports shared libraries... yes
  64. checking whether to build shared libraries... yes
  65. checking whether to build static libraries... yes
  66. checking for gcc... (cached) gcc
  67. checking whether we are using the GNU C compiler... (cached) yes
  68. checking whether gcc accepts -g... (cached) yes
  69. checking for gcc option to accept ISO C89... (cached) none needed
  70. checking dependency style of gcc... (cached) gcc3
  71. checking for libmcrypt-config... /usr/local/bin/libmcrypt-config
  72. checking for libmcrypt - version >= 2.5.0... yes
  73. checking for mhash_keygen in -lmhash... no
  74. configure: error: "You need at least libmhash 0.8.15 to compile this program. http://mhash.sf.net/"
  75. [root@server1 mcrypt-2.6.8]#make
  76. make: *** No targets specified and no makefile found.  Stop.
  77. [root@server1 mcrypt-2.6.8]#
复制代码
手工一步一步安装,好像到安装mcrypt-2.6.8这里就出错了
./configure 后,make 提示出错,看屏幕好像是 limbbash 版本过低么?
28#
发表于 2010-3-19 13:36:24 | 只看该作者
安装包内,update.sh怎么没有了呢?
27#
发表于 2010-3-19 12:13:13 | 只看该作者
添加新站点 No input file specified
26#
发表于 2010-3-19 11:46:52 | 只看该作者
64位的 centos暂时安装失败,安装后貌似php这些没有启动起来

继续研究中,看过里面的文件,发现 zend版本就肯定不是64位的,唯有慢慢研究怎么换掉
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-11 23:47 , Processed in 0.201792 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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