Tested on RHEL 9 and CentOS Stream 9.
sudo dnf install -y \
libxml2-devel libxslt-devel zlib-devel \
lz4 ripgrep curl
Download the latest release from GitHub, extract it, then:
cd PhiloLogic5-*/
./install.sh
Edit /etc/philologic/philologic5.cfg:
database_root = "/var/www/html/philologic5/"
url_root = "http://localhost/philologic5/"
Create the database directory:
sudo mkdir -p /var/www/html/philologic5
sudo chown -R $USER:$USER /var/www/html/philologic5
sudo systemctl enable philologic5-gunicorn
sudo systemctl start philologic5-gunicorn
sudo dnf install -y httpd mod_proxy_html
Add to /etc/httpd/conf.d/philologic5.conf:
ProxyTimeout 300
<Location "/philologic5">
ProxyPass unix:/var/run/philologic/gunicorn.sock|http://localhost/philologic5 flushpackets=on
ProxyPassReverse unix:/var/run/philologic/gunicorn.sock|http://localhost/philologic5
SetEnv no-gzip 1
SetEnv force-no-buffering 1
</Location>
Restart Apache:
sudo systemctl restart httpd
Make sure the correct permissions are set on the database directory — the user building databases needs write access.