I tried to make this easy but I only did it for CentOS at this time due to my busy schedule. I’ll accept RPMs for other platforms as well if people would like to submit them.
!! WARNING !! WARNING !!
THIS IS DEEMED EXPERIMENTAL AND WILL NOT BE SUPPORTED DIRECTLY BY US. IT MAY BREAK YOUR BOX, IT MAY WORK FINE.
We have it running on a few internal servers and it has been fine, but you have been forewarned.
To upgrade your iworx-CP boxes to use php5 and mysql 4.1 you can add this to your /etc/yum.conf
We’ve had some other recent questions about this and I’ll post a whitepaper on how it’s most easily done. There have been some nonsense rumors that iworx-cp doesn’t “support” PHP5 and it’s partly our fault for lack of info on the subject.
Just a bump to see if there’s any news on this front. I have a new box that should be coming online today or tomorrow and I’d like to set it up with PHP 5.0.4 and MySQL 4.1.12 if possible.
100% possible. If you’d like to ‘donate’ the use of your server for the setup I can do the howto on it Paul. I’ve just been short on time and we don’t have any free boxes with a fresh iworx-cp on them.
I can do another quickie howto like I did for the jailed shell if that’s ok.
I have a CentOS fresh install of InterWorx on my ‘now working’ test box you could set it up on as well.
I also have a fresh install of RH9 on the same box, but haven’t install InterWorx on that as of yet (at least I don’t think I did). But I could give you access to that as well.
In fact I’m thinking of installing php5 as CGI and use the apache module suPHP, maybe try to use fastcgi.
The idea behind this is to try to offer two types of config to my customers :
php 4 as module = quicker but with safemod on and openbasedir
php 4 & php 5 as CGI with suPHP = less quick but more secure. So without safe mod and open base dir
Before doing this, I’d like to only install PHP5 as cgi with suPHP, just to try and to allow some customers to tests PHP5
All your comments about this idea are really welcome. If you already done it, a quick howto may help. Also I’m open to hear the bad and good thinks about this idea
Maybe fastCgi would be the best solution, but I really don’t know it… I’ve already tried suPHP and I find it very usefull, it’s like suexec
Thanks for your comments / howto / points of view / discussion about this
Sounds nice. I am planning on putting PHP 5 on our box in the background soon. I have it working on my non-IWorx box at home. PHP4 is installed as normal as an Apache module and PHP5 is located in the cgi-bin. If I have PHP5 files in a directory I can add these lines to a .htaccess file (or for IWorx, .htaccess or /etc/httpd/conf.d/domain.tld.conf for domain-wide changes)
did you install php5 from RPMs ?
Could you please provide a brief Howto.
For me there is only to install PHP with the option --force-redirect-cgi ?
then apply this (I’d prefer to have .php5 than .php but not sure)
AddType application/x-httpd-php-cgi .php5
Action application/x-httpd-php-cgi /cgi-bin/php5
I installed from source as to not clobber anything, although I’m using Gentoo at home and I could install mod_php4 while using PHP5 for CLI and CGI. When you build the source code you can look for sapi/cgi/php which will be suitable for dropping in cgi-bin.
If you go with the .php5 extension, you can do this server-wide. Personally, I think .php5 is ugly and will cause problems in the future which is why I didn’t do it.
/cgi-bin/php5 needs to be where ever Apache will look for it. For me, it looks under the localhost site. The actual files can be anywhere, so long as they are accessable by the php5 app.
As a reminder, I haven’t tried this on our IWorx box yet, only at home. I didn’t look into security considerations and performance tweaking yet, so I wouldn’t do this in a production environment without a little review first.
As a reminder, I haven’t tried this on our IWorx box yet, only at home. I didn’t look into security considerations and performance tweaking yet, so I wouldn’t do this in a production environment without a little review first.
Absolutly, it’s the reason why we would like to install it on our iworx test box.
My idea was to ask to interworx team if they already have an php5-cgi rpm home made. (I prefer rpm, as it is easly removable)
If not, I think I’ll use the ./configure that is in the php.spec file of the php4 iworx’s rpm. Of course I’ll add --force-redirect-cgi (think it is enough)