RV Products Forums: PHP4 / PHP5 Switcher utility - RV Products Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

PHP4 / PHP5 Switcher utility

#1 User is offline   electric 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 37
  • Joined: 11-December 03

  Posted 09 September 2007 - 05:10 AM

It would be nice to have a php4/php5 switcher utility that can automatically "switch" between the two versions.

Why?

Most web hosting companies now are running *both* php4 and php5 at the same time. It would be nice to allow the end-user customer an easy way to "switch" between them, since most customers are stupid and don't know how to do this. But with the end-of-life announcment for PHP4.. many customers are now asking us if we support PHP5 and how to switch to it, etc...

So it would be nice to just point them to a cpanel/rvskin button.

How?

Switching between the two version is a simple matter of adding/modifying a few lines in the .htaccess file so that .php files are interpreted by the correct version of PHP.

For example, this will "switch" .php files to be interpreted by PHP5 on most servers:

CODE
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .php


Switching "back" would just mean removing the .htaccess lines that were added. Of course, this might be a little different on various systems, but most would be very similar and I doubt there are too many possible changes to this...

It would be a nice rvskin feature. smile.gif

A simple online WYSIWYG content manager for editing your web pages.
http://www.SnippetMaster.com
Linked/embedded CSS, all browsers, XHTML compliant code, multiple users, editable regions... and it's FREE!
0

#2 User is offline   bin_asc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 10-September 07

Posted 10 September 2007 - 03:10 AM

I would really love to see this happening.
0

#3 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 10 September 2007 - 11:13 AM

Interesting feature. I noted it. The feature will be available after released of User Layer.
0

#4 User is offline   bin_asc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 10-September 07

Posted 14 September 2007 - 03:45 AM

Seems like there is no more need for this as cPanel have the new EA3 to support both php types.
0

#5 User is offline   Alex 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 147
  • Joined: 04-February 04

Posted 14 September 2007 - 07:19 AM

Yes but unfortunately, some servers are having issues rolling out EA3. Although we have not upgraded the production servers, we did get a segment fault error on one of the two test servers. We are going to wait a bit before rolling it out.

Related threads.
ProficientHost
http://www.proficienthost.com

Delivering Quality Hosting & Design Services
0

#6 User is offline   bin_asc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 10-September 07

Posted 14 September 2007 - 07:38 AM

True, I have issues too. Zend also not working well.
0

#7 User is offline   Alex 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 147
  • Joined: 04-February 04

Posted 14 September 2007 - 08:29 PM

Are you aware that PHP 5 support is only in Zend Opt 3.3.0 and later; might need to upgrade Zend.

BTW - I just noticed my link to the threads does not work. Search through cpanel forum for "EA3" and you will get useful info.

QUOTE(bin_asc @ Sep 13 2007, 08:38 PM) <{POST_SNAPBACK}>
True, I have issues too. Zend also not working well.

ProficientHost
http://www.proficienthost.com

Delivering Quality Hosting & Design Services
0

#8 User is offline   bin_asc 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 10-September 07

Posted 14 September 2007 - 09:06 PM

I`ve been working with cPanel for the past 5 years. I`m up2date smile.gif
0

#9 User is offline   pairote 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 4,345
  • Joined: 13-June 03

Posted 28 November 2007 - 01:25 PM

The feature is supported in the latest v8.17. Concurrent PHP4 and 5 should be compiled from EA3.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked