Author Topic: Getting Feng Office to work with Light httpd - How To  (Read 2422 times)

cluge

  • Freshman
  • *
  • Posts: 26
    • View Profile
Getting Feng Office to work with Light httpd - How To
« on: October 03, 2010, 10:41:56 am »
Light httpd ( http://www.lighttpd.net/ )  is a much more resource light web server that uses a fastcgi interface for php.  Once your feng office starts to do a lot of traffic it's time to seriously tune apache, or look at faster alternatives. These instructions are based on a redhat install, but will work for other distributions (I will provide nginx instructions later as well). 

1. Download & lighttpd and lighttpd-fastcgi (yum install lighttpd  lighttpd-fastcgi)
2. Edit /etc/lighttpd/lighttpd.conf
            a. Uncomment mod_fastcgi module
            b. Change the server.document-root to something appropriate for your environment
            c. uncomment fastcgi.server section
3. Adjust php.ini and set cgi.fix_pathinfo = 1 and default_charset = "utf-8"
4. CD to your feng office root directory and chown -R lighttpd cache config tmp upload
5. Start lighttpd and have some fun

Gotchas:
If your using .htaccess to add any re-writing rules then you will have to take them out and put them in the server config.

If you use SSL, you need to create a PEM style key file for lighthttpd.

It has a much smaller memory footprint than Apache, and in testing the feng office felt much more responsive.  This was even after "tuning" apache.  I hope you find this usefull.

cluge

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Getting Feng Office to work with Light httpd - How To
« Reply #1 on: November 02, 2010, 08:54:19 am »
Thanks for sharing such information! I guess several users will be interested on this!

Best regards,
Francisco
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!