Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configuring fastcgi with apache, do I need mod_proxy?

Status
Not open for further replies.

csgonan

MIS
May 2, 2007
118
US
I have a Sparc solaris 10 web server running apache 2.2.14 and php, with prefork, all compiled from source. The sunfire v240 has 8G memory but only 2 processors. I understand php may not work well with threading/worker research says you can use fastcgi, which I am not familiar with.

There are so many different configurations and some posts that say you also need mod_proxy with fastcgi (or is that only if I want to distribute the load to other servers?)

Can someone provide some direction in compiling and configuring apache (I know php needs a --enable-fastcgi). Is there a separate fast-cgi configuration script or does php.ini have to be modified.

Also, do the existing php scripts need any changes in order to run under fast-cgi?

I was hoping it was a simple as the existing configs to load the existing (like this). These statements would be removed I imagine if fast-cgi module is used.

LoadModule php5_module modules/libphp5.so
AddHandler php5-script php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

Thank you very very much for any assistance.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top