Bonsoir tout le monde, voilà ce soir j'ai décider de mettre en place un partage webdav sur mon serveur web apache.

J'ai donc chercher des informations sur le web vu que j'en est pas trouver ici. Mais je trouve de tout est sont contraire ce qui m'aide peut du coup, car elle sont trop vielle sinon ou pas adapter à ma fédora 14.

J'ai donc suivie une petit tuto que j'ai trouver sur le web.
    1- création du fichier /etc/httpd/conf.d/webdav.conf 

<IfModule mod_dav_fs.c>
    LimitXMLRequestBody 131072
 
    Alias /webdav "/home/httpd/webdav"
    <Directory /home/httpd/webdav>
        Dav On
        Options +Indexes
        IndexOptions FancyIndexing
        AddDefaultCharset UTF-8
        AuthType Basic
        AuthName "WebDAV Server"
        AuthUserFile /etc/httpd/webdav.users.pwd
        Require valid-user
        Order allow,deny
        Allow from all
    </Directory>
 </IfModule>

    2-Création du compte dav 

htpasswd -c /etc/httpd/webdav.users.pwd dav

    3-Entrer le Mot de passe et confirmer celui la. 

    4-Création des dossiers nécessaires 

mkdir -p /home/httpd/webdav

    5-Ont donne les droits qu'il faut 

chown apache:apache /home/httpd/webdav

    6-Redémarrage du serveur web

/etc/init.d/httpd restart

     7-Modification de SELinux, pour autorisé l'accès au dossier /home/httpd/webdav/

chcon -R -t httpd_sys_content_t /home/httpd/webdav/


Après ces étapes, depuis mon portable lui aussi sous fédora 14.
J'ai utilisée sous gnome, la fonction ce connecter à un serveur, pas de problème de connexion mon mot de passe est bien demander est il me monte bien mon webdav. Par contre, si je veux crée le moindre fichier dans cet espace, je me fait jetais.

