Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Fokke Nauta" Newsgroups: comp.lang.python Subject: Re: Installing WebDAV server Date: Thu, 1 Sep 2011 12:30:43 +0200 Lines: 80 Message-ID: <9c9578F5eaU2@mid.individual.net> References: <9c4trjFcfmU1@mid.individual.net><9c6n4oFsnbU1@mid.individual.net> X-Trace: individual.net ZnMdvq20v5As2I8fArakXwm3Vercnr3lLKHYur7f3vy5W2wuVa Cancel-Lock: sha1:7DViTjhRHe87YVa6L0PZq2O1l7k= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-RFC2646: Format=Flowed; Original Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12558 "Dennis Lee Bieber" wrote in message news:mailman.643.1314851358.27778.python-list@python.org... > On Wed, 31 Aug 2011 14:18:00 +0200, "Fokke Nauta" > declaimed the following in > gmane.comp.python.general: > >> >> I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer >> >> In this file it says: >> "# Auth Database Table, Must exists in database prior to firstrun >> dbtable=webDav >> >> # Create User Database Table and Insert system user" >> >> I created in MySQL a database called webDav. >> I can create a table called User, but how many fields? >> > After looking at the config file. > > I presume you have specified the MySQL username/password Sure > (personally, and out of paranoia, I'd create a webDAV user/password that > only has access rights to the specified webDAV database). > > Next, if you'd read further and didn't take the comment as the > instruction. set > firstrun=1 I did > to tell the server this is the first time it is being run - IT WILL > create the database table (after the first start, reset the flag to 0 to > speed up later runs). It didn't create the table. The database kept empty. > Later in the config file set > mysql_auth=1 > to enable the use of MySQL, and set the admin user/password to what you > plan to have it use. I did > You probably want to set > daemonize=1 > (maybe after first run) I left this to 0. > Oh, and don't forget to set the main data directory and any > port/host changes. I left host and port as they were. The main directory is e:\wwwroot > Start the server - it should connect to MySQL, create the table, and > add the admin user to the table. I started the server with server.py (in D:\Python27\WebDAV\PyWebDAV\DAVServer) -D e:/wwwroot -m -c config.ini The seems to work as I get a login screen in the browser. Later on I changed the ini file: # disable auth noauth = 1 # Enable mysql auth mysql_auth=0 No login screen anymore but I got an error message "fshandler:get_data: e:\wwwroot not found" Fokke