Comments (3)
@gheydon - The only difficulty is it's really hard to support older versions when using any of the repositories with modern versions, mostly because all the way up the chain, nobody really wants to support really old versions.
The best solution if not using Drupal VM would be to not use this role, but to use the PHP role directly, and use the system PHP packages, which include PHP 5.5.x (Ubuntu 14.04) or PHP 5.3.x (CentOS 6). I think you could even get 5.4.x if using system packages on CentOS 7.
I don't think I'll be able to add support for < 5.6 on Drupal VM though, just because it would be a lot of extra work to make it possible to use [5.6|7.0|7.1] and any other older version.
It's already difficult enough to support both 5.6 and 7.1 :)
from ansible-role-php-versions.
Actually, come to think of it, you may be able to hack around the variables this role defines (e.g. php_packages
) and use an OS with a reasonably-old default version (e.g. CentOS 6 or 7), and get the version you need using system packages.
Definitely not supported, but it should work. You can find the package names (most are the same on the CentOS / RHEL side) by searching internet tutorials for 'install PHP on CentOS [version]'
from ansible-role-php-versions.
I have been looking a bit more, and found that we can build from source, but it is having some problems with the build dependencies. ie. bison needs to be version 2.7 not 3.0 so for 5.5 (i think at this stage) installing the correct version of bison and then building would work. You could then just have some docs which contains the variables that need to be added to the config to get it going. But this would be more a drupalvm docs addition but there is some work that would need to be done with ansible-role-php to allow it, and then the docs additions for installing different versions of php and different os's
from ansible-role-php-versions.
Related Issues (20)
- Add Debian 9 on Molecule HOT 2
- Task adding the Ondrej Sury's apt key tries to download it every time HOT 5
- It would be nice for upgrades, if you could note PHP versions that no longer need to be installed HOT 2
- Php 8.0 install error caused by php-json HOT 10
- Role is not present in the Ansible Galaxy HOT 3
- ansible-lint still sees errors HOT 1
- using php_version: '7.4' installs php 8.0 HOT 4
- The goal of this role!? HOT 1
- php8.0-json is part of PHP HOT 6
- [ERROR] Could not find the requested service php7.4-fpm HOT 4
- Fails on RHEL 8 when attempting to enable the PowerTools repo HOT 6
- Question: Is it possible to install 2 or more PHP versions at the same time? HOT 2
- please add dnf module reset -y php HOT 2
- The `php_install_recommends` value is created and not honoured. HOT 3
- Ensure dnf-plugins are installed on CentOS 8+. HOT 1
- Using 7.1 as php_version installs 8.2 and some 7.1 HOT 2
- Debian 12 php8.1-yaml unavailble HOT 2
- keep php versions already installed HOT 2
- adding modules HOT 3
- Failed to update apt cache
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-php-versions.