Tuesday, May 25, 2010

FAST CGI Support

Steps to FAST CGI Support

Go to system -> Administration -> Synaptic Package Manager and select php-cgi

sh /etc/init.d/lighttpd start

sh /etc/init.d/lighttpd stop

Click apply changes

Edit file /etc/lighttpd/lighttpd.conf file to add following things.

First add the module mod_fastcgi (lighttpd provides an interface to a external programs that support the FastCGI interface via this module). Make sure your server.modules loades mod_fastcgi:

server.modules = (
“mod_access”,
“mod_accesslog”,
“mod_fastcgi”,
“mod_rewrite”,
“mod_auth”
)

Add following lines to configuration

fastcgi.server = ( “.php” =>

(( “socket” => “/tmp/php-fastcgi.socket”,
“bin-path” => “/usr/local/bin/php”,
“bin-environment” => (
“PHP_FCGI_CHILDREN” => “16″,
“PHP_FCGI_MAX_REQUESTS” => “10000″
)
))
)

Restart lighttpd server with following command

No comments:

Post a Comment

Pages

About Me

My photo
- A competent M.S. Software Engineer and B.E. (Comp) with 6 years of rich experience in Java/ C / C++ / Oracle/PHP/Postgresql/Mysql in IT industry.
- Resourceful in developing Applications with various platforms and different domains.
A strategic planner with expertise in designing internal control systems towards the accomplishment of corporate business goals.
- A keen analyst with exceptional relationship management skills and abilities in liaising with different clients.
- Team player with excellent analytical and communications skills.
Worked with development projects with software brands like Cognizant and Infosys
Specialties
- Master in struts
- Good hands on in core Java
- Understanding of other building blocks of Enterprise applications like middle ware technologies.
- Knowledge of database like Oracle,postgresql,mysql