全球主机交流论坛
标题:
求CentOS下安装lighttpd mysql php的博客文章
[打印本页]
作者:
cyberdog
时间:
2011-3-5 01:46
标题:
求CentOS下安装lighttpd mysql php的博客文章
求CentOS下安装lighttpd mysql php的安装笔记博客文章
有没有人手上有资料的
感谢!
作者:
wske
时间:
2011-3-5 01:47
提示:
作者被禁止或删除 内容自动屏蔽
作者:
cyberdog
时间:
2011-3-5 01:50
http://www.05118.net/
flylight的博客有debian的安装法 但就带过一下而已 下面也没响应 有点冷清
而且他自己博客是用Apache的
有没有在推广lighttpd的中文博客可看
作者:
Globalization
时间:
2011-3-5 01:50
以下是简单过程
lighttpd+php5+mysql+Debian etch
lighttpd是速度最快的静态web server,mysql最通用的的database server,不过考虑换成sqlite
先来看看lighttpd吧,装了debian 后一切都很简单了。
先通过ssh登入到debian
1、#apt-get install lighttpd
2、#apt-get install php5-cgi
配置php
#vi /etc/php5/cgi/php.ini
在 php.ini的最后加上
cgi.fix_pathinfo = 1
3、配置lighttpd支持php
#vi /etc/lighttpd/lighttpd.conf
增加上fastcgi模块:
server.modules = (
“mod_access”,
“mod_alias”,
“mod_accesslog”,
“mod_rewrite”,
“mod_fastcgi”,
)
当然你可以可以选择你需要的别的模块,
更改默认主页文件的顺序,将index.html放在index.php之前(根据你要安装的程序需要)
index-file.names = ( “index.html”, “index.php”,
“index.htm”, “default.htm” )
添加数据传输方式(这个是必须的要不跑不起来)
server.network-backend=”writev”
然后在最后加上:
fastcgi.server = ( “.php” => ((
“bin-path” => “/usr/bin/php5-cgi”,
“socket” => “/tmp/php.socket”
)))
修改完成后,重启lighttpd:
#/etc/init.d/lighttpd restart
4、测试php是否正常启动
#vi /var/www/phpinfo.php
加入以下内容
然后通过网址http://MSS的IP地址/phpinfo.php查看是否正常显示
5、安装php相关模块
查找可用的php模块
#apt-cache search php5
php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json
一般有如下模块,必须装的是的是php5-mysql,其他可以按需要选装
#apt-get install php5-mysql
6、安装MYSQL
debian下也很简单
#apt-get install mysql-server
注意设置下root密码
wordpress 安装应该没啥难得了,注意必须装html化的静态插件,我装的是wp super cache,才能充分发挥lighttpd的优势。整个装下来,基本没有优化,发现128M已经不够用了,已经开始用了15M左右的swap,开始考虑去掉mysql,改用sqlite。
300MHz的CPU如果执行动态的php基本肯定100%负载的,但如果是静态的html,cpu基本没啥压力,速度极快。
作者:
cyberdog
时间:
2011-3-5 01:53
Ctrl-C
Ctrl-V
作者:
Globalization
时间:
2011-3-5 01:56
原帖由
cyberdog
于 2011-3-5 01:53 发表
Ctrl-C
Ctrl-V
+:Ctrl+Enter
作者:
Globalization
时间:
2011-3-5 01:57
错了,我找的怎么是Debian 的-_-
作者:
usa
时间:
2011-3-5 02:00
安个KLOXO完事....
作者:
cyberdog
时间:
2011-3-5 02:03
找到些~ 慢慢折腾
http://www.howtoforge.com/lighttpd_php5_mysql_centos5.0
Installing Lighttpd With PHP5 And MySQL Support On CentOS 5.0
http://blog.wu-boy.com/2008/07/l ... stcgi-eaccelerator/
[Linux] CentOS 5.1 安裝 Lighttpd + PHP5 + FastCgi + eaccelerator
http://www.weithenn.org/cgi-bin/ ... _%E6%9E%B6%E8%A8%AD
lighttpd php mysql-LAMP 架設
http://www.weithenn.org/cgi-bin/ ... E7%B4%9A_Web_Server
Lighttpd-輕量級 Web Server
http://www.weithenn.org/cgi-bin/ ... E7%B4%9A_Web_Server
LigHttpd-輕量級 Web Server
http://apt.nc.hcc.edu.tw/web/stu ... _server_centos.html
學生用伺服器建置流程(CentOS 5 版)
[
本帖最后由 cyberdog 于 2011-3-5 02:40 编辑
]
作者:
magephp
时间:
2011-3-5 02:38
我刚买了 高中生的XEN装好环境
lighttpd + php 5.35 + mysql
我是自己写的安装脚本,lighttpd 很简单依赖的库也很少,源码包里面有写好的配置文件,只要把源码下载下来 make install差不多就搞定了,php 5.35 只要把依赖的库装上 编译也不难的, mysql 依赖的库也不多
作者:
mikj521
时间:
2011-3-5 13:48
求详细安装教程
欢迎光临 全球主机交流论坛 (https://loc.wget.at/)
Powered by Discuz! X3.4