the lighttpd 1.4.29 -- installation 博客分类: lighttpd lighttpd
程序员文章站
2024-03-20 15:47:34
...
Step 0
System envrionment , Ubuntu 10.04
Downloading from http://www.lighttpd.net/download
Step 1
Step 2 installing dependencies
Step 3 installing
Step 4 configuration
Step 5 setting
Now, you will see this line below, maybe you need to change the user name, that is my user for running the lighttpd.
and, if your website root directory is here.
So,
and open this line of commend,
then set the port,
Finally, typing this command in terminal,
Now, opening your bowser with the address [url]http://localhost:8080 [/url]
you will see 'Hello lighttpd!', good luck to you!
In addition. you could add the command aliases to your ~/.bash_aliases
System envrionment , Ubuntu 10.04
Downloading from http://www.lighttpd.net/download
Step 1
sudo su tar -xf lighttpd-1.4.29.tar.gz cd lighttpd-1.4.29
Step 2 installing dependencies
apt-get install libssl-dev zlib1g-dev libbz2-dev libattr1-dev libpcre3-dev libmysqlclient15-dev libfam-dev libldap2-dev libfcgi-dev libgdbm-dev libmemcache-dev liblua5.1-0-dev pkg-config uuid-dev libsqlite3-dev libxml2-dev libkrb5-dev
Step 3 installing
./configure --prefix=/usr/local/lighttpd make && make install
Step 4 configuration
mkdir /etc/lighttpd cp doc/config/lighttpd.conf /etc/lighttpd/ cp doc/config/modules.conf /etc/lighttpd/ cp -r doc/config/conf.d/ /etc/lighttpd/
Step 5 setting
vi /etc/lighttpd/lighttpd.conf
Now, you will see this line below, maybe you need to change the user name, that is my user for running the lighttpd.
server.username = "www-data" server.groupname = "www-data"
and, if your website root directory is here.
var.server_root = "/var/www"
So,
mkdir /var/www/htdocs touch /var/www/htdocs/index.html echo 'Hello lighttpd!' >> /var/www/htdocs/index.html
and open this line of commend,
server.bind = "localhost"
then set the port,
server.port = 8080
Finally, typing this command in terminal,
/usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
Now, opening your bowser with the address [url]http://localhost:8080 [/url]
you will see 'Hello lighttpd!', good luck to you!
In addition. you could add the command aliases to your ~/.bash_aliases
alias lighttpd='/usr/local/lighttpd/sbin/lighttpd' alias lll='/usr/local/lighttpd/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf' alias www='cd /var/www/htdocs'
上一篇: spawn-fcgi配置C的fastcgi程序 博客分类: Web Server lighttpdfastcgispawn
下一篇: android反编译 学习如何隐藏应用图标 HadoopnginxEmacsdotnetnukerubygems
推荐阅读
-
the lighttpd 1.4.29 -- installation 博客分类: lighttpd lighttpd
-
【转帖】Lighttpd 的安装配置 博客分类: Ruby on Rails lighttpd配置管理PHPCGIZend
-
Lighttpd 博客分类: Technology & Theory lighttpdWebOpenSourceCGI.net
-
step by step 在Redhat 下部署rforum 为lighttpd + fastcgi 博客分类: Ruby lighttpdRedHatRubyRailsWeb
-
lighttpd真垃圾啊 博客分类: Ruby lighttpdRailsApache.net
-
重启lighttpd进程的脚本 博客分类: Linux lighttpd脚本F#