After installing the packages I edited my httpd.conf file, to load the php5 module when starting up Apache, by including this line:
LoadModule php5_module modules/libphp5.so
When running apachectl start, I am presented with the following error:
root@test-lm-1 # apachectl start
httpd: Syntax error on line 114 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/apache2/modules/libphp5.so: symbol xmlTextReaderGetAttribute: referenced symbol not found
I have checked to see all the dependency packages are iinstalled, as well as the compatibility of the versions. I uninstalled and reinstalled the libxml package, but still no luck.
It is the fist time I use apache with php, and some assistance will be highly appreciated.
If you downloaded these packages from sunfreeware.com then please return to that site and read the list of dependencies. There is a list of 19 other packages that are required by this php package. Install them and try again.
Even after trying to load the module manually, it still fails with the same error. Is there perhaps a specific order that the packages need to be installed in?? Each time I comment out the line to load the php module, Apache starts up ok.
Is there any packages that I might be missing, since the ones i installed are according to the sunfreeware website
I gave it a try, and it did not seem to sort anything out. I also listed the dynamic dependencies for the libphp5.so library... and it seemed to find all the dependencies...
Is there a way to use list only the missing dynamic dependencies?? Also, is anybody aware of any dependencies for the libxml2 package, because there is none listed on the sunfreeware site.
I have not restarted apache, because I am failing to start it up in the first place... however thanks for the post above... when I grep for xmlTextReaderGetAttribute, it does not seem to find it.
So i ran this command "/usr/ccs/bin/nm /usr/local/lib/libxml2.so | grep xmlTextReaderGetAttribute", without the grep...
from what i see the methods are listed in alphabetical order, and libxml2.so doesn't seem to have the "xmlTextReaderGetAttribute", which would make sense when it says in the error "symbol xmlTextReaderGetAttribute: referenced symbol not found"
I agree with you suggestion that it might be the incorrect version of libxml. However on the sunfreeware site, the only other version they have is libxml-1.8.17. I will remove the one installed, and try this one and let you know.
I checked my symlinks like suggested, and i found that there was a missing link to the newer version of the libxml library...
I then created the link using the ln -s command, and tried to start up apache... everything came up fine and i was able to see the website which runs on drupal 6.
I would like to thank you for your assistance and the new commands you taught me. Its highly appreciated.