Skip to content

This ansible role fixes the mcrypt activation on ubuntu after using geerlingguy.php with php5-mycrypt

Notifications You must be signed in to change notification settings

ssachtleben/ansible-role-apache-mcrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role Apache Mcyrpt

Why this role?

On Ubuntu its not enough to install the mcrypt module for apache. It also needs activated. So if you use: https://github.com/geerlingguy/ansible-role-php/ with this configuration:

  - role: geerlingguy.php
    php_packages:
      - php5
      - php5-common
      - php5-mcrypt
      - php5-curl
      - php5-gd

Applications on Ubuntu which using mcrypt will crash with the following error message since mcrypt needs to be activated:

PHP Fatal error: Call to undefined function mcrypt_module_open()

How to use

  • Add this role via ansible-galaxy install ssachtleben.apache-mcrypt
  • Configure it in your role

Example configuration

Here is a working example configuration after adding the role:

  - role: geerlingguy.php
    php_packages:
      - php5
      - php5-common
      - php5-mcrypt
      - php5-curl
      - php5-gd

  - role: ssachtleben.apache-mcrypt

License

Apache Version 2.0

About

This ansible role fixes the mcrypt activation on ubuntu after using geerlingguy.php with php5-mycrypt

Resources

Stars

Watchers

Forks

Packages

No packages published