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

RHEL8: keeps installing php7.2.4 #684

Open
abctaylor opened this issue May 2, 2023 · 1 comment
Open

RHEL8: keeps installing php7.2.4 #684

abctaylor opened this issue May 2, 2023 · 1 comment

Comments

@abctaylor
Copy link

Hello - after trying many hacks and tricks in previous issues submitted, this still appears to be very non-trivial to do, and the php_version setting is essentially useless. How can a different version of PHP be installed? No matter what you enter for php_version, it still chooses something different.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6
  • Module version: 8.2.0

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

  class { '::php::globals':
    php_version => '8.2',
    config_root => '/etc/php/8.2',
  }->class { '::php':
    manage_repos   => false,
    package_prefix => 'php82-php-',
    settings       => {
      'PHP/max_execution_time'  => '90',
      'PHP/max_input_time'      => '300',
      'PHP/memory_limit'        => '1G',
      'PHP/post_max_size'       => '1G',
      'PHP/upload_max_filesize' => '10G',
      'Date/date.timezone'      => 'Europe/London',
    },
  }

What are you seeing

PHP 7.2.4 gets installed, no matter what.

What behaviour did you expect instead

PHP 8.2 gets installed

@abctaylor
Copy link
Author

The issue is because the OS' default repo (e.g. rhel-8-for-x86_64-appstream-rpms) takes preference, and this has an older RPM than Remi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant