Installation of php+lighttpd+fastcgi

Source: Internet
Author: User

1. PHP Installation
Tar zxf php-5.3.2–c/usr/src
cd/usr/src/php-5.3.2
./configure--PREFIX=/USR/LOCAL/PHP5--enable-force-cgi-redirect--enable-fastcgi
Make;make Install
CP Php.ini.dist/etc/php.ini
Cd/usr/local/php5/bin
./php-cgi–b 127.0.0.1:9999
2, Pcre installation
TAR-ZXF pcre-7.8.tar.gz
CD pcre-7.8
./configure
Make;make Install
3, LIGHTTPD installation
TAR-JXF lighttpd-1.4.28.tar.bz2
CD lighttpd-1.4.28
./configure
Make;make Install
Mkdir-p/srv/www/htdocs
Mkdir/var/log/lighttpd
Touch/var/log/lighttpd/access.log
Touch/var/log/lighttpd/error.log
Useradd lighttpd
Chown-r lighttpd.lighttpd/var/log/lighttpd
Vi/usr/src/lighttpd-1.4.28/doc/config/lighttpd.conf
Server.use-ipv6 = "Disable"
Vi/usr/src/lighttpd-1.4.28/doc/config/conf.d/fastcgi.conf

cd/srv/www/htdocs/
Touch index.php
Cat >index.php
LIGHTTPD Test!!!
/usr/local/sbin/lighttpd-f/usr/src/lighttpd-1.4.28/doc/config/lighttpd.conf//Open LIGHTTPD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.