fix: align LSPHP module list with actual OLS repo packages
LSPHP packages don't have separate gd, mbstring, xml, zip, soap, imap modules - these are bundled in lsphp-common. Updated module list to only include packages that exist in the OLS repository: common, curl, igbinary, imagick, intl, memcached, msgpack, mysql, opcache, pear, redis, snmp, sqlite3, tidy. Also update default PHP version to 8.5. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -79,7 +79,7 @@ keylength = "ec-384"
|
||||
[php]
|
||||
|
||||
### Default PHP version
|
||||
version = 8.3
|
||||
version = 8.5
|
||||
|
||||
[mariadb]
|
||||
|
||||
|
||||
2
install
2
install
@@ -773,7 +773,7 @@ wo_woconf() {
|
||||
echo -e '\n[letsencrypt]\n\nkeylength = "ec-384"' >>/etc/wo/wo.conf
|
||||
fi
|
||||
if ! grep -q "php" /etc/wo/wo.conf; then
|
||||
echo -e '\n[php]\n\nversion = 8.2' >>/etc/wo/wo.conf
|
||||
echo -e '\n[php]\n\nversion = 8.5' >>/etc/wo/wo.conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -141,12 +141,14 @@ class WOVar():
|
||||
|
||||
def generate_lsphp_modules(version_prefix, version_number):
|
||||
"""Generate LSPHP module package list for a given PHP version.
|
||||
LSPHP packages use lsphpXX- naming (no dot in version)."""
|
||||
LSPHP packages use lsphpXX- naming (no dot in version).
|
||||
Note: gd, mbstring, xml, zip, soap, imap are bundled in
|
||||
lsphp-common and do not have separate packages."""
|
||||
short_ver = version_number.replace('.', '')
|
||||
wo_module = ["common", "curl", "gd", "igbinary",
|
||||
"imagick", "imap", "intl", "mbstring", "memcached", "msgpack",
|
||||
"mysql", "opcache", "redis", "soap",
|
||||
"xml", "zip"]
|
||||
wo_module = ["common", "curl", "igbinary",
|
||||
"imagick", "intl", "memcached", "msgpack",
|
||||
"mysql", "opcache", "pear", "redis",
|
||||
"snmp", "sqlite3", "tidy"]
|
||||
|
||||
# lsphp packages: lsphpXX, lsphpXX-common, lsphpXX-curl, etc.
|
||||
php_modules = ["lsphp{0}".format(short_ver)]
|
||||
|
||||
Reference in New Issue
Block a user