note 57302 added to ref.dom
| From: | dariusz<at>grabka" org | Date: | Fri, 30 Sep 2005 00:46:34 +0000 |
| Subject: | note 57302 added to ref.dom | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-96021@lists.php.net to get a copy of this message | ||
For those getting the following error with PHP 5.0.x:
Class 'DOMDocument' not found
... please check that the DOM extension has actually been installed. Based on the documentation, it
seems like the DOM extension should be present defacto, but it wasn't part of my FreeBSD
mod_php5 build.
The fix in FreeBSD 4.10+:
> cd /usr/ports/lang/php5-extensions
> make config
... select DOM, XML, and anything else your heart desires such as FTP and IMAP..
> make
> make install
> cd /usr/ports/www/mod_php5
> make
> make install
> vi /usr/local/etc/apache/httpd.conf
... remove all instances of *_php4* (otherwise, php5 may not load)
> apachectl restart
enjoy.
----
Manual Page -- http://www.php.net/manual/en/ref.dom.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+57302
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57302&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+57302&report=yes
Search -- http://master.php.net/manage/user-notes.php