Bonjour,
J'ai un problème depuis hier après-midi et j'ai beau le tourner et le retourner dans ma tête je capte pas pourquoi...
Pour mon boulot, j'ai du installer sur une machine CentOS 5 un serveur Apache et une interface web en PHP servant à configurer un soft tournant sur le serveur. Pour que la configuration puisse se faire correctement, je dois donner les droits en écriture à Apache sur un dossier spécifique. J'ai donc fait :
[root@mhgsuplanapp01p nagiosql]# chown -R apache:nagios .
[root@mhgsuplanapp01p nagiosql]# ll -a
total 160
drwxrwxr-x 5 apache nagios 4096 mai 14 16:33 .
drwxr-xr-x 89 root root 12288 mai 15 04:04 ..
drwxrwxr-x 4 apache nagios 4096 mai 14 14:42 backup
-rw-rw-r-- 1 apache nagios 36562 mai 14 15:56 commands.cfg
-rw-rw-r-- 1 apache nagios 1000 mai 14 15:56 contactgroups.cfg
-rw-rw-r-- 1 apache nagios 4037 mai 14 15:56 contacts.cfg
-rw-rw-r-- 1 apache nagios 939 mai 14 15:56 contacttemplates.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 hostdependencies.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:44 hostescalations.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 hostextinfo.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 hostgroups.cfg
drwxrwxr-x 2 apache nagios 4096 mai 14 16:33 hosts
-rw-rw-r-- 1 apache nagios 0 mai 14 14:44 hosttemplates.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 servicedependencies.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 serviceescalations.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:44 serviceextinfo.cfg
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 servicegroups.cfg
drwxrwxr-x 2 apache nagios 4096 mai 14 14:42 services
-rw-rw-r-- 1 apache nagios 0 mai 14 14:43 servicetemplates.cfg
-rw-rw---- 1 apache nagios 0 mai 14 16:33 test
-rw-rw-r-- 1 apache nagios 0 mai 14 14:44 timeperiods.cfg
Mais lors de l'écriture des fichiers de configuration, une erreur remonte en m'indiquant que les fichiers ne sont pas inscriptibles.
Je rate quelque chose mais je suis incapable de dire quoi...
Au commencement, nous sommes tous des noobs...