[php-maint] building a php-5.2.10 package
Jan Schmidt, Continum AG
jan.schmidt at continum.net
Tue Jul 7 12:21:33 UTC 2009
sean finney wrote:
> hi jan,
> On Mon, Jul 06, 2009 at 04:34:25PM +0200, Jan Schmidt, Continum AG wrote:
>> Hi everybody,
>> i m building a new php-5.2.10 .deb package for my company and got a
>> question along this. I succesfully builded my packet but if i install it
>> over dpkg -i the module libphp5.so is always missing. My ./configure
>> system call is :
>> ./configure --with-apxs2=/usr/bin/apxs2 --with-apache2
>> --with-config-file-path=/etc/php5 --enable-cli --with-pear --with-mysql
>> --with-config-file=/etc/php5/php.ini --with-openssl --with-pdo-mysql --with-xsl --with-gd
>> --enable-suhosin --enable-fastcgi --enable-force-cgi-redirect
> are you using the existing 5.2.10 source package?
>> is there any parameter missing which i need for building the libphp5.so
> i would say the parameters in debian/rules in the php5 source package
> would be a good point of reference. there's a couple makefile variables
> that get the options, but i'm not sure what you're doing...
>> It would be also helpful if any of the maintainers can tell me how they
>> build php packages with that libphp module. Are there any documentations
> documentation on the ./configure arguments is really the domain of the
> "upstream" (i.e. php.net), though you can cheat and look in debian/rules
> like i mentioned above.
ok yesterday my mail was a little bit confusing so i try to to explain
it step by step what i've done and what my Problem is.
First i installed the the apache packages (mpm-prefork with the
dependencies, the libs etc).
Then i downloaded the sources by wget from
Then i configured it over the ./configure call like i wrote in my last
mail. After that i use "make" to compile it. then a dh_make to get a
proper debian format. i added my ./configure call into debian/rules, but
nothing else (that might be the mistake).
i used dpkg-buildpackage -uc -us -a to build my .deb packet. That all
works fine and finally i got my .deb package. If install this package
over dpkg -i it works, but the libphp5.so is missing. I set the
following paths in my httpd conf:
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
#LoadModule directive to aid module installations
#LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
#Action application/x-httpd-php4 "/php/php4"
#Action application/x-httpd-php "/php/php5"
when i do a /etc/init.d/apache restart i get the message:
Restarting web server: apache2We failed to correctly shutdown apache, so
we're now killing all running apache processes. This is almost certainly
suboptimal, so please make sure your system is working as you'd expect
... waiting apache2: Syntax error on line 189 of
/etc/apache2/apache2.conf: Syntax error on line 6 of
/etc/apache2/httpd.conf: Cannot load /usr/lib/apache2/modules/libphp5.so
into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared
object file: No such file or directory
i know that this libphp5.so doesnt exist. i tried to search it i got the
message "no such file or direktory" and it is also not listed in
/usr/lib/apache2/modules. if i copy that libphp5.so from an other server
it all works fine, but i like to implement that libphp5.so into my
packet. and now is my question what i've done wrong or which option i
forgot to have this libphp in my packet. Thats why i asked how the
maintainers build these packages and what they wrote in their
More information about the pkg-php-maint