Last modified: 2014-11-17 21:35:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54303, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52303 - Method of switching PHP versions from Vagrant CLI
Method of switching PHP versions from Vagrant CLI
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized enhancement
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 23:41 UTC by Tyler Romeo
Modified: 2014-11-17 21:35 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tyler Romeo 2013-07-30 23:41:40 UTC
Have method of switching PHP versions from the command line for testing purposes, e.g., switching between 5.3 and 5.4.
Comment 1 Andre Klapper 2013-09-11 22:45:29 UTC
[mass-moving from Tools>MediaWiki-Vagrant to separate product. See bug 54041. Filter bugmail on this comment.]
Comment 2 Tyler Romeo 2013-11-25 05:08:13 UTC
Note: HHVM also kind of falls under the scope of this bug.
Comment 3 Ori Livneh 2013-11-25 10:08:28 UTC
Setting aside Vagrant and Puppet for the moment: what is the proper way to specify the default PHP interpreter in Ubuntu?
Comment 4 Tyler Romeo 2013-11-25 22:08:22 UTC
apt-get allows you to specify the version of package to install. For example:

sudo apt-get install php5=5.5.3

Unfortunately it's only specific versions, meaning you can't do "php5>=5.4.9" or anything like that.

Also, you need to be using a version of Ubuntu that has the latest versions of PHP in the repository. (Only quantal and later have PHP 5.4, and only saucy has PHP 5.5.)
Comment 5 Bryan Davis 2014-07-11 23:38:17 UTC
phpenv (https://github.com/phpenv/phpenv) provides an interesting way to install and manage multiple php interpreters. I have used it in the past to setup build and test servers for PECL extensions and other projects where having multiple php builds is useful. I think it's what Travis-CI uses as well to provide php matrix builds.
Comment 6 Bryan Davis 2014-11-17 21:35:32 UTC
Bulk unassigning bugs from Ori.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links