Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FC4 And PHP5.0.4

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  Printing from Windows  
Author Message
shaun_bramley

External


Since: Jun 26, 2005
Posts: 1



(Msg. 1) Posted: Sat Jun 25, 2005 10:03 pm
Post subject: FC4 And PHP5.0.4
Archived from groups: linux>redhat (more info?)

Hey everyone. I have serveral questions concerning my current
installation of FC4. Specifically they relate to the installation of
PHP (5.0.4). Previous to FC4 I was running Mandrake 10.1. While using
Mandrake I developed several PHP scripts, which at the time appeared to
work correctly (with the exception of my own programming errors). Now
however I find that these scripts do not work.

When I look within my /etc/httpd/error_log file I see the following
lines:

[client 192.168.1.5] PHP Notice: Undefined index: page in
/var/www/html/HockeyStats/game_entry.php on line 24
[client 192.168.1.5] PHP Notice: Undefined index: team in
/var/www/html/HockeyStats/game_entry.php on line 28
[client 192.168.1.5] PHP Fatal error: Class 'DomDocument' not found in
/var/www/html/HockeyStats/game_entry.php on line 55


After having seen the error concerning the DomDocument object I quickly
checked my php_info() and found the following configure information :

'./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr'
'--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png'
'--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr'
'--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars'
'--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--with-pear=/usr/share/pear' '--with-kerberos'
'--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr'
'--enable-memory-limit' '--enable-shmop' '--enable-calendar'
'--enable-dbx' '--enable-dio'
'--with-mime-magic=/usr/share/file/magic.mime' '--without-sqlite'
'--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs'
'--without-mysql' '--without-gd' '--without-odbc' '--disable-dom'
'--disable-dba'


So, my questions are:

1) Does the '--disable-dom' indicate that the xml's DomDocument object
was not compiled into this "default" rpm?

2) If so what is the best way to go about making my php installation
DomDocument-able? Compile from source? Compile a new rpm (of which I
have no idea how to do)?

Thank you in advance for your help.

Shaun
Back to top
Login to vote
crispytwo

External


Since: Jul 28, 2005
Posts: 1



(Msg. 2) Posted: Wed Jul 27, 2005 9:40 pm
Post subject: I'm getting the same error message [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I suspect that a recompile is necessary. However, I haven't tested
this yet.

I'm getting similar problem and looking for an answer. i.e.:
PHP Fatal error: Class 'DomDocument' not found in ...

my server reports from the phpinfo() that the XML is activated.

SimpleXML
Simplexml support -> enabled
Revision -> $Revision: 1.139.2.4 $
Schema support -> enabled

-and-

xml
XML Support -> active
XML Namespace Support -> active
libxml2 Version -> 2.6.19

I've compared this output with a non-FC4 that works and it is the same
information.
Back to top
Login to vote
Peter Harlacher

External


Since: Aug 03, 2005
Posts: 1



(Msg. 3) Posted: Wed Aug 03, 2005 1:05 pm
Post subject: Re: FC4 And PHP5.0.4 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Shaun

shaun_bramley DeleteThis @videotron.ca hat am 26.06.2005 12:03 folgendes getippelt:
> Hey everyone. I have serveral questions concerning my current
> installation of FC4.
>
> When I look within my /etc/httpd/error_log file I see the following
> lines:
>
> [client 192.168.1.5] PHP Fatal error: Class 'DomDocument' not found in
> /var/www/html/HockeyStats/game_entry.php on line 55
>
> So, my questions are:
>
> 1) Does the '--disable-dom' indicate that the xml's DomDocument object
> was not compiled into this "default" rpm?

Dunno / Don't think so.

> 2) If so what is the best way to go about making my php installation
> DomDocument-able? Compile from source? Compile a new rpm (of which I
> have no idea how to do)?

Take a look here: http://www.php.net/manual/en/ref.dom.php

'There is no installation needed to use these functions; they are part
of the PHP core.'

Good Luck!

>
> Thank you in advance for your help.
>
> Shaun
>

Peter
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rpm for php5 - why is it so hard to find an rpm to install anything after php 4.2 for linux 9? I see a lot of Fedora rmps for php 4....

disk cleanup - Hi all, I installed RH8.0 with including all the options (everything) on an 8 gig partition. I've been doing up2date..

Cannot start x config in Mandrake 9.1 - I disabled auto-start up into a GUI like KDE So now I am at the command prompt [root@hostname /]# I type ..

Where to discuss Ximian? - I have Red Hat 9 and Ximian Desktop 2. A few issues have come up, but I'm not sure of the best group to post to. Any....

Move directories to different drive -- How?? - System: Compaq PC with 6GB hard drive RedHat 9 Linux Hard drive chopped into 3 Primary and 1 Extended partitions...

[MC-LUUG] Upcoming Installfest - The second monthly MC-LUUG (McMinnville Linux and Unix Users Group) installfest is slated for 12 July 2003 in..
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]