Summary: A stack containing software useful for web hosting (Such as PHP 5.2, 5.3, 5.4 and MySQL 5.5) on SmartOS and Solaris 10, using the IPS package manager from OpenSolaris/OpenIndiana/Solaris 11. Installs software to /ec. Created by EveryCity Managed Hosting.
Key Features: Integration with SMF, DTrace probes for core software, combined 32bit/64bit packages, kept up to date with latest Apache/PHP/MySQL/etc.
For a list of software please see the catalogues on the package repositories:
|http://smartos.pkg.ec||SmartOS & Joyent SmartMachines||pkg5-smartos-bootstrap-20111221.tar.gz|
Installation is incredibly simple:
(Replacing BOOTSTRAPARCHIVE with a link to the bootstrap tarball from the table above for your platform). Note on SmartOS this may produce warnings about /lib/svc not being writable - these can safely be ignored, they are pkg5 manifests that are not needed.
This extracts everything to /ec - you can then install packages by doing:
You will then need to adjust the runtime linker search path to look in /ec/lib:
(Note: Doing this will remove /opt/local from the runtime linker search path, as having both pkgsrc and OpenWebstack listed can cause library conflicts)
EC Userland is built specifically for Solaris/SmartOS and includes things like integration with SMF, dtrace probes for some key software, and combined 32bit/64bit packages. It is also built specifically for hosting environments, by a company that manages hosting across a fleet of cloud servers.
This makes EC Userland the ideal software stack to deploy on your Solaris 10, SmartOS or Joyent Cloud SmartMachine server if you're going to be doing hosting tasks.
It is kept up to date with the latest versions of Apache, PHP and MySQL - we increment minor version numbers as they come out, so you can stay up to date with "pkg update". For major version numbers, we introduce a new package.
The directory structure is laid out to facilitate this, for example:
This allows you to install PHP 5.2 and PHP 5.3 along side each other, and deactivate/active them within apache as simply as "a2dismod php52 && a2enmod php53". When PHP 5.4 comes out, this will get added in just the same way - seamless upgrades!
We also provide combined 32bit/64bit packages, as Solaris/SmartOS is a combined 32bit/64bit OS. With Apache and MySQL you can pick which bittyness gets loaded by setting the SMF property "enable_64bit=true". Apache is 32bit by default with the prefork mpm and MySQL is 64bit by default.
We also include software such as ffmpeg and vlc - please only install this software if it is legal to do so in your own country. This repository is hosted in the UK where pure software patents are not applicable.
|PHP 5.2, 5.3 and 5.4|
|cronolog, cronie, logrotate, syslog-ng|
And much much more.
The source code to the repo is available here:
It uses the "userland-gate" build format from the OpenSolaris project, also used by Illumian and OpenIndiana. OpenIndiana-specific instructions can be found here, however the general usage is to:
- Check out the source
- Run ./mkrepo.sh to create a local IPS repo
- Add the repo as a file based repo with "pkg set-publisher -p file:///path/to/ec-userland/i386/repo"
- cd components/foobar
- gmake publish
We have a SNGL based dataset rooted at / instead of /ec (so software under /usr, /etc, /var) coming soon, with gcc 4.7.3 as the base and all the major software updated to the latest versions (e.g. Apache 2.4). We hope to release this Q3 or Q4 2013.