You are here

How to switch php version of your app in Webfaction

I have been developing the Drupal sites locally on php 5.2 version and had no problems hosting them also. Recently I hosted one site that was working perfectly locally and on dreamhost but when I moved it to webfaction I received some errors.

I search the forums and found that it was due to php 5.4 version on webfaction. So I thought lets switch back to the old version of php without creating a new app

It is very simple. Just open your .htaccess file and add these lines

  1. <FilesMatch \.php$>
  2. SetHandler php52-fcgi
  3. </FilesMatch>

Simple!

Blog Tags: