Problems with Apache/PHP after hard drive replacement
charles-brewster at ntlworld.com
Tue Oct 3 10:34:39 BST 2006
We have the builders in at home, and I've had to physically move the FreeBSD
Following the inevitable shutdown and restart, I lost an old hard drive in
the machine which was used for backup, and happened to be 'primary master'
(ad0) on the machine.
The drive has now been replaced, and the system reboots fine, but when it
comes to start Apache, there seems to be a problem if the PHP module is
loaded, which it ordinarily would be. If I edit httpd.conf and comment out
LoadModule php5_module libexec/libphp5.so
Apache starts fine without PHP.
With the PHP LoadModule line in, when I try to start Apache I get
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf [the PHP5
LoadModule line above]
Cannot load /usr/local/apache/libexec/libphp5.so into server: Shared object
"libiconv.so.3" not found, required by "libxml2.so.5"
/usr/local/apache/bin/apachectl start: httpd could not be started
find / -name libiconv.so.3
picks up one occurrence of the file at
that file exists, is non-empty, and looks in the 'ee' editor much as I would
expect for an object code file.
It seems to me either as if the object file has become corrupted, or some
dependency path setting is not present or mangled.
I've tried recompiling PHP using my usual configure_php file:
'make' runs fine, but 'make clean install' throws a load of warnings during
the compilation - eg:
Line 254 [also 528, 641, ... etc etc]
Warning: passing arg2 of 'libiconv' from incompatible pointer type.
Installing PEAR environment:
/libexec/ld-elf.so.1: shared object "libiconv.so.3" not found, required by
*** Error code 1
[the same message as when I try to start Apache with the PHP5 LoadModule
Please can anyone suggest how I might get round this problem. Would
upgrading to PHP-5.1.6 clear out and rebuild everything?
Many thanks for any help.
512k Broadband £14.99 per month
Unlimited Downloads - No extra Costs
£14.99 per month (inc. VAT)
Order Now www.adsl4less.com
More information about the Ukfreebsd