Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 7 of 7

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 ...

  1. #1
    JPC Member
    Join Date
    Apr 2006
    Posts
    48

    Php5

    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?

  2. #2
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    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.

  3. #3
    JPC Member
    Join Date
    Apr 2006
    Posts
    48
    I'm using CPanel 11. Where do I look?

  4. #4
    all about nothing! Frank Broughton's Avatar
    Join Date
    Jan 2006
    Posts
    2,158
    Quote Originally Posted by KaiserSoze View Post
    I'm using CPanel 11. Where do I look?
    Main >> Software >> Apache Update

  5. #5
    JPC Member
    Join Date
    Apr 2006
    Posts
    48
    So if I put this in .htaccess in one directory it will only work in that directory?

    AddHandler application/x-httpd-php5 .php

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    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
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    JPC Member
    Join Date
    Apr 2006
    Posts
    48
    Great. Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •