Debian 7快速搭建安装LNMP网站服务器(lighttpd)

2024-11-05 04:40:03

1、安装lighttpd:同样也是一条命令安装,这是我喜欢用debian的原因。很多php扩展,程序都能自动安装比较菱诎逭幂方便。apt-get updateapt-get install lighttpd mysql-serverphp5-fpm php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-common php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl中间需输入一次mysql的密码。

Debian 7快速搭建安装LNMP网站服务器(lighttpd)

3、禁用fastcgi模块和fastcgi的php支持,使用刚才建立的 fastcgi-fpm 模块同时支持两者。lighty-disable-mod fastcgilighty-disable-mod fastcgi-phplighty-enable-mod fastcgi-fpmservice lighttpd force-reload查看探针和phpinfo,可以看到已经是FPM支持了。

Debian 7快速搭建安装LNMP网站服务器(lighttpd)
猜你喜欢