How would it be possible to run certain scripts (this could be in either a vhost or directory setting in the apache conf) to run as mod_php when the current server configuration is running FPM/FastCGI?
Server OS: Ubuntu-Server 11.04
How would it be possible to run certain scripts (this could be in either a vhost or directory setting in the apache conf) to run as mod_php when the current server configuration is running FPM/FastCGI?
Server OS: Ubuntu-Server 11.04
To run PHP both with mod_php and fastcgi, you can also use
PHP-FPM
and Apachemod_actions
Install
mod_fcgi
andmod_actions
for Apache. Install and configurePHP-FPM
.And add to the virtual host config following block
I prefer to run PHP-FPM listening a UNIX socket.
But you can also configure your PHP-FPM to run on local port, so you should change
-socket
config parameter to the-host ip:port
FastCGIExternalServer
configuration http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiExternalServerWell, the easy answer would be just to install
mod_php
andphp_fcgi
- and do not define thex-application
PHP handler in any of your configs. Then it would usemod_php
.