Skip to content

Commit 842cde0

Browse files
Merge pull request #13854 from nextcloud/jtr/fix-admin-php-sysvsem-and-xml
fix(PHP): Add missing `sysvsem` extension and clarify xml extension
2 parents 23702d0 + 76bac3e commit 842cde0

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

admin_manual/installation/php_configuration.rst

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,20 @@ The following PHP modules **must** be installed and enabled for Nextcloud Server
3838
- `fileinfo` (included with PHP)
3939
- `filter` (only on Mageia and FreeBSD)
4040
- `GD`
41-
- `libxml` (requires Linux package `libxml2` version >= 2.7.0)
41+
- `xml` (provides SimpleXML, XMLReader and XMLWriter; requires Linux package `libxml2` version >= 2.7.0)
4242
- `mbstring`
4343
- `OpenSSL` (included with PHP)
4444
- `posix`
4545
- `session` (included with PHP)
46-
- `SimpleXML`
47-
- `XMLReader`
48-
- `XMLWriter`
4946
- `zip`
5047
- `zlib`
5148

49+
.. note::
50+
The PHP "xml" extension is commonly packaged as `php-xml` or shown as `libxml` by OS package managers. This
51+
extension provides the underlying libxml2 bindings and exposes SimpleXML, XMLReader and XMLWriter. Ensure the
52+
corresponding `php-xml` (or distribution-specific) package is installed so that SimpleXML, XMLReader and XMLWriter
53+
are available to PHP.
54+
5255
The `ctype`, `fileinfo`, and `OpenSSL` modules are generally included and enabled in PHP by default. Often
5356
some of the other required modules are automatically installed by OS distribution package managers.
5457

@@ -81,6 +84,7 @@ These modules are not required, but are highly recommended to improve functional
8184
bcrypt will be used if Argon2 is unavailable, but if passwords were previously hashed with Argon2
8285
(such as when migrating an existing Nextcloud Server installation to a new server environment) and this
8386
module is missing, accounts will not be able to log-in).
87+
- `sysvsem`: Enables System V semaphores used by Nextcloud to coordinate preview generation across PHP processes. Recommended; if missing, previews still work but may be less reliable under heavy load.
8488

8589
-------------------------------
8690
Recommended PHP Caching Modules
@@ -206,7 +210,9 @@ PHP Module Quick Reference Table
206210
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
207211
| GD || | | Image processing |
208212
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
209-
| libxml || | | XML parsing (libxml2 >= 2.7.0) |
213+
| xml || | | XML parsing (libxml2 >= 2.7.0) — provides the |
214+
| | | | | php 'xml' extension which exposes SimpleXML, |
215+
| | | | | XMLReader and XMLWriter |
210216
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
211217
| mbstring || | | Multibyte character handling |
212218
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
@@ -216,12 +222,6 @@ PHP Module Quick Reference Table
216222
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
217223
| session || | | Session support |
218224
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
219-
| SimpleXML || | | Simple XML parsing |
220-
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
221-
| XMLReader || | | XML reading |
222-
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
223-
| XMLWriter || | | XML writing |
224-
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
225225
| zip || | | Zip file handling |
226226
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
227227
| zlib || | | Compression and decompression |
@@ -230,6 +230,9 @@ PHP Module Quick Reference Table
230230
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
231231
| sodium | || | Argon2 password hashing |
232232
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
233+
| sysvsem | || | System V semaphore support used to coordinate |
234+
| | | | | preview generation across PHP processes. |
235+
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
233236
| ldap | | || LDAP integration |
234237
+-------------------+----------+-------------+--------------------+-----------------------------------------------+
235238
| smbclient | | || SMB/CIFS integration |

0 commit comments

Comments
 (0)