Print this page


2011-08-23 00:00:03

5106R/5107R YUM updates (suPHP)

Updated base-vsite RPMs were released today that extend the suPHP functionality with support for custom php.ini files.

Category: General
Posted by: mstauber

Our suPHP integration always had been a bit incomplete. It's primary benefit being that PHP scripts run with the UID and GID of the owner of the scripts (instead of user "apache"). While using suPHP is more secure, our implementation had the drawback that only the server wide PHP settings would apply. But not those individually configured for the site. Especially in conjunction with the "open_basedir" directive this caused problems and/or confusion.

To fix this our suPHP integration was extended to support custom php.ini files, which reside inside the home directory of each suPHP enabled sites. These custom php.ini config files contain the PHP related settings applicable for the site in question and are honored when suPHP pages are served.

The following RPMs are now available through YUM for 5106R and 5107R contain the new functionality and should be installed automatically during the next YUM update:



Transaction Summary
Upgrade       8 Package(s)

During the installation of these RPMs a special script is run (/usr/sausalito/sbin/ which will check if you have sites with suPHP enabled. If suPHP enabled sites are found and if those sites don't have their own php.ini file yet, then suPHP is briefly turned off for these sites and immediately it's turned on again. That will automatically create the individual php.ini files for the sites with suPHP enabled.

In that case the YUM update will show the following notice on the screen:

Running Transaction
  Updating       : base-vsite-glue
Shutting down cced: done
Starting cced: [  OK  ]
Running CCE constructors: 
Going through all suPHP enabled Vsites to make sure they all have a custom php.ini: 
Vsite has suPHP enabled, but is missing a custom php.ini. Fixing it!
Vsite has suPHP enabled, but is missing a custom php.ini. Fixing it!
Vsite has suPHP enabled, but is missing a custom php.ini. Fixing it!

Whenever suPHP support for a Vsite is turned off, the custom php.ini files will be deleted automatically.

Please note: For security reasons the custom php.ini config files are root owned and protected with chattrib to prevent that anyone but the BlueOnyx GUI can modify them. And yes: That also means that user "root" cannot edit them without removing the chattrib bit first.

Previous page: API Documentation
Next page: Downloads