::Welcome to the Open world:: All FOSS, lovers we Want you!!!

tdevinda

Member
Nov 16, 2006
858
19
0
41
Mattegoda
PHP Problem

Guys, I have PHP 5.1.6 installed in a RHEL 5 server. I need to run a PHP file with DOMDocument class in it.

The following error comes out.
Fatal error: Class 'DOMDocument' not found in line 4......

I checked other forums and from the look of it, they say I need to install php-xml. (What the heck!)
The server I'm using does not have internet to it. But I can download and put any heck of a file to the server.

I downloaded the RPM for php-xml and tried
Code:
rpm -ivh php-xml-5.1.6-23.2.el5_3.asp121.i386.rpm

It gives out the following output:
Code:
warning: php-xml-5.1.6-23.2.el5_3.asp121.i386.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
error: Failed dependencies:
        php-common = 5.1.6-23.2.el5_3.asp121 is needed by php-xml-5.1.6-23.2.el5_3.asp121.i386


So I got php common rpm and got the following output when trying to install;

Code:
rpm -ivh php-5.1.6-23.2.el5_3.asp121.src.rpm 
warning: php-5.1.6-23.2.el5_3.asp121.src.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
   1:php                    warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
.
.
.
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
.
.
.


What I need to do it use the DOMDocument Class in my php. Tell me the way to get that working.

Thanks.
 

kosandpol

Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    Guys, I have PHP 5.1.6 installed in a RHEL 5 server. I need to run a PHP file with DOMDocument class in it.

    The following error comes out.
    Fatal error: Class 'DOMDocument' not found in line 4......

    I checked other forums and from the look of it, they say I need to install php-xml. (What the heck!)
    The server I'm using does not have internet to it. But I can download and put any heck of a file to the server.

    I downloaded the RPM for php-xml and tried
    Code:
    rpm -ivh php-xml-5.1.6-23.2.el5_3.asp121.i386.rpm

    It gives out the following output:
    Code:
    warning: php-xml-5.1.6-23.2.el5_3.asp121.i386.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
    error: Failed dependencies:
            php-common = 5.1.6-23.2.el5_3.asp121 is needed by php-xml-5.1.6-23.2.el5_3.asp121.i386


    So I got php common rpm and got the following output when trying to install;

    Code:
    rpm -ivh php-5.1.6-23.2.el5_3.asp121.src.rpm 
    warning: php-5.1.6-23.2.el5_3.asp121.src.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
       1:php                    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    .
    .
    .
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    ########################################### [100%]
    warning: user mockbuild does not exist - using root
    warning: group mockbuild does not exist - using root
    .
    .
    .


    What I need to do it use the DOMDocument Class in my php. Tell me the way to get that working.

    Thanks.
    you'll have to download all the dependent rpms and install them locally as root to get php-xml installed.
     

    romesh1981

    Junior member
  • Oct 4, 2006
    515
    16
    18
    Colombo
    Hey..............

    I INSTALLED UBUNTU 9.04 TODAY.
    COMPLETED EVERY UPDATE INCLUDING DRIVERS......, COEDCS FOR VIDEO AND AUDIO, SKYPE, HMMMM AND ALSO I TINK I HAVE TO LEARN GIMP (IM ON TO PHOTOGRAPHY; SO.......)

    and da best thing is my mobitel E160HSDPA modem was recognized without any problem...... in dis version!


    GOOOOSH VERY TIRED BUT SO INTERESTING.

    AND ITS NICE TO HAVE A THREAD ON Open Source toooooooooooo !!!!!!!!!!!!!!!!!!


    MY DESKTOP LOOKS SUPERB now! he he heeeeee:lol::lol::lol:


     
    Last edited:

    asiridol

    Active member
  • Dec 29, 2006
    756
    234
    43
    Still on earth
    hey guys, problemo :( my fedora is not booting up properly after i update my kernel :( same thing happened to my pc. but somehow i managed to select old kernel from the grub menu. i can't do that with the laptop. itz dual boot with fedora + mint. i tried to edit the grub menu from mint. but no use :( help me :(
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    hey guys, problemo :( my fedora is not booting up properly after i update my kernel :( same thing happened to my pc. but somehow i managed to select old kernel from the grub menu. i can't do that with the laptop. itz dual boot with fedora + mint. i tried to edit the grub menu from mint. but no use :( help me :(

    what do you get for the boot menu ?
     

    asiridol

    Active member
  • Dec 29, 2006
    756
    234
    43
    Still on earth
    i got all the kernel versions. nothing work at all.. this is the error i get
    Code:
    Registered led device: iwl-phy0:radio
    Registered led device: iwl-phy0:assoc
    Registered led device: iwl-phy0:RX
    Registered led device: iwl-phy0:TX
    ADDRCONF (NETDEVC_UP): wlan0: link is not ready
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    ok, so your wifi card is not getting up. If you let it alone at that line, after some time. does it boot on its own ?
     

    rameshsilva

    Member
    Jun 26, 2008
    39
    0
    0
    i installed fedora... prob with mp3 n wma...
    i hv usd ubuntu b4 n wen i tried to open a mp3 it automatically searches e plugin n instaled it. but in fedora it searches e plugin 4 a while n den says it's unable 2 find it... any idea?
     

    asiridol

    Active member
  • Dec 29, 2006
    756
    234
    43
    Still on earth
    run these commands in terminal

    Code:
    [INDENT][COLOR=#000000][I]rpm -ivh http://rpm.livna.org/livna-release.rpm
    rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
    rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
    yum  -y  install  xine-ui gstreamer-plugins-bad-extras gstreamer-ffmpeg gstreamer-plugins-ugly gstreamer-plugins-bad
    yum  -y  install totem-xine mozplugger gecko-mediaplayer xmms xmms-faad2 libmad libid3tag libdvdread libdvdnav  libquicktime vlc ffmpeg wget libdvdcss
    yum -y install xine-lib-extras-freeworld xmms-mp3
    wget www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
    tar -jxvf all-20071007.tar.bz2
    mkdir -p /usr/local/lib/codecs
    cp all-20071007/* /usr/local/lib/codecs
    ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs /usr/lib/win32
    rm -f all-20071007.tar.bz2
    rm -rf all-20071007[/I][/COLOR]
    [/INDENT]
     

    rameshsilva

    Member
    Jun 26, 2008
    39
    0
    0
    mach should i paste all lines at once in the terminal or hav to run line by line?
    i'm not dat familier wth linux commands...
    is dere any other way to do this?
     

    blackhole

    Member
    Jul 3, 2007
    606
    4
    0
    47
    In a Blackhole
    mach should i paste all lines at once in the terminal or hav to run line by line?
    i'm not dat familier wth linux commands...
    is dere any other way to do this?

    Hehe the simplified steps, follow line by line and install rpm separatly

    rpm -ivh http://rpm.livna.org/livna-release.rpm

    rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

    rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

    yum -y install xine-ui gstreamer-plugins-bad-extras gstreamer-ffmpeg gstreamer-plugins-ugly gstreamer-plugins-bad totem-xine mozplugger gecko-mediaplayer xmms xmms-faad2 libmad libid3tag libdvdread libdvdnav libquicktime vlc ffmpeg wget libdvdcss xine-lib-extras-freeworld xmms-mp3

    wget www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

    tar -jxvf all-20071007.tar.bz2

    mkdir -p /usr/local/lib/codecs

    cp all-20071007/* /usr/local/lib/codecs

    ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs /usr/lib/win32

    rm -f all-20071007.tar.bz2

    rm -rf all-20071007