Jump to content

phpinfo() question from newbie


kashworth99

Recommended Posts

I am trying to determine if DOM is enabled in my installation.

 

I am running Centos 5

Apache 2.2.3

MySQL 5.0.3

and PHP 5.1.6 Zend Eng 2.1.0

 

My phpinfo shows --with and --enable to the following which it reports as --without, etc:

 

--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'

 

However, when I look to the Configuration sections below I see:

 

dom

DOM/XML enabled

DOM/XML API Version 20031129

libxml Version 2.6.26

HTML Support enabled

XPath Support enabled

XPointer Support enabled

Schema Support enabled

RelaxNG Support enabled

 

Does this mean that dom is enabled or does the Configure Command override?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/125469-phpinfo-question-from-newbie/
Share on other sites

When you install an app on a linux box from source you usually run the ./configure command to tell it what modules to compile with, paths to files, etc. Then the application is compiled using 'make' then 'make install'. Your phpinfo shows the original configure options that were used to build and compile php.

 

However, additional modules can be installed later without the need to recomile php. You can do this with yum i.e. If I wanted to add the mbstring extensions I could use:

yum install php-mbstring

 

After restarting the webserver the module will show in your phpinfo but the configure line will not change.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.