Results 1 to 1 of 1
-
17th Nov 2011, 10:30 AM #1OPBanned
Installing Lighttpd, Simple step!
I'm using CentOS 32bit
1.Code:rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
3. yum install lighttpd-fastcgi php-cli
4. edit using sftp or vid command: /etc/lighttpd/lighttpd.conf
5. Search and edit: server.use-ipv6 = "disable"
6. edit using sftp or vid command: /etc/lighttpd/modules.conf
7. Search:
Code: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", )
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" ) ) )
Next! ===> 30%
8. Installing gcc for compailing
yum install gcc gcc-c++ autoconf automake
9. Installing Pkgconfig
Code:wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
cd pkg-config-0.23
./configure
make
make install
cd ..
10. Installing Lua
You will also need to download latest version of Lua for mod_magnet to be installed correctly.
Download latest version of Lua (This is needed for mod_magnet)
Use wget command to download the latest Lua:
Code:wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
tar xvf lua-5.1.4.tar.gz
Go into the directory of Lua:
cd lua-5.1.4
Use the following command for compiling:
(These instructions are for either Fedora or CentOS, if you are on different linux OS, you will need to read the README)
make linux
*Note: If you get readline errors, try: (that means you don?t have readline development packages installed)
yum install readline-devel
*Note: If you get errors like this ?/usr/bin/ld: cannot find -lncurses?, try:
yum install ncurses-devel
If everything goes well, do make install:
make install
Next, copy lua.pc to /usr/lib/pkgconfig where your pkgconfig is installed:
cp etc/lua.pc /usr/lib/pkgconfig
Do ranlib command:
ranlib src/liblua.a
Back to working directory:
cd ..
11. remove Apache:
/sbin/service httpd stop
chkconfig httpd off
rpm -e httpd
chkconfig lighttpd --add
chkconfig lighttpd on
chkconfig --list
12. installing mysql
yum install mysql mysql-server
chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
13.Create a password for the MySQL user root (replace yourrootsqlpassword with the password you want to use):
mysqladmin -u root password yourrootsqlpassword
14. Then check with
netstat -tap | grep mysql
on which addresses MySQL is listening. If the output looks like this:
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2713/mysqld
which means MySQL is listening on localhost.localdomain only, then you're safe with the password you set before. But if the output looks like this:
tcp 0 0 *:mysql *:* LISTEN 2713/mysqld
14. reboot
15. edit lighttpd.conf for permalinks (wordpress)
Code:url.rewrite-once = ( "^/robots.txt" => "$0", "^/(wp-.+).*/?" => "$0", "^/(sitemap.xml)" => "$0", "^/(xmlrpc.php)" => "$0", "^/keyword/([A-Za-z_0-9\-]+)/?$" => "/index.php?keyword=$1", "^/.*?(\?.*)?$" => "/index.php$1" )
======> Next Update
- lighttpd vhost for multiple domain
- lighttpd for rapidleech
=============> Why lighttpd?
decrease 10% memory consumed from apache and better on cpu load, read this: http://www.besthostingforums.com/64-...-cherokee.htmldownote Reviewed by downote on . Installing Lighttpd, Simple step! I'm using CentOS 32bit 1. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm 2. yum install lighttpd 3. yum install lighttpd-fastcgi php-cli 4. edit using sftp or vid command: /etc/lighttpd/lighttpd.conf 5. Search and edit: server.use-ipv6 = "disable" 6. edit using sftp or vid command: /etc/lighttpd/modules.conf 7. Search: server.modules = ( Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Creating an Online Business - Step By Step Formula to Make Money
By GarryField in forum Webmasters, Money MakingReplies: 0Last Post: 4th Mar 2014, 11:48 AM -
How To Encode Movies *700MB To 300MB* Step By Step
By CyberAff in forum Tutorials and GuidesReplies: 246Last Post: 28th Oct 2012, 07:02 AM -
Add Bank Account to Alert pay ? ( offer 5$ for step by step guide)
By ashokbansal in forum PayzaReplies: 8Last Post: 18th Apr 2012, 01:58 PM -
Step-by-Step Guide to Changing Web Hosting Providers
By navnum in forum Tutorials and GuidesReplies: 0Last Post: 7th Jan 2012, 01:22 PM -
Howsto: Step-by-step Installing Nginx work with DLE 9.3
By thanhlangso in forum Technical and Security TutorialsReplies: 5Last Post: 3rd Nov 2011, 08:08 PM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...