Setting PHP version for a custom vhost (5.4 for testing Drupal 8)

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by ar-jan on March 8, 2014 at 7:34pm

I'm testing Drupal 8 as a custom app under /var/www using a custom vhost (this nginx_wp_include.conf example https://gist.github.com/omega8cc/1677835).

Recently php 5.4 was enforced for D8, so I'd like to set this version for the D8 vhost. How can we do that?

And by the way, is there a better vhost example than the wordpress one that I could use for a Drupal 8 install?

Comments

So it looks like since BOA

Posted by ar-jan on April 8, 2014 at 1:20pm

So it looks like since BOA 2.2 this should be easy, anything under /var/www/www54 should run 5.4?

I have php 5.3 and 5.4 installed, using _PHP_MULTI_INSTALL="5.3 5.4" option. The service exists (/etc/init.d/php54-fpm) and is started.

I've place a Drupal 8 checkout in /var/www/www54/drupal8 and reloaded/restarted nginx and php54-fpm. When I visit the site I still get "Your PHP installation is too old. Drupal requires at least PHP 5.4.2."

Any hints please?

BOA

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /