Bonjour,
Je souhaite copier l'ensemble de l'arborescence /var/www/* vers /home/data/www/* et utiliser /home/data/www/html comme DocumentRoot
Mon problème est que quand je démarre httpd avec SeLinux actif en pointant sur /home/data/www/html j'ai l'erreur suivante :
$ sudo service httpd start
Démarrage de httpd : Syntax error on line 1 of /etc/httpd/conf.d/0httpd.conf:
DocumentRoot must be a directory
[ÉCHOUÉ]
Ca fonctionne si SELinux est inactif.
Voici ce que j'obtiens en comparant les deux arborescences :
# ls -ldZ /var/www/*
drwxr-xr-x. root root system_u:object_r:httpd_sys_script_exec_t:s0 /var/www/cgi-bin
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www/error
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www/html
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /var/www/icons
# ls -ldZ /home/data/www/*
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /home/data/www/cgi-bin
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /home/data/www/error
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /home/data/www/html
drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 /home/data/www/icons
Mon fichier /etc/httpd/conf.d/0httpd.conf (c'est dur de faire plus simple)
DocumentRoot /home/data/www/html
<Directory /home/data/www/html>
</Directory>
Any help or any clue ?