Parallels H-Sphere Documentation System Administrator Guide

 

PHP Modules Installed With H-Sphere PHP Packages

(version 2.5 and up)
 
 

Related Docs:   Adding PHP Extensions H-Sphere PHP Packages

Last modified: 29 Aug 2007

 

WARNING: This documentation covers Parallels H-Sphere versions up to 3.1. For the latest up-to-date Parallels H-Sphere documentation, please proceed to the official Parallels site.

This document covers the following issues:

 

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, php4 H-Sphere 2.5 and up, php5
before 4.4.4 4.4.4 + before 5.1.6 5.1.6 +
bcmath core so so so so
bz2 core so core so core
calendar core so so so so
ctype core core core core core
curl core so so so so
date - - - core core
dba - core core core core
dbase - so so so so
dbx - so so - -
dom - - - core core
domxml - so so - -
exif - so so - so
fileinfo - so so so so
filepro - so so so *
ftp core so core so core
gd core so core so core
gettext core so core so core
gmp - so so so so
hash - - - core core
iconv core so so so so
imap core so so so so
ldap - core so core so
libxml - - - core core
mbstring core core core core core
mcal - so so - *
mcrypt core so core so core
mhash core so core so core
mime_magic - core core core core
mnogosearch core so so so so
mysql core so so so so
mysqli - - - - so
ncurses - so so so so
odbc - so so so so
openssl core core core core core
overload core core core - *
pcntl - so so so so
pdf - so so - -
pcre core core core core core
PDO - - - core core
pgsql core so so so so
posix core core core core core
pspell - so so so so
Reflection - - - core core
session core core core core core
shmop - so so so so
SimpleXML - - - core core
soap - - - so so
sockets core core core so core
SPL - - - core core
sqlite - so so core so
standard core core core core core
swf so removed - - -
sysvmsg - so so so so
sysvsem - so so so so
sysvshm - so so so so
tokenizer core core core core core
xml core core core core core
xmlrpc - so so so so
xmlreader - - - core core
xmlwriter - - - core core
xsl - - - core core
xslt - so so - -
yp - so so - *
zip core so core - -
zlib core core core core core

 

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.

Related Docs:   Adding PHP Extensions H-Sphere PHP Packages



© Copyright 2017. Parallels Holdings. All rights reserved.