Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-egg/ansible-lomp-wp
https://github.com/code-egg/ansible-lomp-wp
ansible hacktoberfest lomp openlitespeed wordpress
Last synced: about 20 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-egg/ansible-lomp-wp
- Owner: Code-Egg
- License: mit
- Created: 2020-08-31T09:13:47.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-05T13:37:35.000Z (about 1 year ago)
- Last Synced: 2023-10-05T15:09:16.518Z (about 1 year ago)
- Topics: ansible, hacktoberfest, lomp, openlitespeed, wordpress
- Language: Jinja
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress on Ubuntu 24.04 LOMP
[![Build Status](https://travis-ci.com/Code-Egg/ansible-lomp-wp.svg?branch=master)](https://github.com/Code-Egg/ansible-lomp-wp)This playbook will install a WordPress website on top of a LOMP environment (Linux, OpenLiteSpeed, MySQL and PHP) on an Ubuntu machine. A virtualhost will be created with the options specified in the vars/default.yml variable file.
## Running this Playbook
### 1. Install Ansible
1. Install ansible on center server
```
apt update && apt install ansible -y
```
2. Add SSH key to the client server so center server can ssh in without password
### 2. Obtain the playbook
Download the git repo
```
git clone https://github.com/Code-Egg/ansible-lomp-wp.git
cd ansible-lomp-wp
```
### 3. Customize Options
Update `example.com` from inventory to your client server's domain/IP
```
vim inventory
```Update SQL, Domain, Port from vars/default.yml
```
vim vars/default.yml
```
```yml
---
# System Settings
owner: www-data
group: www-data#PHP Settings
php_version: "83"
php_dversion: "8.3"
php_opt_modules: [ 'lsphp{{ php_version }}-curl', 'lsphp{{ php_version }}-imagick', 'lsphp{{ php_version }}-intl', 'lsphp{{ php_version }}-opcache', 'lsphp{{ php_version }}-memcached', 'lsphp{{ php_version }}-tidy' ]
php_memory_limit: "256"
php_max_execution_time: "60"
php_upload_max_filesize: "256M"
php_post_max_size: "256M"#MySQL Settings
mysql_root_password: "mysql_root_password"
mysql_db: "wordpress"
mysql_user: "egguser"
mysql_password: "password"#HTTP Settings
http_host: "your_domain"
http_port: "80"
https_port: "443"
doc_root: "/var/www/{{ http_host }}"
ssl_key: "/usr/local/lsws/admin/conf/webadmin.key"
ssl_crt: "/usr/local/lsws/admin/conf/webadmin.crt"
```
### 4. Run ansible playbook
```command
ansible-playbook playbook.yml
```