Blog

Using non-default PHP when we have both PHP4 + PHP5

  |   Uncategorized   |   No comment
Want create site? With Free visual composer you can do it easy.

If we are using both php4 and php5 in linux server, we may need to use the non default php version for a particular domain. We can use a .htaccess file in order to setup this.

1. If php 4 is the non-default php version then we can add the following
to the .htaccess file of the domain to use php 4,

AddType application/x-httpd-php .php

2. If php 5 is the non-default php version then we can add the following
to the .htaccess file of the domain to use php 5,

AddType application/x-httpd-php5 .php

(refer: /usr/local/apache/conf/php.conf)

Did you find apk for android? You can find new Free Android Games and apps.