Commit Graph

232 Commits

Author SHA1 Message Date
22227c2849 fix: admpass.sh hang, OLS httpd_config structure, listener maps
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled
Three fixes:

1. Replace admpass.sh calls with direct htpasswd writes — the script
   is interactive-only (no --password flag) and hangs forever in
   automation. Write admin htpasswd directly with openssl passwd.

2. Fix httpd_config.conf template — OLS requires virtualHost {} blocks
   with vhRoot/configFile, not bare include of vhconf.conf files.
   Add proper _backend virtualHost block, map it to Backend listener,
   use self-signed cert for Secure listener until real certs exist.

3. Fix addOLSListenerMap to only add maps to Default and Secure
   listeners (not Backend which is reserved for the admin panel).

4. Fix default PHP detection to read from wo.conf config instead
   of picking first installed version (which would prefer php74).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 13:08:03 +01:00
fa5bf17eb8 feat: convert WordOps from Nginx to OpenLiteSpeed + LSPHP + LSCache
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled
Complete conversion of the WordOps stack from Nginx + PHP-FPM to
OpenLiteSpeed + LSPHP + LSCache. This is a full rewrite across all 7
phases of the codebase:

- Foundation: OLS paths, variables, services, removed pynginxconfig dep
- Templates: 11 new OLS mustache templates, removed nginx-specific ones
- Stack: stack_pref, stack, stack_services, stack_upgrade, stack_migrate
- Site: site_functions, site, site_create, site_update
- Plugins: debug, info, log, clean rewritten for OLS
- SSL/ACME: acme.sh deploy uses lswsctrl, OLS vhssl blocks
- Other: secure, backup, clone, install script

