Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    2

    Default changing from apache to lighttpd

    hi i have a fedora core 4 box with an amd 1800+ (1.5ghz) and 1gb ram server

    i have whm/cpanel

    "WHM 10.8.0 cPanel 10.9.0-R79
    Fedora i686 - WHM X v3.1.0"

    with apache 1.3.37 (leet?? lol) but i want to use lighttpd w/ fast-cgi

    how do i got about doing that?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You'd have to disable httpd in WHM > Service Manager and then configure the alternative daemon entirely by hand and disable those parts of the cPanel UI that deal with modifying apache (e.g. parking domains, addon domains, etc) since none of them will work and neither will the new user setups for domains in the web server.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    33

    Default

    lighttpd unfortunately isnt a mature webserver yet. you'll lack the ability to read .htaccess files for example... users wont be able to configure applications on their own (keep in mind a lot of web software uses .htaccess for things like rewrites). there are a lot of other reasons why you probably should stick with apache in a multi-user environment like this, but i recommend you take a look through the lighttpd documentation to get a feeling for it all. if you manage the whole config thats one story, but cpanel is designed for allow the users to manage the details of their own accounts, etc, hence the control panel (and not just 1 big support request system where you actually change the configs)

    you *might* be able to launch lighttpd on a seperate port *just* for the cgi of particular hand-configured hosts/url's using apache's proxy stuff to lighttpd. In converse you could force apache onto a funny port and simply have lighttpd proxy to the apache on the back end (running on a different port) but that sorta defeats the purpose

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    2

    Default

    ok well thank you both for your reply

    you've both kinda scared me off a little hehe

    i'll stick with apache but is apache 1 or 2 better? (or is that kinda like php4 vs php5?)

    and can you tell me of a good guide to a least config/tweak apache?

  5. #5
    Member tom_taylor's Avatar
    Join Date
    Nov 2005
    Location
    Warrington, UK
    Posts
    33

    Default

    You could use LightTPD or Nginx as a backend proxy which would serve your files.

    Just need a way in which cpanel can setup the config automatic when creating accounts, subdomains etc OR when you send the requests via apache's proxy mod through to one of the feather weight servers, it will send the document root. That way only apache's config would ever be updated!

    Proxying them together is easy, its just making this solution work perfect!

Similar Threads & Tags
Similar threads

  1. Swapping Apache for Lighttpd
    By Dom W in forum Optimization
    Replies: 1
    Last Post: 06-15-2010, 11:25 AM
  2. Using Lighttpd or Nginx instead of Apache on WHM
    By students in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-18-2009, 02:27 PM
  3. lighttpd
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-16-2008, 04:00 PM
  4. lighttpd
    By taydu in forum New User Questions
    Replies: 2
    Last Post: 10-04-2007, 12:53 PM
  5. How to install lighttpd behind apache
    By fun4arabs in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-23-2007, 07:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube