geerlingguy / ansible-role-phpmyadmin

DEPRECATED Ansible Role - phpMyAdmin
https://galaxy.ansible.com/geerlingguy/phpmyadmin/
MIT License
42 stars 41 forks source link

[BUG] install lacks libapache2-mod-php7.0 #18

Closed ulvida closed 5 years ago

ulvida commented 5 years ago

On a debian stretch on a proxmox LXC, the installation is not completed: the http://<server>/phpmyadmin page shows the php code, not the phpmyadmin login.

This is due to the lack of the package libapache2-mod-php7.0 which is needed to have the php interpreter in apache.

On another hand, on debian buster, the php role fails when it tries to install php7.0 when default in buster is 7.3.

By the way, thanks a lot for all your good roles in ansile galaxy.

geerlingguy commented 5 years ago

@ulvida - This role assumes you've already set up apache with mod-php, or some other apache-php integration.

See the test playbook here, for example: https://github.com/geerlingguy/ansible-role-phpmyadmin/blob/master/molecule/default/playbook.yml

Also, for different PHP versions I usually use the geerlingguy.php-versions role which allows me to more easily specify a version like 7.1, 7.2, 7.3, etc. instead of having to override a bunch of default variables.