Attention : avant de modifier des fichiers, toujours penser à les sauvegarder !
1 - Logs de la partie admin du syno (interface de gestion http://ip_nas:5000/ )
a) utiliser un éditeur et ouvrir le fichier : /usr/syno/apache/conf/httpd.conf-sys
B) rechercher :
# ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # #ErrorLog /var/log/httpd-sys.log ErrorLog /dev/null # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel debug
c) décommenter ou remplacer la ligne:
#ErrorLog /var/log/httpd-sys.log
par
ErrorLog /var/log/httpd-sys.log
d) commenter ou remplacer la ligne:
ErrorLog /dev/null
par
#ErrorLog /dev/null
e) modifier la ligne: LogLevel debug en fonction du niveau des logs souhaité (ici debug : affiche vraiment tout, mais en général le niveau warn suffit)
f) sauvegarder le fichier modifié
g) relancer le serveur web partie admin : /usr/syno/etc/rc.d/S97apache-sys.sh restart
Maintenant effectuer quelques actions dans l'interface de gestion (par exemple: demander un fichier inexistant http://ip_nas:5000/tada.html)
puis consulter les messages du serveur dans le fichier de logs /var/log/httpd-sys.log
2 - Logs de la partie web du syno (interface web http://ip_nas/ )
La manipulation est quasiment identique : il faut simplement changer de fichier...
a) utiliser un éditeur et ouvrir le fichier : /usr/syno/apache/conf/httpd.conf-user
B) rechercher :
# ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost> # container, that host's errors will be logged there and not here. # #ErrorLog /var/log/httpd-user.log ErrorLog /dev/null # # LogLevel: Control the number of messages logged to the error_log. # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn
c) décommenter ou remplacer la ligne:
#ErrorLog /var/log/httpd-user.log
par
ErrorLog /var/log/httpd-user.log
d) commenter ou remplacer la ligne:
ErrorLog /dev/null
par
#ErrorLog /dev/null
e) modifier la ligne: LogLevel warn en fonction du niveau des logs souhaité
f) sauvegarder le fichier modifié
g) relancer le serveur web partie publique : /usr/syno/etc/rc.d/S97apache-user.sh restart
Maintenant effectuer quelques actions sur le serveur http (par exemple: demander un fichier inexistant http://ip_nas/tada.html)
puis consulter les messages du serveur http dans le fichier de logs /var/log/httpd-user.log
Normalement les fichiers seront créés automatiquement. Le reboot du NAS n'est pas obligatoire!
voila :hi:


Aide
Retour en haut
Multi-citation








