Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Amazon Linux 2 handle PHP7.4 & 8.0 with amazon-linux-extras #625

Open
NapoSky opened this issue Jun 24, 2021 · 0 comments
Open

Make Amazon Linux 2 handle PHP7.4 & 8.0 with amazon-linux-extras #625

NapoSky opened this issue Jun 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@NapoSky
Copy link

NapoSky commented Jun 24, 2021

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.15.3-1.el7
  • Ruby: 2.0.0.648-36.el7
  • Distribution: Amazion Linux release 2 (Karoo)
  • Module version: latest (f89846c)

How to reproduce (e.g Puppet code you use)

class profile::php::fpm_web (
  String $php_version = '7.4'
) {
 class { '::php::globals':
   php_version => $php_version
 }

 class { '::php':
   ensure       => latest,
   manage_repos => true,
   fpm          => true,
   dev          => true,
   composer     => true,
   pear         => true,
   phpunit      => false,
 }
}

What are you seeing

Based on actual code, Amazon Linux 2 is handled by Redhat repositories (RAMI). When I want PHP7.4, rami repos are installed, PHP5.6 is installed instead of 7.4. PHP7.4 packages are not present in yum list.

What behaviour did you expect instead

Use amazon-linux-extras official repositories to handle PHP7.4 and PHP8.0.
=> https://techviewleo.com/install-php-7-on-amazon-linux/

Output log

PHP 5.6.40 (cli) (built: Sep 29 2020 11:19:06)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Any additional information you'd like to impart

It's a pity to use a custom repository when Amazon Linux 2 provide official ones which are maintained and operational. It could be great to use it in this case.

@kenyon kenyon changed the title Make Amazon Linux 2 handles PHP7.4 & 8.0 with amazon-linux-extras Make Amazon Linux 2 handle PHP7.4 & 8.0 with amazon-linux-extras Jun 26, 2021
@kenyon kenyon added the enhancement New feature or request label Jun 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants