Module submission - php5

jannis@lunar-linux.org jannis at lunar-linux.org
Tue May 9 11:56:14 UTC 2006


module name       : php5
suggested section : zbeta
update (y/n)      : n
bugfix (y/n)      : n
security (y/n)    : n

I noticed that lighttpd needs the FastCGI version of PHP in order 
to spawn PHP processes (there's no mod_php in lighttpd). This
patch checks if lighttpd is installed and if it is, it asks the 
user whether he wants to build the FastCGI version.

As we can assume people with lighttpd mainly use lighttpd instead
of Apache (which might run as well, but still), this avoids 
problems after lighttpd + PHP 5 installations, like "if you try do 
run PHP as FastCGI backend make sure you use the FastCGI enabled 
version".

I think we should add this, but I didn't want to change it by 
myself before asking you guys.

The same change could be applied to the regular php module as 
well.

jannis

-------------- next part --------------
--- php5/CONFIGURE	2005-05-07 20:07:38.000000000 +0200
+++ php5/CONFIGURE	2006-05-09 13:54:39.000000000 +0200
@@ -19,6 +19,12 @@
     OPTS="$OPTS --with-ncurses"
   fi
 
+  if  module_installed  lighttpd;  then
+    if  query  "Build FastCGI version (required by lighttpd)?" y;  then
+      OPTS="$OPTS --enable-fastcgi"
+    fi
+  fi
+
   echo  'CONFIGURED="y"'  >>  $MODULE_CONFIG
   echo  'OPTS='\"$OPTS\"    >>  $MODULE_CONFIG
 
-------------- next part --------------
lvu submit php5 963fcd9fe20c978f9028830a696d012c  -
2.6.16 2.6.12 gcc-3.4.5 glibc-2.3.6



More information about the Lunar mailing list