Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

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

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors