Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-06-2008, 01:47 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 7

Rep: Reputation: 0
Gentoo & PHP Problems


Been having some troubles with my gentoo server. I'm using Joomla CMS and i'm experiencing a few problems that are related to the PHP configuration. I've been hunting for days to try and find an appropriate solution, and you guys and gals are my last resort.

The two errors I've been getting are as follows:

Fatal error: Class 'DomDocument' not found in /var/www/ on line 93


Warning: require_once(/var/www/ [function.require-once]: failed to open stream: No such file or directory in /var/www/ on line 69

Fatal error: require_once() [function.require]: Failed opening required '/var/www/' (include_path='.:/usr/share/php5') in /var/www/ on line 69
From what I've read through googling, installing a package 'php-xml' fixes this issue in other distros... I can't seem to find that package related to gentoo though.

I've tried re emerging php5 with the following USE commands in my package.use:

dev-lang/php cli apache2 ctype expat fastbuild ftp gd hash iconv memlimit mysql nls pcre pic pdo reflection session simplexml sockets spl ssl tokenizer truetype unicode xml xsl zlib

In hopes that it would recompile with the necessary XML support but still I get the same error.

My PHP.ini has a quite large file set for max upload size, and i've set:

include_path = ".:/usr/share/php5"
I'm ripping my hair out at this point... hopefully somebody can help?


Last edited by tweakmyknob; 04-06-2008 at 01:52 AM.
Old 04-06-2008, 08:11 AM   #2
Lord Matt
LQ Newbie
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Forgive me if I've missed things totally but they look like script errors. Okay so the first one looks like it might be someting not supproted that was a requirement but the second one is looking for a file "" and not finding it. That's a mighty odd file name and while it might be perfectly good it could also be a "settings"/"config"/"whatever" predefined value gone wrong.

Open up flashitool.html.php and have a look around the indicated line number the "code" there will be the biggest clue as to what is going wrong. I would then go on to stick things from that line onto Google and find out if they are core or part of an extension to php/apache/something.

Looking a bit harder at the following errors I would bet reasonable money that solving the source of the first error will solve the others.

Posting some code from the script with line numbers would allow others to do exactly what I have described and then take credit for knowing but if you get "stuck" try it anyway.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP & GD install problems Beauford-2 Linux - Software 1 06-20-2006 05:18 PM
MySQL & pgSQL problems w/ PHP dolvmin Linux - Software 2 10-28-2005 11:36 PM
Problems installing MySql & PHP from rpms? Nelsond Fedora 3 08-12-2005 12:09 PM
problems installing MySQL & PHP on FC4 alpineedge3 Linux - Newbie 9 07-23-2005 06:00 PM
problems with the apache & Php server of mandrake linux 9.1 krotaz Linux - Networking 6 11-21-2003 09:24 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration