Should we add Lighttpd as an install/upgrade option?

Should we add Lighttpd as an install/upgrade option?

  • Yes, I would like to use lighttpd.

    Votes: 177 56.4%
  • I would like to use Nginx

    Votes: 66 21.0%
  • No, there are other things I would rather have.

    Votes: 71 22.6%

  • Total voters
    314
Hello,

At this time, we have no plans of adding "official" support for lighttpd. I know I've seen people running it already with DA, so it is possible using our customizable templates. Searching for some how-to guides would be a good starting point.

John
 
Hello,

At this time, we have no plans of adding "official" support for lighttpd. I know I've seen people running it already with DA, so it is possible using our customizable templates. Searching for some how-to guides would be a good starting point.

John

Is there a reason for having no 'official' support?, because there are hundreds of thousands of active websites using Lighttpd according to this survey:

http://news.netcraft.com/archives/2009/11/10/november_2009_web_server_survey.html

Also, there is currently no other control panel that has 'official' Lighttpd support so DA could be the first.

And you say you have seen people running Lighttpd with DA, But have you actually tried it yourself so you can tell us what DA features work and what don't and could you release an 'official' instruction guide on how to integrate Lighttpd with DA without needing Apache?
 
Its not their job to give you a guide to do so. There is nothing wrong with apache.
 
I think adding it will help a lot of people and noobs to configure lighttpd. Also have a control panel in directadmin for lighttpd re writes.
 
Lighttpd is supported by the DirectAdmin community, and you can find all the help you need on these forums. It's not officially supported by DirectAdmin, and that's the decision announced by John in his post on Sunday.

Jeff
 
Apache and lighttpd can work together, apache for dinamic pages and lighttpd for static pages. We will be able configure lighttpd on one different port for work with ProxyPass parameter on each (or selected)Virtual host and also for some directories ( for example /images , /css etc.. ) so that we can provide Apache can make use lighttpd perfectly. DirectAdmin can offer that how :

When we are working with Apache2.2.x

we can install lighttpd via custombuild on differen port ( exp :9999 )

than on the panel we can assign lighttpd to one virtual host for use together with apache, in this moment user can see one selection area on DirectAdmin panel account and user can select some directories for work with lighttpd. Only we need in this moment DirectAdmin need add some lines to user's virtualhost httpd.conf

( example :
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /images http://0.0.0.0:9999/images
ProxyPassReverse / http://0.0.0.0:9999/
)

so we can benefit from lighttpd speed for static pages or directories (video, music, pictures or file pages and .swf directories etc..) with apache.

With this way i am believing we have more faster web servers.
 
With this way i am believing we have more faster web servers.
Some test results would be interesting.

I'd love to see if a speed increase would be noticeable when running lighttpd for static sites/pages, through a proxy.

Jeff
 
Some test results would be interesting.

I'd love to see if a speed increase would be noticeable when running lighttpd for static sites/pages, through a proxy.

Jeff



You can install by manually and try it. You will see high difference on an optimized server.
 
I think given the proven worth of the daemon through both benchmarks, polls and factual popularity statistics, it would be silly not to implement lighttpd.

Those who want nginx clearly know exactly what they're doing, and if they don't, they shouldn't be asking for it. nginx doesn't strike me as the sort of httpd people should be having for general shared environments. I would have nginx on a server on its own for a single website which has extreme requirements, even then lighttpd would still be a candidate.
 
Hello,

At this time, we have no plans of adding "official" support for lighttpd. I know I've seen people running it already with DA, so it is possible using our customizable templates. Searching for some how-to guides would be a good starting point.

John

is there a generally-accepted-as-best guide to getting lighttpd running alongside apache with DA? link please?
 
This is the installation steps for 1 virtual host, i used for my one host before :

mkdir lightp
cd /root/lightp
wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.gz
tar xvzf lighttpd-1.4.18.tar.gz

cd /root/lightp/lighttpd-1.4.18
./configure
make
make install


mkdir /etc/lighttpd/
mkdir /var/log/lighttpd/
cp doc/lighttpd.conf /etc/lighttpd/

vi /etc/lighttpd/lighttpd.conf

you find it that line : server.document-root

and change it same as httpd.conf document root for example :

server.document-root = "/srv/www/htdocs/"

find that lines and comment out :

$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}

to

#$HTTP["url"] =~ "\.pdf$" {
# server.range-requests = "disable"
#}


find that line and change port than comment in :

#server.port = 81
server.port = 9999

than save and quit..

add lighttpd to services (CentOS, Redhat or Fedora) :

cp doc/rc.lighttpd.redhat /etc/init.d/lighttpd
cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd
chkconfig lighttpd on

go to :

vi /etc/init.d/lighttpd

and find that line :

lighttpd="/usr/sbin/lighttpd"

than change it :

lighttpd="/usr/local/sbin/lighttpd"

save and quit...


start lighttpd service :

service lighttpd start

and check it lighttpd service running or no ?

ps -ef|grep -v grep|grep lighttpd

if you see,

root 15741 1 0 Sep12 ? 16:25:30 /usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

go to httpd.conf :

vi /etc/httpd/conf/httpd.conf

and add this lines between tags VirtualHost :

<VirtualHost xxxxx>


ProxyRequests Off
ProxyPreserveHost On
ProxyPass /images http://0.0.0.0:9999/images
ProxyPassReverse / http://0.0.0.0:9999/

</VirtualHost xxxxx>

save and quit from httpd.conf and restart service :

service httpd restart

You can check it now, lighttpd is running or no :

tail -f /var/log/lighttpd/access.log

if you find lines starting with 127.0.0.1 that you installed success, apache using lighttpd for static pages now.

this is only for one VirtualHost, if you want to use lighttpd more than 1 VirtualHost you need :

1. All VirtualHosts must start from one directory.
example: /var/doc/virtualhost1, /var/doc/virtualhost2 the partner directory is /var/doc
2. You must change documentroot line in the lighttpd config file same as partner directory.
3. Apache configuration settings in the new partner will be considered directory should be changed.


I used i liked performance when i use together apache and lighttpd but if you want you can set ngix proxy/load balancer for the apache or DirectAdmin can add these features, we can select or change any time apache+lighttpd or ngix+apache. It can be perfect feature for DirectAdmin.
 
Last edited:
benches

Some test results would be interesting.

I'd love to see if a speed increase would be noticeable when running lighttpd for static sites/pages, through a proxy.

Jeff


This might be useful: http://www.btn.ro/wsb/

I personaly made those benchmarks.

And yes. lighttpd is better and should be included, will also be a business boot on sales because I spent days looking for a cpanel software with lighttpd.

nginx is fast but I had some issues with page ranks with it don't know why.
 
Last edited:
I would recommend litespeed to be an option as its really lighting fast when it comes to server load .. i mean when the loads are high apache seems to die
 
Lighttpd is known for memory leaks, and has clearly been surpassed in popularity by Nginx, as you can see in the March 2010 Web Server Survey by Netcraft:

Apache 54,55%
Microsoft 24,47%
Google 7.06%
Nginx 6.13%
Lighttpd 0.80%

My vote is for Nginx, it's the obvious choice since Lighttpd is dying.
 
Back
Top