PHP Fatal error: Class 'DOMElement' not found in /var/www/html/auctions/htmlparsing/library/JS/Extractor/Element.php on line 21
Ok, so DOMElement is not installed or enabled. PHP.net says it is installed and enabled by default. So I find many forums that say php-xml needs to be installed. ok.... :
---command line--------------------------------------------------------
[root@lab auctions]# yum install php-xml
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php-xml.i386 0:5.2.5-7.fc9 set to be updated
--> Processing Dependency: php-common = 5.2.5-7.fc9 for package: php-xml
--> Finished Dependency Resolution
php-xml-5.2.5-7.fc9.i386 from fedora has depsolving problems
--> Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-xml-5.2.5-7.fc9.i386 (fedora)
Error: Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-xml-5.2.5-7.fc9.i386 (fedora)
------------------------------------------------------------
So, I thought php-common was installed. Let's see....
---command line--------------------------------------------
[root@lab auctions]# yum install php-common
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Package matching php-common-5.2.5-7.fc9.i386 already installed. Checking for update.
Nothing to do
------------------------------------------------------------
Yup, it's installed and up to date. It seems I can't install php-xml without php-common, but php-common is installed. Am I going crazy?
---command line--------------------------------------------
[root@lab auctions]# php-config --extension-dir
/usr/lib/php/modules
[root@lab auctions]# ls /usr/lib/php/modules/
dbase.so ffmpeg.so gd.so json.so ldap.so mysqli.so mysql.so pdo_mysql.so pdo.so pdo_sqlite.so phpcups.so zip.so
[root@lab auctions]# php-config --libs
-lcrypt -lcrypt -lhistory -lreadline -lncurses -lgmp -lcurl -lbz2 -lz -lpcre -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
[root@lab auctions]# php-config --version
5.2.6
-------------------------------------------------------------