Results 1 to 13 of 13
Thread: Install lighttpd+PHP5 on CentOS
-
04-25-2011, 07:05 PM #1WHT Addict
- Join Date
- Jul 2010
- Location
- Mexico
- Posts
- 104
Install lighttpd+PHP5 on CentOS
Hi everybody this is my first tutorial I'm not an expert but hope this will be helpful for someone.
This tutorial was tested on a Xen VPS 512RAM with CentOS 5.6 64bits
Well less chat and more guide.
First we need to add working repositores.
Add repo if you are 32bits
Code:rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Code:rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Code:yum install lighttpd
Install PHP
Code:yum install lighttpd-fastcgi php-cli
Change settings of lighttpd
Code:nano /etc/lighttpd/lighttpd.conf
Search "server.use-ipv6 = “enable”" and change for "disable"
Code:server.use-ipv6 = "disable"
Change settings of modules
Code:nano /etc/lighttpd/modules.conf
server.modules = (
“mod_access”,
# “mod_alias”,
# “mod_auth”,
# “mod_evasive”,
# “mod_redirect”,
# “mod_rewrite”,
# “mod_setenv”,
# “mod_usertrack”,
)
Code:server.modules = ( "mod_access", "mod_alias", "mod_auth", "mod_evasive", "mod_redirect", "mod_rewrite", "mod_setenv", "mod_usertrack", )
now scroll down and Search
Code:## ## FastCGI (mod_fastcgi) ## #include “conf.d/fastcgi.conf”
Code:## ## FastCGI (mod_fastcgi) ## include "conf.d/fastcgi.conf" fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/tmp/php-fastcgi.socket", "bin-path" => "/usr/bin/php-cgi" ) ) )
This tutorial is mine translate from spanish to english.
-
05-28-2011, 07:23 AM #2Newbie
- Join Date
- May 2011
- Location
- Geneva, Switzerland
- Posts
- 18
Thanks for sharing. You may also want to add some php modules like mysql, curl, etc ...
-
06-10-2011, 07:30 AM #3WHT Addict
- Join Date
- Jul 2010
- Location
- Manchester
- Posts
- 125
Great tutorial.
For some reason I had to put my index.html file in /srv/www/lighttpd
But apart from that, worked on a CentOS 5 32bit VPS!
Regards,
Daniel█ zFast Technologies - Affordable Web Hosting
█ Shared, Reseller, VPS, SHOUTcast & Domain Registration!
█ Quality web hosting since 2009 - www.zfast.co.uk
-
06-10-2011, 07:32 AM #4Newbie
- Join Date
- Jun 2011
- Posts
- 5
That is a great tutorial I have copied all
-
06-10-2011, 07:36 AM #5Web Hosting Evangelist
- Join Date
- Jan 2011
- Posts
- 453
Hello,
Thanks for sharing the tutorial. It is really appreciable if members share such tutorials.
I will surely try it in my test server." Your work is to discover your work and then with all your heart to give yourself to it. "
That's the mark of a true professional !
-
06-10-2011, 12:34 PM #6WHT Addict
- Join Date
- Jul 2010
- Location
- Mexico
- Posts
- 104
-
06-17-2011, 01:58 AM #7Junior Guru Wannabe
- Join Date
- Feb 2011
- Location
- EU
- Posts
- 97
This script includes mysql?
-
06-19-2011, 07:18 PM #8WHT Addict
- Join Date
- Jul 2010
- Location
- Mexico
- Posts
- 104
-
07-06-2011, 02:27 PM #9Newbie
- Join Date
- Jun 2011
- Posts
- 12
thanks i will try it
-
09-09-2011, 12:34 PM #10Temporarily Suspended
- Join Date
- Sep 2011
- Posts
- 14
thanks for you
will surely try it in my test server.
-
01-17-2012, 08:39 AM #11Web Hosting Evangelist
- Join Date
- Jun 2010
- Location
- Indonesia
- Posts
- 473
Is there any tutorial if I have the following case?
IPv6 Enabled VPS with /64 subnet.
More than 1 Domain name to be hosted in the VPS, for example :
I want to server each domain name with each IPv6 address I have.
www.domaina.com = 2a02:2658:1011:1::2:1
Location = /var/www/www.domaina.com/htmlwww.domainb.com = 2a02:2658:1011:1::2:2
Location = /var/www/www.domainb.com
Regards,
Erawan Arif Nugroho
-
02-24-2012, 09:35 PM #12Web Hosting Evangelist
- Join Date
- Aug 2010
- Location
- Egypt/Cairo
- Posts
- 472
that's great .
I'm using kloxo , it have the option to switch from Apache to lighthttpd
however I like Apache because of the rewrite moduleWeb Developer
-
02-27-2012, 09:12 AM #13Junior Guru Wannabe
- Join Date
- Feb 2012
- Posts
- 36
Thanks for sharing .. This tutorial works
Similar Threads
-
VPS in Japan with CentOS and Lighttpd (installed myself) - Do I really need Plesk?
By floridaz in forum VPS HostingReplies: 5Last Post: 09-06-2008, 02:24 AM -
How to install Lighttpd in CentOS 5.2 ?
By mrhungpham in forum Hosting Security and TechnologyReplies: 7Last Post: 09-01-2008, 06:16 AM -
How to install PHP5 on CentOS 4? I get an error...
By Peppermint in forum Hosting Security and TechnologyReplies: 4Last Post: 06-23-2007, 10:46 PM -
Lighttpd on CentOS 4.4
By priceww in forum Hosting Security and TechnologyReplies: 0Last Post: 04-07-2007, 03:10 PM -
centos:apache,php, yum install or source install?
By cchere in forum Hosting Security and TechnologyReplies: 2Last Post: 08-29-2006, 05:14 PM