Additional features:
- Debian 13 (trixie) support
- PHP 8.5 support
- WP Fort Knox mu-plugin integration (wo secure --lockdown/--unlock)
- --nginx CLI flag preserved for backward compatibility

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 18:55:16 +01:00
VirtuBox
2f45853067 Add php8.4 support 2024-12-03 14:08:19 +01:00
VirtuBox
c35e9e6fa3 Properly use mariadb-admin instead of mysqladmin 2024-06-07 16:51:53 +02:00
VirtuBox
a715ccfd06 Fix netdata upgrade and install, download latest wp-cli 2024-05-31 22:22:08 +02:00
VirtuBox
def2ddd393 Remove php72 and php73 2024-05-29 02:00:50 +02:00
VirtuBox
8ddaa7e98f Improve broken symlink removal 2024-04-21 17:37:30 +02:00
David Edwards
4e58a7d4f0 correcting mistaken code 2023-12-10 12:16:39 -07:00
David Edwards
b1876c1935 changing name for clarity 2023-12-10 11:49:49 -07:00
David Edwards
7a35419dd5 loading parent data 2023-12-08 16:11:19 -07:00
David Edwards
20d513f224 stubbed out subsite 2023-12-08 15:06:30 -07:00
VirtuBox
f699012b9b Add php8.3 support 2023-11-23 21:33:09 +01:00
VirtuBox
d393cb0649 Revert "Refactor site detection"
This reverts commit 4b71b4e679.
2023-08-21 16:55:38 +02:00
VirtuBox
26fbedb26f Add nginx requirements for site alias 2023-08-12 17:20:17 +02:00
VirtuBox
ce961e90a8 Refactor php versions management 2023-08-05 15:47:01 +02:00
VirtuBox
c46e5d3b11 Fix argument 2023-08-05 15:09:51 +02:00
VirtuBox
a93ec45ce4 Refactorise package detection 2023-08-05 14:57:04 +02:00
VirtuBox
4b71b4e679 Refactor site detection 2023-08-05 12:07:10 +02:00
Yogesh Beniwal
afd5d8ec8b Update WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT 2023-04-03 16:57:45 +08:00
VirtuBox
7139310aee Update wpce options 2023-01-21 13:45:13 +01:00
VirtuBox
319d1d0afc Fix php8.2 2022-12-11 16:30:40 +01:00
Janio Sarmento
a76d76ce5f #482: Add PHP 8.2 to WO 2022-12-10 10:37:20 -03:00
VirtuBox
1cb4911b42 Fix typo 2022-04-28 15:44:39 +02:00
VirtuBox
07abbcaad5 Fix WP_DEBUG doublon 2022-04-28 13:49:56 +02:00
VirtuBox
9743a60742 Set php8.0 as default 2022-01-25 16:29:13 +01:00
Janio Sarmento
555269decf #348: PHP8 2022-01-23 15:14:24 -03:00
VirtuBox
2dc3ed560f Fix zstd compression on Debian 2021-01-08 14:49:09 +01:00
VirtuBox
78cd626d75 Set php 7.4 as default php version
* `wo stack install` will check php version to install in  /etc/wo/wo.conf
2020-11-07 21:06:26 +01:00
VirtuBox
363dffa10d Update Redis-cache plugin configuration 2020-10-27 14:30:17 +01:00
VirtuBox
db8ee1261d Use Zstandard compression with mysqldump 2020-10-13 00:29:06 +02:00
VirtuBox
7050bd5894 Fix php8.0-cli issue 2020-10-12 10:20:03 +02:00
Hendy Irawan
1d69c1ecf7 Fix: GRANT works for all MySQL/MariaDB variants
Including AWS RDS MariaDB. See https://github.com/WordOps/WordOps/issues/263
2020-05-20 04:34:45 +07:00
VirtuBox
fd65e3c7e3 Add variable php version into site 2020-05-04 16:36:12 +02:00
VirtuBox
dce09ddadb update php stack check during site creating
* use the php version define in wo.conf
* define php7.3 as default
2020-01-28 13:31:18 +01:00
VirtuBox
4b45ac0c79 Use WOConf in stack_pref 2019-12-08 01:36:08 +01:00
VirtuBox
01ee8c0a13 v3.11.0 (#211)
- PHP 7.4 support
- Improved Webp images support with Cloudflare (Issue [#95](https://github.com/WordOps/WordOps/issues/95)). Nginx will not serve webp images alternative with Cloudflare IP ranges.
- Stack upgrade for adminer
- Check acme.sh installation and setup acme.sh if needed before issuing certificate
- Add `--ufw` to `wo stack status`
- Add Nginx directive `gzip_static on;` to serve precompressed assets with Cache-Enabler or WP-Rocket. (Issue [#207](https://github.com/WordOps/WordOps/issues/207))
- Previous `--php73` & `--php73=off` flags are replaced by `--php72`, `--php73`, `--php74` to switch site's php version
- phpMyAdmin updated to v4.9.2
- Adminer updated to v4.7.5
- Replace dot and dashes by underscores in database names (Issue [#206](https://github.com/WordOps/WordOps/issues/206))
- Increased database name length to 32 characters from domain name + 8 random characters
- typo error in motd-news script (Issue [#204](https://github.com/WordOps/WordOps/issues/204))
- Install Nginx before ngxblocker
- WordOps install/update script text color
- Issue with MySQL stack on Raspbian 9/10
- Typo error  (PR [#205](https://github.com/WordOps/WordOps/pull/205))
- php version in `wo debug` (PR [#209](https://github.com/WordOps/WordOps/pull/209))
- SSL certificates expiration display with shared wildcard certificates
2019-12-03 19:48:18 +01:00
VirtuBox
b771b2578e Updating configuration (#197)
#### Added

- [ACME] Display warning about sudo usage when issuing certificate with DNS API validation (require `sudo -E`)

#### Changed

- [ACME] Resolve domain IP over HTTPS with Cloudflare DNS Resolver
- [CORE] Cement Framework updated to v2.10.2
- [SITE] database name = 0 to 16 characters from the site name + 4 randomly generated character
- [SITE] database user = 0 to 12 characters from the site name + 4 randomy generated character
- [STACK] Improve sysctl tweak deployment

#### Fixed

- [SITE] https redirection missing on subdomains sites
- Issues with digitalocean mariadb repository
- Cement Framework output handler issues
- [CLEAN] check if Nginx is installed before purging fastcgi or opcache
2019-11-11 19:06:11 +01:00
VirtuBox
3388f2d95d Another fix for info 2019-10-30 04:30:14 +01:00
VirtuBox
61a2201e17 fix var_raw 2019-10-29 19:33:57 +01:00
VirtuBox
56a01c3f8d Fix wp_raw 2019-10-29 19:32:26 +01:00
VirtuBox
c859e3d4b7 Fix incorrect import 2019-10-29 19:28:55 +01:00
VirtuBox
b874616343 Refactor wp-config.php setup 2019-10-29 19:26:51 +01:00
VirtuBox
aa5f2eeb49 Refactor -le=renew 2019-10-29 18:47:52 +01:00
VirtuBox
72d6f33b7b Move removeconf into acme 2019-10-28 10:35:26 +01:00
VirtuBox
a0cba85156 Fix Logwatcher 2019-10-12 13:34:45 +02:00
VirtuBox
9d5072c751 Fix WordPress install error 2019-10-12 11:46:11 +02:00
VirtuBox
c1dc18360f Fix www added to subdomain 2019-10-12 11:09:35 +02:00
VirtuBox
404c5696ff Add conf rollback with Git 2019-10-03 15:44:23 +02:00
VirtuBox
1345ab723d Update requirements 2019-10-03 12:58:44 +02:00
VirtuBox
204469ae4c Fix vhostonly, improve git rollback
* prevent issues with wildcard certs
2019-10-02 17:23:07 +02:00