Web Hosting Talk







View Full Version : how install hardened-php


redstaingnet
04-28-2007, 02:06 AM
hardened-php :mad:

gnetwerker
04-30-2007, 02:05 PM
The way to do anything with PHP on a Raq with the 550 GUI (including Rackstar and BlueQuartz) is that you must separate the PHP that runs the admin server from the PHP for the user servers. The Raq admin GUI must run on the original PHP -- newer releases will break it.

There are more complete instructions on the net, so don't rely on these, but since PHP is loaded into the admin server, you want to split httpd into httpd.admserv and httpd.worker, or something similar, and then modify the appropriate /etc/httpd.conf files so that the first picks up the original PHP, and the latter picks up the new PHP. This is trickier than it sounds because PHP itself sources all sorts of things, and you must duplicate the other modules Apache loads from /usr/lib/httpd, and so forth.

Several Raq vendors will sell your an upgrade PHP package. If you purchases this, it does all the relevant work for you, then you could install your hardended PHP over theirs, presuming they will give you the config file for it, or you can recreate it.

zeffie
06-01-2007, 03:50 PM
I built this a while back and as fun as it was I didn't think anybody else would want it since it could crash a lot of scripts...

To build it you just apply the patch and re-configure, and recomplie... I do this on a rpm basis so it's nice a stable...