This guide installs a SuiteCRM stack with Apache, PHP, and MariaDB.
It supports Debian 10 to latest stable, Ubuntu LTS, and RHEL 9+ compatible systems.
- name: Install SuiteCRM
hosts: suitecrm
become: true
vars:
suitecrm_webroot: /var/www/suitecrm
tasks:
- name: Install dependencies on Debian/Ubuntu
apt:
name:
- apache2
- mariadb-server
- php
- php-mysql
- php-mbstring
- php-xml
- php-curl
- php-zip
- php-intl
- php-gd
- unzip
- wget
- curl
- git
state: present
update_cache: true
when: ansible_os_family == "Debian"
- name: Install dependencies on RHEL family
dnf:
name:
- httpd
- mariadb-server
- php
- php-mysqlnd
- php-mbstring
- php-xml
- php-curl
- php-zip
- php-intl
- php-gd
- unzip
- wget
- curl
- git
state: present
when: ansible_os_family == "RedHat"
- name: Enable and start required services
service:
name: "{{ item }}"
state: started
enabled: true
loop:
- "{{ 'apache2' if ansible_os_family == 'Debian' else 'httpd' }}"
- mariadb
- name: Create SuiteCRM web root
file:
path: "{{ suitecrm_webroot }}"
state: directory
mode: "0755"
- name: Download SuiteCRM package
get_url:
url: https://suitecrm.com/download/141/suite88/567995/suitecrm-8-8-0.zip
dest: /tmp/suitecrm.zip
mode: "0644"
- name: Extract SuiteCRM
unarchive:
src: /tmp/suitecrm.zip
dest: "{{ suitecrm_webroot }}"
remote_src: true
Any questions?
Feel free to contact us. Find all contact information on our contact page.