|
llmp是指用linux+lighttpd+mysql+php搭建的web环境。lighttpd是一个安全、快速、稳定、灵活的开源web服务器,官网:http://www.lighttpd.net/
一、安装epel、remi更新源 http://mirrors.ustc.edu.cn/fedora/epel/5/i386/epel-release-5-4.noarch.rpm CentOS5.x 64bit: http://mirrors.ustc.edu.cn/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm CentOS6.x 32bit: http://mirrors.ustc.edu.cn/fedora/epel/6/i386/epel-release-6-7.noarch.rpm CentOS6.x 64bit: http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm
为了使用较新版本的php、mysql安装remi源。 http://rpms.famillecollet.com/enterprise/5/remi/i386/remi-release-5-8.el5.remi.noarch.rpm CentOS6.x: http://rpms.famillecollet.com/enterprise/6/remi/i386/remi-release-6-1.el6.remi.noarch.rpm
二、使用yum安装 结果如下:
fastcgi.server = ( ".php" =>
( "php-num-procs" =>
(
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "5",
"PHP_FCGI_MAX_REQUESTS" => "2000",
),
"max-procs" => 3,
"broken-scriptfilename" => "enable",
)
),
)
4、重启lighttpd 浏览器访问:http://IP/phpinfo.php 查看有无php信息显示。
五、设置mysql用户密码
参考资料: |
