php 5 - centos 4 - enabling dom
i have a base install of centos 4 on my server and one of the developers needs php to be compiled with --enable-dom.
how do i go about doing this since i didn't compile it myself? is it possible for me to install two versions of php simply? what's the quickest way to get this done? |
DOM support is included by default in php5 unless it's compiled with the "--disable-dom" option. You can run:
Code:
php -i|grep DOM You can also run: Code:
php -i|grep configure Regards |
ok craziness. i installed a fresh copy of php 5.2.3 and it runs fine from the command line. apache sees a different version, though. it's running 5.1.6.
how do i make apache use the newer one? |
How did you installed the newer php? From source, or using your package manager?
Anyway look for the line "LoadModule php5_module ..." inside httpd.conf of whatever it's called in centos and change it to point to the new libphp5.so installed by php 5.2.3. |
that's an excellent idea - however it doesn't appear to work. here's what i did:
Code:
[root@w5 home]# updatedb |
You didn't answer how you installed php-5.2.3. Also did you restart after apache after php installation?
|
yeah i just noticed that. i'm now a supreme moron for not answering your question - apologies, no idea why i didn't. before i start over with this - since i did the whole ./configure, make, make install route on both apache and php, do i need to uninstall it before i can install it again or can i just do it over without deleting anything?
|
I guess you compiled php running ./configure with the "--with-apxs2=...". If that's the case, then it's strange that "locate libphp5.so" didn't find it. It should exist under both libs/ and .libs/ subdirectories in the place you extracted php sources (I presume from your post that it's /home/wemuhtat/php-5.2.3).
You can do the whole ./confgure, make, make install from the beginning overwriting your previous attempt (running make clean before anything else). I suggest you if you're going to start from the beginning, to install php-5.2.4 that fixes some bugs and security issues of the previous release. |
All times are GMT -5. The time now is 09:58 AM. |