Results 1 to 8 of 8
  1. #1

    PHP4 & PHP5 Advice

    Hi everyone, on my servers I have one program that will only work as php 4, at the moment I have php 5 working as .php5.

    However its time to change, I need to get PHP 4 to now run as .php4 (with phpsuexec) and PHP 5 to run as .php (with phpsuexec) now I know I can use easy apache to change .php to be running as PHP 5.

    But what is the best way to get php 4 installed as .php4?

    Help is much appreciated!

    Regards
    Last edited by deastwood; 10-01-2006 at 06:46 AM.

  2. #2
    Join Date
    Nov 2004
    Location
    Australia
    Posts
    1,737
    is this with cpanel? You should also check cpanel.net - think I've seen an answer to this there.

  3. #3
    Look for in your apache configuration:

    AddType application/x-httpd-php .php

    Just change that to .php4 and restart apache, however on most cPanel servers this is already defaulted for .php4 as well.
    || ServaxNet (AS46974)
    || Server Management and Managed Hosting Experts Since 2004

  4. #4
    will have a look brianoz thanks

    @ servax, i would still need to install php4 though as I want php5 to be the one compiled with apache.

  5. #5
    Join Date
    Nov 2004
    Location
    Australia
    Posts
    1,737
    There's a nice thread on the cpanel forums at:

    HOW-TO: Apache + phpsuexec + php4 (cgi) + php5 (cgi)
    http://forums.cpanel.net/showthread.php?t=45908

    Check it out! This should be able to be adapted to PHP5 easily enough ...

  6. #6
    so basically just run the second step for php 4, ok i think i get it, will have a go later or might just pay someone todo it lol!

  7. #7
    Then yeah, follow the instructions on the guide and instead of compiling PHP4 as the guide says, do PHP5 and vice versa.
    || ServaxNet (AS46974)
    || Server Management and Managed Hosting Experts Since 2004

  8. #8
    cheers, im slowly learning, i think im getting the hang of all the little bits todo with the server, appreciate your help!

Posting Permissions

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