How To Build mod_fastcgi For Apache2 On OpenSUSE 12.2
|
Submitted by falko (Contact Author) (Forums) on Fri, 2013-02-22 12:58. :: SuSE | Web Server | Apache
How To Build mod_fastcgi For Apache2 On OpenSUSE 12.2Version 1.0 mod_fastcgi is needed for Apache prior to 2.4 to work with PHP-FPM. There is an apache2-mod_fastcgi package for OpenSUSE, but unfortunately it is buggy: it does not allow you to use the FastCgiExternalServer directive inside a vhost, although the official mod_fastcgi documentation says that this is allowed. This guide explains how to build a new mod_fastcgi from the sources for Apache2 on an OpenSUSE 12.2 system to fix this problem. I do not issue any guarantee that this will work for you!
Preliminary Notemod_fastcgi can be used to make Apache2 work together with PHP-FPM (see Using PHP5-FPM With Apache2 On OpenSUSE 12.2). Unfortunately, if you decide to use the FastCgiExternalServer directive inside a vhost configuration, Apache will refuse to start, and apache2ctl -t gives you this error: server1:/etc/apache2/sites-available # apache2ctl -t The official mod_fastcgi documentation says that FastCgiExternalServer can be used in the global server configuration and also in vhost configurations, so this is a bug in OpenSUSE's apache2-mod_fastcgi package. We can build our own mod_fastcgi as follows:
Building mod_fastcgiFirst make sure that apache2-devel is installed: zypper install apache2-devel Download the latest mod_fastcgi sources and build them as follows: wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz ln -s /usr/include/apache2-worker/mpm.h /usr/include/apache2/ Make sure you have the line
in /etc/apache2/sysconfig.d/loadmodule.conf. Finally restart Apache: /etc/init.d/apache2 restart That's it. You've just replaced OpenSUSE's mod_fastcgi module with your own one.
Links
|




Recent comments
1 day 4 hours ago
1 day 6 hours ago
1 day 18 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 7 hours ago
2 days 17 hours ago
2 days 18 hours ago
3 days 3 hours ago
3 days 4 hours ago