Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
If you are new to PHP, you should start with the PHP manual located on the PHP website at http://php.net/manual/ .
The PHP packages included in Solaris contain many PHP extensions. In order to use these extensions, you must enable them in a PHP configuration file. Starting with PHP 5.6, Solaris provides a file "conf.d/extensions.ini" under the appropriate /etc/php subdirectory. You may uncomment lines in this file to enable the desired extensions.
To use PHP as an Apache web server module, you must configure Apache appropriately. Starting with PHP 5.6, Solaris provides a sample supplemental configuration file at /etc/apache2/2.4/samples-conf.d/php5.6.conf . To use it without modification, copy it into /etc/apache2/2.4/conf.d/ .
The web/server/apache-22/module/apache-php53 package provides PHP 5.3 as a server module for Apache 2.2. For PHP 5.6, an additional package is not required; an Apache 2.4 server module is included in the web/php-56 package. Apache 2.2 support is not provided with PHP 5.6 in Solaris.
| ATTRIBUTE TYPE ATTRIBUTE VALUE |
| Availability |
| web/php-53, web/server/apache-22/module/apache-php53 |
| Stability Uncommitted |
| ATTRIBUTE TYPE ATTRIBUTE VALUE |
| Availability |
| web/php-56 |
| Stability Uncommitted Pass-through |
PHP 5.2 may be removed in a future update.
Please migrate to a newer version. Migration documentation is available on the PHP website:
http://php.net/manual/en/appendices.php
If it is desired to keep the obsolete version of PHP then it should be frozen to prevent its removal by a future update.
pkg freeze 'web/php-52*' web/server/apache-22/module/apache-php52 pkg change-facet --no-backup-be 'version-lock.web/php-52*=False' \e version-lock.web/server/apache-22/module/apache-php52=False
Please note that the freezing of packages may yield an unsupportable system so use with caution.
Before and after installing check or set the value of PHP's pkg mediator to the default version desired:
pkg mediator
To set the default version of PHP change the pkg mediator value:
pkg set-mediator -V 5.3 php