« FAQ:ServiceUnavailable » : différence entre les versions

De WikiFr_dbSQWare
Aller à la navigation Aller à la recherche
mAucun résumé des modifications
mAucun résumé des modifications
Ligne 11 : Ligne 11 :


cat /var/log/httpd/access_log
cat /var/log/httpd/access_log


cat /var/log/php-fpm/error.log
cat /var/log/php-fpm/error.log
Ligne 17 : Ligne 16 :
cat /var/log/php-fpm/www-error.log
cat /var/log/php-fpm/www-error.log


Si vous avez une erreur de ce type :
Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed
Il faut vérifier  /etc/php-fpm.d/www.conf and updated the lines:
[..]
user = dbsqware
group = dba
[..]
listen.owner = dbsqware
listen.group = dba
listen.mode = 0660
[..]


chown -R dbsqware:dba /var/log/php-fpm /var/log/httpd
chown -R dbsqware:dba /var/log/php-fpm /var/log/httpd

Version du 17 mai 2024 à 12:50

Depuis quelques patch lors de la mise à jour des paquets php-fpm les droits saisies à l'origine sont ignorés

donc on ne peut plus ouvrir la page web de dbSQWare et vous avez l'erreur Service Unavailable

Il faut vérifier dans les log apache pour voir ce qui pose problème.

cat /var/log/httpd/error_log

cat /var/log/httpd/access_log

cat /var/log/php-fpm/error.log

cat /var/log/php-fpm/www-error.log

Si vous avez une erreur de ce type : Permission denied: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed

Il faut vérifier /etc/php-fpm.d/www.conf and updated the lines:

[..] user = dbsqware group = dba [..] listen.owner = dbsqware listen.group = dba listen.mode = 0660 [..]

chown -R dbsqware:dba /var/log/php-fpm /var/log/httpd

chmod -R g+rw /var/log/php-fpm /var/log/httpd

chmod -R g+s /var/log/php-fpm /var/log/httpd


systemctl restart php-fpm

systemctl restart httpd