PHP5 install error on FreeBSD 7.0
fbsd.questions at rachie.is-a-geek.net
Sat Apr 12 20:07:21 UTC 2008
On Saturday 12 April 2008 21:29:18 Joseph Simmons wrote:
> cougar# pwd
> cougar# make -n install-htdocs
> echo Installing HTML documents ;
> /usr/local/www/apache22/data ; test -d
> /usr/ports/www/apache22/work/httpd-2.2.6/docs/docroot && (cd
> /usr/ports/www/apache22/work/httpd-2.2.6/docs/docroot && cp -rp
> index.html ) && ( [ ! -f /usr/local/www/apache22/data/index.html ] &&
> cp -p /index.html /usr/local/www/apache22/data/index.html)
Apparently they fixed that in 2.2.8, because my version ends in ||true which
makes any failure not fatal.
Part of the problem is that htdocsdir is not set, so cp -p /index.html fails,
even though config.log shows the value, it's not translated to the Makefile.
Hmm, the quick fix would be to run:
cd /usr/ports/www/apache22/work/httpd-2.2.6 && make -k install
The longer but probably better fix is to update your ports tree, using csup or
portsnap. In that case the handbook is your friend:
One reason it is the better fix, is that 2.2.8 fixes a few security issues:
Problem with today's modular software: they start with the modules
and never get to the software part.
More information about the freebsd-questions