Results 1 to 5 of 5

Thread: PHP4 and PHP5

  1. #1
    Join Date
    Apr 2006
    Location
    Jacksonville, FL
    Posts
    498

    PHP4 and PHP5

    Hey guys,

    I am considering running PHP4 and 5 on the same server box. Just had a few questions. Are there any downfalls to having both running? ie. Any server proformance cuts/issues I may have with both running. Can I run both with PHPSuExec? Can I run both using MySQL 4.1.x? Are there any special things I need to do or be concerned about with both running on the same machine?

    This is a cPanel, CentOS 3.x machine.


    Thanks,
    Kyle

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    I am running both php4 and php5 in many servers for a long time. I haven't seen any downfalls for them.
    Both will be running as phpsuexec.
    Both uses same Mysql.
    Any more questions?

  3. #3
    Join Date
    Apr 2006
    Location
    Jacksonville, FL
    Posts
    498
    How are the two different files determined by the system? .php for PHP4 and .php5 for PHP5, or something similar?


    Kyle

  4. #4
    You can say in your httpd.conf that PHP5 has .php5 and php4 has .php.

    If you permit your users to use .htaccess files they will be able to do the switch and use .php with php5 ( addHandler x-http-php5 .php or something look-a-like).

  5. #5
    Join Date
    Apr 2006
    Location
    Jacksonville, FL
    Posts
    498
    Ok, great. I just sent it in to my server management guys to handle and set up. Thanks all.

Posting Permissions

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