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

Change PHP version to 8.2 and Drush to 11* #526

Merged
merged 1 commit into from
Jun 18, 2023

Conversation

Brain2life
Copy link
Contributor

Problem

The current implementation of the Drupal LAMP stack fails for PHP dependency versions 7.4 and Drush 10*

Related thread: #484

Changes

  • Changed PHP dependency library versions from 7.4 to 8.2
  • Changed Drush version from 10* to 11*

Screenshots

Testing

I tested the changes with:

  • Vagrant 2.3.4
  • Ansible 2.9.6

Feedback

Please let me know if there's anything else you'd like me to address or if there are any changes you'd like me to make. I'm open to suggestions!

@Brain2life Brain2life mentioned this pull request Feb 11, 2023
@voegelas voegelas mentioned this pull request Feb 16, 2023
@francesd919
Copy link

When I tried to change PHP version to 8.2 and drush version to 11

TASK [Install Apache, MySQL, PHP, and other dependencies.] *********************
fatal: [default]: FAILED! => {"cache_update_time": 1681338979, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'php8.2-common=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-cli=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-dev=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-gd=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-curl=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-json' 'php8.2-opcache=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-xml=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-mbstring=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-pdo' 'php8.2-mysql=8.2.4-1+ubuntu20.04.1+deb.sury.org+1' 'php8.2-apcu=5.1.22+4.0.11-2+ubuntu20.04.1+deb.sury.org+1' 'libapache2-mod-php8.2=8.2.4-1+ubuntu20.04.1+deb.sury.org+1'' failed: E: Package 'php8.2-json' has no installation candidate\n", "rc": 100, "stderr": "E: Package 'php8.2-json' has no installation candidate\n", "stderr_lines": ["E: Package 'php8.2-json' has no installation candidate"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage php8.2-json is a virtual package provided by:\n php8.2-phpdbg 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n php8.2-fpm 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n php8.2-cli 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n php8.2-cgi 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n libphp8.2-embed 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n libapache2-mod-php8.2 8.2.4-1+ubuntu20.04.1+deb.sury.org+1\n\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Package php8.2-json is a virtual package provided by:", " php8.2-phpdbg 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", " php8.2-fpm 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", " php8.2-cli 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", " php8.2-cgi 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", " libphp8.2-embed 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", " libapache2-mod-php8.2 8.2.4-1+ubuntu20.04.1+deb.sury.org+1", ""]}

@francesd919
Copy link

manala/ansible-roles#548

After reading the above thread I commented out the below line and the playbook ran successfully! Aparently PHP json extension is not required as json extension is now embedded in php starting from version 8.

- php8.2-json

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

Successfully merging this pull request may close these issues.

3 participants