What's new with AMP stack in OpenSolaris 2008.11
By sriram on Jan 12, 2009
Since the initial release of OpenSolaris 2008.05 - in the last 4-5 months - our Web Stack project team has been busy revving up AMP (Apache, MySQL and PHP) stack specific bugs for OpenSolaris 2008.11 as well as porting this stack on Solaris 10 and RedHat Enterprise Linux 5 platforms as part of Sun Web Stack 1.4 release. For more information on this Sun Web Stack 1.4 release, check out this blog from my colleague - Jyri Virkki.
in this blog, I thought I will write some of the important technical
issues that has been addressed within AMP stack for OpenSolaris
- General version update of AMP components like Apache = 2.2.9, PHP = 5.2.6 and MySQL = 5.0.67.
- Apache and PHP configuration files have been updated to provide better performance out of the box.
- Apache 2.2.9 now includes additional modules like Perl, FastCGI, DTrace etc
- Apache now provides various sample configurations like SSL configuration within /etc/apache2/2.2/samples-conf.d directory.
- MySQL 5.0 server (64-bit) is also now available . However, MySQL server defaults to 32-bit by default. If you would like to run MySQL server as 64-bit, please refer to Administering MySQL server documentation within our wiki.
- Experimental MySQL 5.1 server is now available within webstack repository.
However, to use MySQL 5.1 within OpenSolaris 2008.11, you will need to
explicitly point to Web Stack
repository to download and install this server. I guess, more on this
in a separate blog !
- PHP file layout has been modified to be more in synchronization with the rest of the components. New PHP 5.2.6 file layout within OpenSolaris 2008.11 is /usr/php/5.2 - for all standard binaries, /etc/php/5.2 - for all configuration and /var/php/5.2 - for all data, pecl / pear modules and session specific contents. Also, at the time of startup , PHP engine will look and load all the INI files found under /etc/php/5.2/conf.d directory.
- PHP extensions like APC, DTrace is now enabled by default. Also, PECL extensions like XDebug, Memcache, Suhosin, idn and tcpwrap
is bundled within OpenSolaris 2008.11. However, they are disabled by
default. These extensions are bundled as individual ini files within /etc/php/5.2/conf.d directory.
- Individual PHP extensions can be either enabled or disabled by editing their corresponding ini files within /etc/php/5.2/conf.d directory and then restarting Apache SMF service. For more information on restarting Apache SMF service, please visit our Administering Apache Server documentation within our Web Stack Wiki.
- PHP extension now includes PEAR / PECL support as well. So, now it should be easy for developers to now download and install their favorite extensions. So, if you wonder as to how to use PEAR or PECL within OpenSolaris, you could do some thing like below
- /usr/php/bin/pear install XML_Parser
- /usr/php/bin/pecl install inclued
Now, if you install these PECL extensions as shown above, please remember to enable them by editing the php.ini found within /etc/php/5.2/php.ini location.
You can load any of these PECL php extensions by editing php.ini and adding the following line at the end of the file
extension = [extension name].so
Note: Please note that unlike Linux or other platforms, Solaris engineering folks would like to avoid writing any user data (like data not provided by OS) within /usr location. So, we don't write any dynamic data into /usr. So, what this means is - PEAR or PECL will now install modules under /var/php/5.2/modules directory. However, PHP engine has been patched to look for modules both under /usr/php/5.2/modules as well as /var/php/5.2/modules directory
this acts as a good starting point on what to expect with AMP stack in
OpenSolaris 2008.11. For more comprehensive information, please visit
our Getting Started Guide or please visit your feedback within our OpenSolaris Web Stack forum .