Search Engine: Elastic

Article ID: 5387, created on Jun 23, 2008, last review on May 11, 2014

  • Applies to:
  • Operations Automation


Parallels Operations Automation supports both PHP4 and PHP5 for Linux Shared Hosting - PHP4 as mod_php and PHP5 as CGI.
By default, all .php files are processed by mod_php, and to trigger CGI processing files must be named as .php5.
Renaming files could be inconvenient and one can use a special .htaccess file to switch PHP processing mode to CGI.


To enable PHP5 for processing .php files in some directory, put .htaccess file with the following content there:
AddType application/x-httpd-php5 .php
Action php5-cgi-script /cgi-php5/php-cgi
AddHandler php5-cgi-script .php

This file affects nested directories as well.

NOTE: PHP5 support should be enabled on the webspace.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF