« Easy Plesk Access TricksPHP4 on CentOS5/RHEL5 »

PHP4 and PHP5 On The Same Server

01/22/10

Permalink 04:50:10 am, by admin Email , 59 words   English (US)
Categories: PHP

PHP4 and PHP5 On The Same Server

If you have a server with PHP4 installed but need PHP5 on some websites then:

  1. Install a custom build of PHP5 to /opt/php5.
  2. Add lines like the following to your apache virtual host:

    AddHandler application/x-httpd-php5 .php 
    ScriptAlias /bin /opt/php51/cgi-bin
    Action application/x-httpd-php5 /bin/php5

You might also find the RemoveHandler directive handy to disable PHP4.

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
July 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution free blog software