PHP Modules Installed With HSphere PHP Packages

PHP Modules Default Location

To check php modules default location, run:

# /hsphere/shared/php/<PHPVERSION>/bin/php-config --extension-dir

This is the directory is linked to hsphere catalogue structure
/hsphere/shared/apache/libexec/php<PHPVERSION>ext

To list installed so-modules, run:

# ls /hsphere/shared/apache/libexec/php<PHPVERSION>ext/*.so

 

Enabling/Disabling PHP Modules

Modules are added one by one with ini-files of the same name that can be found in:

/hsphere/local/config/httpd/php<PHPVERSION>/php.d

If an ini-file contains extension=extname.so line, php at startup loads a corresponding extension module. Mind, any text following an unquoted semicolon ";" is ignored, thus the module indicated in the line; extension=extname.so won't load.

hspghere-apache-webbox doesn't have such mechanism of adding extension modules.

At updates coming after hsphere-php4-4.4.4-2 ini-files are not overwritten (as in earlier versions), but remain unchanged. Only for extensions that don't have corresponding ini-file, ini-files are created according to procedure above.

 

php.info

php.info gathers info on php core, modules, apache environment etc. You can run it as console command:

/hsphere/shared/php4/bin/php-cli -i |less

or screen its output at http://box_ip/hsphpinfo.php

 

PHP Modules Enabled in Standard PHP Installation


Function Reference
(or PHP extensions)
H-Sphere 2.4.x
(apache-webbox)
H-Sphere 2.5 and up, php4H-Sphere 2.5 and up, php5
before 4.4.44.4.4 +before 5.1.65.1.6 +
bcmathcoresosososo
bz2coresocoresocore
calendarcoresosososo
ctypecorecorecorecorecore
curlcoresosososo
date---corecore
dba-corecorecorecore
dbase-sosososo
dbx-soso--
dom---corecore
domxml-soso--
exif-soso-so
fileinfo-sosososo
filepro-sososo*
ftpcoresocoresocore
gdcoresocoresocore
gettextcoresocoresocore
gmp-sosososo
hash---corecore
iconvcoresosososo
imapcoresosososo
ldap-coresocoreso
libxml---corecore
mbstringcorecorecorecorecore
mcal-soso-*
mcryptcoresocoresocore
mhashcoresocoresocore
mime_magic-corecorecorecore
mnogosearchcoresosososo
mysqlcoresosososo
ncurses-sosososo
odbc-sosososo
opensslcorecorecorecorecore
overloadcorecorecore-*/a>
pcntl-sosososo
pdf-soso--
pcrecorecorecorecorecore
PDO---corecore
pgsqlcoresosososo
posixcorecorecorecorecore
pspell-sosososo
Reflection---corecore
sessioncorecorecorecorecore
shmop-sosososo
SimpleXML---corecore
soap---soso
socketscorecorecoresocore
SPL---corecore
sqlite-sosocoreso
standardcorecorecorecorecore
swfsoremoved--
sysvmsg-sosososo
sysvsem-sosososo
sysvshm-sosososo
tokenizercorecorecorecorecore
xmlcorecorecorecorecore
xmlrpc-sosososo
xmlreader---corecore
xmlwriter---corecore
xsl---corecore
xslt-soso--
yp-soso-*
zipcoresocore--
zlibcorecorecorecorecore

 

Notes:

  • mcal extension has been moved to the PECL repository and is no longer bundled with PHP as of version 5.0.0.
  • yp extension has been moved to the PECL repository and is no longer bundled with PHP as of version 5.1.0.
  • filepro extension has been moved to the PECL repository and is no longer bundled with PHP since version 5.2.0.
  • overload extension: see the Overloading in PHP 5 page for more information.
 

Cartika Information

Customer Resources