Bug 183080

Summary: lang/php5[5]: apxs:Error: Config file /usr/ports/lang/php5/work/stage/usr/local/etc/apache24/httpd.conf
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2013-10-18 12:20:00 UTC
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
==================================================================================



The file complained about NOT is present :

Check the existence of the requested config file:

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.

Fix: 

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.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-10-18 12:21:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2013-10-18 13:38:23 UTC
State Changed
From-To: open->closed

Fixed, thanks.