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
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