| « Easy Plesk Access Tricks | PHP4 on CentOS5/RHEL5 » |
If you have a server with PHP4 installed but need PHP5 on some websites then:
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.