Web Stack Getting Started Guide

PHP 5.2.4 Files

The following list describes the file structure for PHP:

/usr/php5/5.2.4/bin

Contains the PHP configuration executables.

/usr/php5/5.2.4/lib

Contains PHP library files.

/usr/php5/5.2.4/modules

Contains PHP modules for PHP extensions.

/usr/apache2/2.2/libexec

Contains the PHP module for Apache 2 (32-bit) prefork MPM and the module name is mod_php5.so. This module is delivered as part of SUNWapch22m-php5 package.

/usr/php5/5.2.4

Contains the default configuration file (php.ini).

/usr/php5/5.2.4/conf.d

Contains extension specific INI files for each PHP extension . Here, you can enable or disable various extensions that are integrated with the package.


Note –

The PHP extensions like APC, DTrace, XDebug, suhosin, andtcpwrap are disabled by default. To enable these extensions, you need to uncomment the respective line (extensions=<module-name>.so) in the conf.d file.