Assembleia da Républica Client Info

Version Date Notes By
0.1 2025-07-15 Fixed title and changed PHP version Bruno Borges
0.1 2024-10-02 Initial commit Bruno Borges

Necessary commands when updating

When updating AR, some commands are necessary to be executed regarding storage/ and bootstrap/cache/ permissions.

sudo chown -R ext_falves:apache storage/ bootstrap/cache/
sudo chmod -R 775 storage/ bootstrap/cache/
sudo ls -dZ /var/www/sgsi-backend/storage/
sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/sgsi-backend/storage(/.*)?"
sudo semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/sgsi-backend/bootstrap/cache/(/.*)?"
restorecon -Rv /var/www/sgsi-backend/storage/
restorecon -Rv /var/www/sgsi-backend/
restorecon -Rv /var/www/sgsi-backend/bootstrap/cache/
sudo systemctl restart httpd.service

Apache and PHP configuration

php.ini: sudo vi /etc/opt/remi/php84/php.ini

php-fpm: sudo vi /etc/opt/remi/php84/php-fpm.d/www.conf