Files
FreshRSS/docs/en/admins/02_Prerequisites.md
Alexandre Alapetite ea646d2bde Use PHP 8.4+ \Dom classes and functions (#9567)
Currently, SimplePie uses legacy DOMDocument parsing, which outputs potentially problematic HTML, not correctly sanitised.
This breaks the assumption that one can use something like `<div><!-- some HTML sanitized from SimplePie --></div>`.

```
--- Expected
+++ Actual
@@ @@
 '<ul>
-    <li><div></div></li>
+    <li><div>
     <li>Item</li>
-</ul>'
+</div></li></ul>'
```

When shown in a compliant Web browser, several tags will be wrongly closed, breaking the layout of the client.

This PR patches SimplePie to use the modern parser and code syntax, while maintaining a best-effort polyfill for legacy PHP versions < 8.4.

Depends on:

SimplePie: Upgrade to PHPStan 2
* https://github.com/FreshRSS/simplepie/pull/97
* https://github.com/simplepie/simplepie/pull/939
* https://github.com/simplepie/simplepie/pull/1019

SimplePie: Use PHP 8.4+ \Dom classes and functions
* https://github.com/FreshRSS/simplepie/pull/98
* https://github.com/simplepie/simplepie/issues/1021

SimplePie: Add unit test for HTML5 sanitizing compliance
* https://github.com/simplepie/simplepie/pull/1022

SimplePie: Remove obsolete xml_is_sane and XMLReader fallback
* https://github.com/simplepie/simplepie/pull/1023

CssXPath: Add support for case insensitivity
* https://github.com/phpgt/CssXPath/pull/256

fix https://github.com/FreshRSS/FreshRSS/issues/5201
fix https://github.com/FreshRSS/FreshRSS/issues/6830
fix https://github.com/FreshRSS/FreshRSS/issues/6831

~5% faster for HTML sanitising.
Remove SimpleXML. Remove XMLReader.
2026-11-19 23:17:04 +01:00

2.4 KiB
Raw Permalink Blame History

Server requirements

FreshRSS is a web application. This means you’ll need a web server to run it. FreshRSS requirements are really low, so it should run on most shared host servers, or any old computer you happen to have on hand.

You need to verify that your server can run FreshRSS before installing it. If your server has the proper requirements and FreshRSS does not work, please contact us to find a solution.

Software Recommended Also Works With
Web server Apache 2.4 nginx, lighttpd
PHP PHP 8.4+ PHP 8.2+; FreshRSS 1.30.4: PHP 8.1+
PHP modules Required: libxml, cURL, JSON, PDO_MySQL, PCRE and ctype.
Required (32-bit only): GMP
Recommended: Zlib, mbstring, iconv, ZipArchive
For the whole modules list see Dockerfile
Database PostgreSQL 10+ SQLite, MariaDB 10.6+, MySQL 8.0+
Browser Firefox Chrome, Opera, Safari, or Edge

Getting the appropriate version of FreshRSS

FreshRSS has two different release channels:

Rolling release

If you want a rolling release with the newest features and security fixes, or want to help testing or developing the next release, you can use the edge branch.

In case of bug on this branch, they are quickly resolved, since this branch is actively used.

Branch activity can be followed for instance via the branch RSS feed.

Docker releases are available for this branch ; and updating via git or ZIP is also available, both manually and through the Web interface.

Versioned release

If you prefer fewer updates, you can use the latest branch. It is more stable but at the price of less security and more known bugs, as fixes are not backported to older versions. New versions are published a few times a year. See the latest release and the list of releases.

Versioned releases are not released on a set schedule. Rather, they are released whenever we consider that our goal for new features is reached.