LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Gentoo & PHP Problems (https://www.linuxquestions.org/questions/linux-server-73/gentoo-and-php-problems-633373/)

tweakmyknob 04-06-2008 12:47 AM

Gentoo & PHP Problems
 
Hello

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:

Quote:

Fatal error: Class 'DomDocument' not found in /var/www/domain.name/components/com_flashitool/flashitool.html.php on line 93
-and-

Quote:


Warning: require_once(/var/www/domain.name) [function.require-once]: failed to open stream: No such file or directory in /var/www/domain.name/components/com_docman/includes_frontend/upload.php on line 69

Fatal error: require_once() [function.require]: Failed opening required '/var/www/domain.name' (include_path='.:/usr/share/php5') in /var/www/domain.name/components/com_docman/includes_frontend/upload.php 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:

Quote:

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:

Quote:

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

-Tweak

Lord Matt 04-06-2008 07:11 AM

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 "domain.name" 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.


All times are GMT -5. The time now is 05:30 AM.