webfaction

Switch PHP version of Drupal on Webfaction

Submitted by ravisagar on Mon, 05/16/2016 - 10:29

Often we encounter problems when hosting Drupal site on shared servers like webfaction. The PHP version that we used while development of the site is not there on the hosting server. If you are using webfaction then the steps below can be used to switch your site's PHP version.

Create a symlink to the version of php you want.


ln -s /home/php-cgi/php56.cgi php56.cgi

This symbolic link will work for webfaction. Check with your hosting provider the location of php56.cgi file path.

How to switch php version of your app in Webfaction

Submitted by ravi on Wed, 12/26/2012 - 04:45

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