-   Linux - Software (
-   -   Problem integrating PHP to apache (

R960XT 03-03-2007 02:29 AM

Problem integrating PHP to apache
i've been installing apache2 and php 5.2.1 on my ubuntu 6.06
and when i try to start apache, it cames with this message


deddy@Linux:~/Desktop/libxml2-2.6.27$ sudo /usr/local/apache2/bin/apachectl start
httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/ into server: /usr/local/apache2/modules/ undefined symbol: php_libxml_node_decrement_resource

what's the problem ?

tbutttbutt 03-03-2007 02:50 AM

Have you installed all the php files that Apache needs to run PHP? A file seems to be missing. Check all the PHP files on your CDs and install the ones you think need to be installed, perhaps the one that has 'xml' in the name.

One of them will have the missing definition for php_libxml_node_decrement_resource.

R960XT 03-04-2007 08:27 AM

i've checked the file
the file exsist in the directory /usr/local/apache2/modules/
i just don't know why it keep showing message like that.

i'm newbie on linux

tbutttbutt 03-05-2007 12:42 PM

What file have you checked?

The 'directory' you mention is not a directory -- it is a file!

Check the files on the CDs of your distribution. The file will be one with something like php-xml in its name.

You have to first mount the CD with:

mkdir /mnt/cdrom
mount -t iso9660 /dev/cdrom /mnt/cdrom

'cd' into the RPMS directory on your CD and locate the file on the CD, then do:
rpm -ivh <file-name.rpm>
replace file-name.rpm with the actual name of the file.
This will install the file.

Then unmount the CD with:
umount /dev/cdrom

Check all your CDs. You will find the file on one of them. Then install it. That's all there is to it.

All times are GMT -5. The time now is 12:21 PM.