`
coolesting
  • 浏览: 12335 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

the lighttpd 1.4.29 -- installation

阅读更多
Step 0
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'



分享到:
评论

相关推荐

    lighttpd-1.4.29.tar.bz2

    lighttpd-1.4.29.tar.bz2

    lighttpd-1.4.20-cmake

    lighttpd-1.4.20-cmake

    最新lighttpd-1.4.28源码下载

    最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载最新lighttpd-1.4.28源码下载

    lighttpd-1.4.55移植配置与测试.rar

    交叉编译最新版的lighttpd-1.4.55,配置与测试CGI与HTML.内含 lighttpd-1.4.55源码,移植教程,cgi测试代码,html测试代码.测试cgi时,浏览器中应该输入192.168.100.30/cgi-bin/xx.cgi .其中 192.168.100.30为开发板的ip

    lighttpd-1.4.20.tar

    lighttpd-1.4.20.tar lighttpd-1.4.20.tar

    lighttpd-1.4.20源码分析

    lighttpd-1.4.20源码看了很久了,学习总结本来早就该写了的,只是人懒得很,拖拖拉拉到现在,如果各位看了觉得多少还有那么一点点帮助,我就继续来(当然,总结的东东还是会发在这个帖子内)。 预计总共将有15个...

    lighttpd-1.4.39.tar.gz

    lighttpd-1.4.39 一款好用的web服务器

    lighttpd-1.4.30.tar.gz

    lighttpd-1.4.30.tar.gz压缩包,解压后查阅网上配置过程,配置后即可使用

    安卓系统lighttpd-php-mysql本地环境 v8.0.zip

    lighttpd:1.4.29 帮助查看help.txt文件 安装用root权限执行install.sh 删除用root权限执行remove.sh 启动用root权限执行命令almp-start.sh 关闭用root权限执行命令almp-stop.sh php从5.4.6更新到了php5.4.7 ...

    最新lighttpd源码 lighttpd-1.4.22

    Lighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全、快速、兼容性好并且灵活的web server环境。具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。lighttpd是...

    lighttpd-1.4.27 源代码

    lighttpd-1.4.27 源代码 lighttpd-1.4.27 源代码

    lighttpd-1.4.20源代码

    lighttpd-1.4.20源代码

    lighttpd-1.4.45_lighttpd服务器_

    lighttpd轻量级web嵌入式服务器,方便嵌入式平台移植,小巧安全

    lighttpd-1.4.26 源码

    lighttpd-1.4.26 源码,官方直接下载,学习的好资源。

    lighttpd-1.4.45.tar.gz

    web服务器 。

    lighttpd-v1.4.46

    资源名称:lighttpd-v1.4.46工具简介:一个轻量级的Web 服务器,支持FastCGI, CGI, Auth, 输出压缩(output compress), URL重写, Alias等重要功能。它具有非常低的内存开销,CPU占用率低,效能好,以及丰富的模块等...

    lighttpd-1.4.49.tar.gz

    lighttpd-1.4.49.tar.gz的压缩包,解压后可查阅网上配置过程,进行配置后使用

    安卓系统lighttpd-php-mysql本地环境 v8.0

    这是一个可在安卓手机上布置的服务器环境,功能组件包括:lighttpd、php和mysql,能成功运行DZ等php程序,安装和配置过程十分简单,也许现在该是讨论用什么手机做服务器更合适的时候了。演示图片为一成功运行的...

    LightTPD-1.4.16-Win32安装版

    高性能轻量级web服务器,具有非常低的内存开销,cpu占用率低,效能好,以及丰富的模块等特点。

    Lighttpd - By Andre Bogus

    his is your fast guide to getting started and getting inside the Lighttpd web server. Written from a developer's perspective, this book helps you understand Lighttpd, and get it set up as securely and...

Global site tag (gtag.js) - Google Analytics