Hi,

Newish to linux, new to php. I need the functionality of DOM XML in php, as I have seen from another article I need to re-compile php with the --with-dom option.

I dont want to have to keep re-compiling apache as I have other systems being hosted so I want to use php as an installable module.

So far..... have compiled latest ver of libxml without issue, was put in /usr/local/lib . Have the apxs util. Ran configure on php source with appropiate options, can list if necessary. Configured ok, make, make install ok.

Edited httpd.conf changed the AddModule to point to the right place, Set DirectoryIndex, and AddType.

When trying to start httpd..... is says...

" Cannot load /etc/httpd/modules/libphp4.so into server: libxml2.so.2: cannot open shared object file: No such file or directory. "

ok, so I'm assuming that it cant find libxml2.so.2, I've tryed specifying extension_dir and extension in the php.ini file, but no luck.

Anyone have any ideas??

Thanks in advance,

Paul

    2 months later

    yeah I had that problem too, check to see that /usr/local/lib (or whatever the dir is) where libxml2.so.2 is is in /etc/ld.so.conf. that fixed it for me.

    -fish

      Write a Reply...