lang/php5[5]: apxs:Error: Config file /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf not found.

O. Hartmann ohartman at zedat.fu-berlin.de
Fri Oct 18 11:24:02 UTC 2013


Today with ports revision 330735 some updates of lang/php5 where
introduced. Now it is impossible to build lang/php5 or lang/php55 with
www/apache24 (which is our web server)!

What is this mess about? I was always able to build the apache php
module by using the original installed httpd.conf file of the port
www/apache24, axps complained about not set ServerName and some
messages about MPM variables, but it always worked.

Now I get this:

==================================================================================
===>  Staging for php5-5.4.21
===>   Generating temporary packing list
Installing PHP SAPI module:       apache2handler
/usr/local/share/apache24/build/instdso.sh
 SH_LIBTOOL='/usr/local/share/apr/build-1/libtool'
 libphp5.la /usr/ports/lang/php5/work/stage/usr/local/libexec/apache24 /usr/local/share/apr/build-1/libtool
 --mode=install install
 libphp5.la /usr/ports/lang/php5/work/stage/usr/local/libexec/apache24/
 libtool: install:
 install .libs/libphp5.so /usr/ports/lang/php5/work/stage/usr/local/libexec/apache24/libphp5.so
 libtool: install:
 install .libs/libphp5.lai /usr/ports/lang/php5/work/stage/usr/local/libexec/apache24/libphp5.la
 libtool: install: warning: remember to run `libtool
 --finish /usr/ports/lang/php5/work/php-5.4.21/libs' chmod
 755 /usr/ports/lang/php5/work/stage/usr/local/libexec/apache24/libphp5.so
 apxs:Error: Config
 file /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf
 not found. *** Error code 1
==================================================================================

And with this, lang/php5 is gone and so the service of Apache24. I
think this is not a mess produced by the port itself, it is some
antique stuff in the Mk files controling the build of apache24.

the file complained about is present :
ls /usr/local/etc/apache24/httpd.conf
4946323 -rw-r--r--  1 root  wheel  -   19K 18 Okt
12:56 /usr/local/etc/apache24/httpd.conf

and in the port's folder of lang/php5:

ls  /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf
ls: /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf:
No such file or directory

It is not copied at all. Copying the httpd.conf to the expected
(non-existent) target

(do in /usr/local/etc/apache24
cp
httpd.conf /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf)

solves the problem temporarily for me. 

Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20131018/2dec12e9/attachment.sig>


More information about the freebsd-ports mailing list