Installing php5 from ports

Tim DeBoer tdeboer at gmail.com
Sun Feb 8 22:05:41 PST 2009


Hi everyone,
I've run into a bit of an issue while trying to install php5 from ports.
I've been playing around trying to create an accurate "howto" for setting up
apache, mysql, and php on this machine. So I've actually installed and
deinstalled a couple of times already. This last time the message below came
up.

# make install
===>  Installing for php5-5.2.8
===>   php5-5.2.8 depends on file: /usr/local/sbin/apxs - found
===>   php5-5.2.8 depends on executable: pkg-config - found
===>   php5-5.2.8 depends on shared library: xml2.5 - found
===>   Generating temporary packing list
===>  Checking if lang/php5 already installed
"Makefile", line 612: warning: duplicate script for target
"main/internal_functions.lo" ignored
Installing PHP SAPI module:       apache
/usr/local/share/apache22/build/instdso.sh
SH_LIBTOOL='/usr/local/build-1/libtool' libs/libphp5.so
/usr/local/libexec/apache
/usr/local/build-1/libtool --mode=install cp libs/libphp5.so
/usr/local/libexec/apache/
cp libs/libphp5.so /usr/local/libexec/apache/libphp5.so
Warning!  dlname not found in /usr/local/libexec/apache/libphp5.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/libexec/apache/libphp5.so
apxs:Error: Config file /usr/local/etc/apache/httpd.conf not found.
*** Error code 1

Stop in /usr/ports/lang/php5/work/php-5.2.8.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.

The only sense I can make of it is it wants to install the apache module,
but it can't find httpd.conf under /usr/local/etc/apache/
No surprise that as httpd.conf is under /usr/local/etc/apache22/
Is there a way to force the install to look in the correct path?


Thanks everyone  :)

-- 
Tim


More information about the freebsd-questions mailing list