Project

General

Profile

[Solved] lighttpd vs apache2

Added by ryan14 about 15 years ago

Hi, I am going to be running a server with a php/mysql social networking site that has ssl(https) for login only and also css and javascript. I am trying to decide whether to use lighttpd OR apache.

What are the pros and cons?

Does lighttpd serve dynamic content too or just static content?

Does lighttpd work with SSL?

Does lighttpd support mod rewrite url WITHOUT .htaccess like www.url.com/name, instead of www.url.com/546456jk5jkh

Is lighttpd 100% compatible with PHP5, MYsql, javascript, css, xhtml,html ?

Is lighttpd 100% compatible with cpanel so all cpanel's features will work? Does lighttpd have any documentation on how to integrate with cpanel?


Replies (3)

RE: lighttpd vs apache2 - Added by icy about 15 years ago

ryan14 wrote:

Hi, I am going to be running a server with a php/mysql social networking site that has ssl(https) for login only and also css and javascript. I am trying to decide whether to use lighttpd OR apache.

What are the pros and cons?

Pro: Less resource usage, faster
Cons: not so great for mass hosting (lots of vhosts with user supplied configs that change all the time etc)

Does lighttpd serve dynamic content too or just static content?

Of course.

Does lighttpd work with SSL?

Of course.

Does lighttpd support mod rewrite url WITHOUT .htaccess like www.url.com/name, instead of www.url.com/546456jk5jkh

Of course. (We don't support .htaccess at all, those are Apache config files)

Is lighttpd 100% compatible with PHP5, MYsql, javascript, css, xhtml,html ?

Lighty is compatible with FastCGI. FastCGI is the bridge between PHP and Lighty. Unless you use mod_mysql_vhost, Lighty has nothing to do with MySQL. Javascript, CSS, XHMTL and HTML are just static files, we don't need special compatibility there. Lighty does not care what the filename or content is.

Is lighttpd 100% compatible with cpanel so all cpanel's features will work? Does lighttpd have any documentation on how to integrate with cpanel?

I don't know, maybe look at the cpanel site.

BTW: you could have answered most of these questions yourself by looking at the wiki and the documentation therein.

RE: lighttpd vs apache2 - Added by ryan14 about 15 years ago

So if i have a web server and i install php, mysql, lighty, is this all i need to make my php scripts work? Will my php scripts still have the .php extension or will it be .cgi?

Also, i was looking on FastCGI here:

http://en.wikipedia.org/wiki/FastCGI

And it says lighty has only partially implemented FastCGI. "Multiplexing of requests through a single connection is not implemented" . Why is this?

And has lighty fixed all the bugs(cons) listed at these 2 websites:

http://jetlogs.org/2007/08/23/apache-vs-lighttpd-on-php/
http://mti.ugm.ac.id/~roywikan/blog/?x=entry:entry090130-151407

Finally, does lighty solve the C10K problem?:
http://www.kegel.com/c10k.html

RE: lighttpd vs apache2 - Added by gstrauss about 4 years ago

Finally, does lighty solve the C10K problem?:
http://www.kegel.com/c10k.html

Yes. lighttpd does so multiple times over.

    (1-3/3)