Voilà pour aider le résultat du log des erreurs d'apache.
[root@servinus httpd]# tail error_log
[Sat Mar 05 21:18:05 2011] [error] [client 192.168.1.50] (13)Permission denied: Unable to create collection.  [403, #0]
[Sat Mar 05 21:32:03 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/nouveau fichier
[Sat Mar 05 21:32:03 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/nouveau fichier.  [403, #0]
[Sat Mar 05 21:32:03 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sat Mar 05 21:39:00 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/commande windows net
[Sat Mar 05 21:39:00 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/commande windows net.  [403, #0]
[Sat Mar 05 21:39:00 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
root@servinus httpd]#
 
Vous aurai une idée ?
C'est marqué problème de permissions...
ls -al /home/httpd/webdav
Il faut les droits pour apache.
Bonjour, MarbolanGos merci pour le coup de main.

Oui, j'ai bien vu sa.

Mais mes droits sur le dossier ont l'air bon.

J'ai teste en donnant les droits du dossier à l'utilisateur dav (crée lors de l'étape 2 et aussi de les données à apache le serveur web.

Mais dans ces deux cas, sa bloque quant même.
J'ai remis tout sa à apache regarde.
[root@servinus rilux]# ls -al /home/httpd/webdav/
total 8
drwxrwxr-x. 2 apache apache 4096  5 mars  20:42 .
drwxr-xr-x. 3 root   root   4096  5 mars  20:42 ..
J'ai ajouter le compte dav au groupe apache en cas ou, mais sa bloque quant même.
Bonjour,
et ls -al /home/httpd
[root@servinus rilux]# ls -al /home/httpd
total 12
drwxr-xr-x. 3 root   root   4096  5 mars  20:42 .
drwxr-xr-x. 6 root   root   4096  5 mars  22:06 ..
drwxrwxr-x. 2 apache apache 4096  5 mars  20:42 webdav
[root@servinus rilux]# 
Par contre, je vois que lors de la création de l'user dav, il ma aussi crée un dossier dav sur home.

/home/dav existe également, ces normal qu'il est aussi un compte système classique ? Je pensé que sa devais être que /home/httpd/webdav sont dossier perso à cet utilisateur spécial webdav.

Voilà un peut plus d'info sur mes log.

Quant je, veux copier un fichier ou dossier sur mon webdav.
[root@servinus rilux]# tail -30 /var/log/httpd/error_log
[Sun Mar 06 18:24:43 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sun Mar 06 18:24:51 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/Install webDAV
[Sun Mar 06 18:24:51 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/Install webDAV.  [403, #0]
[Sun Mar 06 18:24:51 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sun Mar 06 18:26:02 2011] [error] [client 192.168.1.50] (13)Permission denied: Unable to create collection.  [403, #0]
[Sun Mar 06 18:30:52 2011] [notice] SIGHUP received.  Attempting to restart
[Sun Mar 06 18:30:52 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 06 18:30:52 2011] [notice] Digest: done
[Sun Mar 06 18:30:52 2011] [notice] SSL FIPS mode disabled
[Sun Mar 06 18:30:53 2011] [error] avahi_entry_group_add_service_strlst("host1") failed: Invalid host name
[Sun Mar 06 18:30:53 2011] [notice] Apache/2.2.17 (Unix) DAV/2 PHP/5.3.5 mod_ssl/2.2.17 OpenSSL/1.0.0d-fips configured -- resuming normal operations
[Sun Mar 06 18:31:12 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/message d'erreur
[Sun Mar 06 18:31:12 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/message d'erreur.  [403, #0]
[Sun Mar 06 18:31:12 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sun Mar 06 18:31:19 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/Install webDAV
[Sun Mar 06 18:31:19 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/Install webDAV.  [403, #0]
[Sun Mar 06 18:31:19 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sun Mar 06 18:31:27 2011] [error] [client 192.168.1.50] (13)Permission denied: Unable to create collection.  [403, #0]
[Sun Mar 06 18:41:23 2011] [notice] SIGHUP received.  Attempting to restart
[Sun Mar 06 18:41:23 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 06 18:41:23 2011] [notice] Digest: done
[Sun Mar 06 18:41:23 2011] [notice] SSL FIPS mode disabled
[Sun Mar 06 18:41:23 2011] [error] avahi_entry_group_add_service_strlst("host1") failed: Invalid host name
[Sun Mar 06 18:41:23 2011] [notice] Apache/2.2.17 (Unix) DAV/2 PHP/5.3.5 mod_ssl/2.2.17 OpenSSL/1.0.0d-fips configured -- resuming normal operations
[Sun Mar 06 18:41:33 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/CV_ERIC_SIRVAIN.pdf
[Sun Mar 06 18:41:33 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/CV_ERIC_SIRVAIN.pdf.  [403, #0]
[Sun Mar 06 18:41:33 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
[Sun Mar 06 18:42:39 2011] [error] [client 192.168.1.50] File does not exist: /home/httpd/webdav/CV_ERIC_SIRVAIN.pdf
[Sun Mar 06 18:42:39 2011] [error] [client 192.168.1.50] Unable to PUT new contents for /webdav/CV_ERIC_SIRVAIN.pdf.  [403, #0]
[Sun Mar 06 18:42:39 2011] [error] [client 192.168.1.50] (13)Permission denied: An error occurred while opening a resource.  [500, #0]
2-Création du compte dav
htpasswd -c /etc/httpd/webdav.users.pwd dav

Je vois pas comment ça t'aurais créer un /home/dav. Tu as fait un adduser quelque part ?
Attend je vais pas mal de chose hier soir mais bon un petit historique des commandes devrais régler ce problème.

Oui, pour ajouter le user dav crée en étape 2 au groupe apache.
Car j'ai pensé que sa pouvez bloquer à cause de sa au niveau des droits d'accès. J'aurai peut être pas du, mais bon, ses pas pire que avant.
 910  vim webDAV.conf
  911  ls
  912  htpasswd -c /etc/httpd/webdav.users.pwd dav
  913  mkdir -p /home/httpd/webdav
  914  /etc/init.d/httpd restart
  915  cat monweb.conf
  916  vim monweb.conf
  917  /etc/init.d/httpd restart
  918  cd /var/log/
  919  ls
  920  cd httpd/
  921  ls
  922  ls -al
  923  tail error_log
  924  ls /home/httpd/
  925  ls -al
  926  ls -al /home/httpd/
  927  ls -al /home/httpd/webdav/
  928  ls
  929  cd /etc/httpd/
  930  ls
  931  cd conf
  932  ls
  933  vim httpd.conf
  934  ls
  935  cd ../
  936  ls
  937  cd conf.d/
  938  ls
  939  vim webDAV.conf 
  940  /etc/init.d/httpd restart
  941  chcon -R -t httpd_sys_content_t /rep/donnees/apache /home/httpd/webdav/
  942  chcon -R -t httpd_sys_content_t /home/httpd/webdav/
  943  ps -ef | grep httpd
  944  ls -al
  945  cd /httpd
  946  cd httpd/
  947  ls
  948  ls -al
  949  tail error_log
  950  tail -30 error_log
  951  tail -40 error_log
  952  tail -10 error_log
  953  ps -ef | grep httpd
  954  tail error_log
  955  chown apache:apache /home/httpd/webdav
  956  adduser dav apache
  957  adduser dav:apache
  958  adduser --groups apache dav
  959  cd /etc
  960  ls
  961  ls group
  962  cat group
  963  tail error_log
  964  cd /var/log/
  965  tail error_log
  966  cd httpd/
  967  tail error_log
  968  tail -30 error_log
  969  /etc/init.d/httpd restart
  970  tail -30 error_log
  971  chown apache:apache /home/httpd/webdav
  972  chown dav:dav /home/httpd/webdav
  973  /etc/init.d/httpd restart
  974  tail -30 error_log
  975  ls -al /home/httpd/webdav
  976  tail -30 error_log
  977  ls /home
  978  ls -al /home
  979  ls -al /home/dav
  980  ls -al /home/httpd/
  981  ls -al /home/httpd/webdav/
  982  chmod 775 /home/httpd/webdav
  983  ls -al /home/httpd/webdav
  984  chown apache:apache /home/httpd/webdav
  985  /etc/init.d/httpd restart
  986  tail -30 error_log
  987  halt now
  988  exit
  989  chown apache:apache /home/httpd/webdav/
  990  ls -al /home/httpd/webdav/
  991  ll
  992  /home/httpd/webdav/
  993  ll /home/httpd/webdav/
  994  ll /home/httpd/webdav
  995  ll /home/httpd/
  996  ls -al /home/httpd/webdav/
  997  tail /var/log/httpd/error_log
  998  tail -30 /var/log/httpd/error_log
  999  chown apache:apache /home/httpd/webdav
 1000  /etc/init.d/httpd reload
 1001  tail -30 /var/log/httpd/error_log
 1002  ls -al /home/httpd
 1003  chown apache:apache /home/httpd
 1004  /etc/init.d/httpd reload
 1005  tail -30 /var/log/httpd/error_log
 1006  history
[root@servinus rilux]# 
Voilà tout ce que j'ai fait.
Configurer webdav en écriture (methodes PUT et MKCOL)

ex :
   
<Directory /var/www/webdav>
DAV On        
AuthType Basic           
AuthName "test"   
AuthUserFile /etc/apache2/passwd.dav   
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>           
Require user test
</Limit>

Merci FToulouse, je testerai sa ce weekend, car j'ai quitter mon serveur qui est en Ariège (est moi, je bosse sur Toulouse en semaine).

D'ailleurs, ces cool qu'un Toulousain m'apporte peut être la bonne réponse, en tout cas merci.
J'ai un webdav qui tourne au boulot, je te tiens au courant.