Oefenweb / ansible-wordpress

Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)
MIT License
78 stars 35 forks source link

PHP7 support? #53

Closed betrcode closed 6 years ago

betrcode commented 7 years ago

I am getting "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." when installing Wordpress using this role on Ubuntu 16.04 with PHP 7.0.

Could it be that Wordpress is not installed to support PHP7? Do you know of a workaround?

tersmitten commented 7 years ago

We use this roles ourselves with PHP 7.1, so it should work. What this role does not do is install PHP, MySQL et cetera,so you need to make sure that this is done before calling this roles. This is how our production playbook looks like:

---
- hosts: tiers-production-wordpress
  roles:
    - limits
    - percona-client
    - percona-server
    - percona-toolkit
    - common-schema
    - innotop
    - mydumper
    - mydumper-backup

    - duplicity
    - duply
    - duply-backup

    - apache-mod-php-71
    - php-cli-ondrej
    - composer

    - memcached
    - netcat

    - haproxy

    - adminer
    - zend-opcache-dashboards
    - phpmemcachedadmin

   - wordpress
   - mainwp-crons

I hope this gives some insight.

betrcode commented 7 years ago

Ok, thanks, I will give it another shot!

tersmitten commented 6 years ago

Closing due to inactivity.