Skip to content

Chapter 4 - Drupal LAMP - php-apcu package instead of php7.4-apcu #447

@MrPOC

Description

@MrPOC

In Chapter 4, on page 67, while writing the playbook config to install the Drupal LAMP setup in the playbook there is one mistake that leads to the playbook failing.

One of the listed package that needs to be installed is php-apcu. But as we added the ondrej/php PPA repo, it installs the latest PHP version as a requirement (currently is 8.1). This leads to having 2 php config (PHP 7.4 and PHP latest) installed on the playbook target with the default one being the "PHP latest" setup (php command becomes php 8.1 in my setup).

Unfortunately, as this undesired PHP version does not have the required PHP modules installed, it leads to another task, much later in the playbook (Create Drupal project), to fail (as composer is invoked with the default php executable with missing modules so it fails).

This is easily fixed by replacing php-apcu by php7.4-apcu in the listed packages to be installed by apt in the "Install Apache, MySQL, PHP, and other dependencies." task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions