Archive | January 22, 2010

PHP4 and PHP5 On The Same Server

If you have a server with PHP4 installed but need PHP5 on some websites then: Install a custom build of PHP5 to /opt/php5. 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. Bookmark on [...]

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.

View Comments Continue Reading →

PHP4 on CentOS5/RHEL5

If you need PHP4 on a CentOS5/RHEL5 server then you’ll find the RPMs linked below very handy. They install to /opt/php4 and can coexist with a default PHP 5 install. The included conf.d/php4.conf file includes sample lines to run it as a CGI or as a module. RPMs are here: http://repo.conforge.com/conforge/CentOS/5/i386/RPMS/ http://repo.conforge.com/conforge/CentOS/5/x86_64/RPMS/ See this URL [...]

If you need PHP4 on a CentOS5/RHEL5 server then you’ll find the RPMs linked below very handy. They install to /opt/php4 and can coexist with a default PHP 5 install.

The included conf.d/php4.conf file includes sample lines to run it as a CGI or as a module.

RPMs are here:

http://repo.conforge.com/conforge/CentOS/5/i386/RPMS/

http://repo.conforge.com/conforge/CentOS/5/x86_64/RPMS/

See this URL for details to add the yum repo:

http://wiki.conforge.com/wiki/Linux-PHP4cgiAndPHP5on+CentOS5

View Comments Continue Reading →