I'm on a VPS thats running PHP 4.x at the moment. Before I make the plunge to PHP5 for my entire vps is it possible to have PHP5 in just one directory so i can play about with it and see which of my scripts wont work in there?
This is a discussion on Php5 in the Open Discussion & Chit-chat forum
I'm on a VPS thats running PHP 4.x at the moment. Before I make the plunge to PHP5 for my entire vps is it possible ...
I'm on a VPS thats running PHP 4.x at the moment. Before I make the plunge to PHP5 for my entire vps is it possible to have PHP5 in just one directory so i can play about with it and see which of my scripts wont work in there?
Yes, it is possible to run php 4 and 5 aside each other just as Jag does on shared accounts...
Which control panel are you using? If it is cPanel it shouldn't be hard, but I am not sure about plesk or directadmin
-Daniel
If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.
My scripts never have bugs. They just develop random features.
I'm using CPanel 11. Where do I look?
So if I put this in .htaccess in one directory it will only work in that directory?
AddHandler application/x-httpd-php5 .php
Yes. .htaccess files work for the directory in which they reside and anything below it. So if you add the directive you posted to public_html/php5/.htccess then PHP files will run under php5 if they are contained in public_html/php5, public_html/php5/dog, public_html/php5/dog/cat, etc., but not in public_html or any other subdirectory of public_html.
--Jason
Great. Thanks!
Copyright © 2011 JaguarPC.com
Bookmarks