Hi all,
I am trying to get Xampplite to support "put". Unfortunately I have not real experience with Webservers
A Wireless DECT Server needs "PUT" in order to upload it's configuration and using google to search for it does not show up to many results that helped me so far.
I understood that I need CGI Support for PUT to be able to work.
Here is what I have done so far:
Downloaded Xampplite from here:
http://www.apachefriends.org/download.p ... -1.7.0.exe
Un-rarred to c:\xampplite
Run the setup_xampp.bat
Created a Directory within C:\xampplite\htdocs called Kirk and within this a directory called backup
Opened a Text Editor and create a file called backup.txt with this content:
- Code: Select all
mod cmd UP0 scfg http://172.27.12.54/kirk/backup/#d#h#b5.txt
And stored this within the C:\xampplite\htdocs\kirk\backup directory
Above file is opened by the DECT (Cordless Phone Server) and tells it were to put the configuration file
Downloaded the following CGI Script: http://www.apacheweek.com/issues/put1
from here: http://www.apacheweek.com/features/put and stored it as a txt file called put.cgi within: C:\xampplite\htdocs\kirk\backup
Change the Top line in the put.CGI into :
- Code: Select all
#!C:/xampplite/perl/bin/perl
Open the httpd.conf within C:\xampplite\apache\conf change the:
- Code: Select all
<Directory />
Options FollowSymLinks
into:
- Code: Select all
<Directory />
Options FollowSymLinks ExecCGI
and add to the:
- Code: Select all
<IfModule dir_module>
DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
the put.cgi script as know module
Started xamp via xampp_start.exe within C:\xampplite
I can see within the access.log file the following:
- Code: Select all
172.27.5.130 - - [14/Apr/2009:17:52:30 +0100] "GET /kirk/backup/backup.txt?ver=6.00+dvl-sr2+IP1200%5B09-60700.80%5D%2C+Bootcode%5B366%5D%2C+HW%5B30%5D+8192%2F32768&PROT=08-60700.75&CFG-BACKUP-NUM=1 HTTP/1.1" 200 55
172.27.5.130 - - [14/Apr/2009:17:52:30 +0100] "PUT /kirk/backup/00-90-33-0f-23-a2.txt HTTP/1.1" 405 1043
I can run the put.cgi script manually within a MS-Dos Box:
- Code: Select all
C:\xampplite\perl\bin>perl.exe c:\xampplite\htdocs\kirk\backup\put.cgi
Status: 500
Content-Type: text/html
<HEAD><TITLE>Error</TITLE></HEAD><H1>Error Publishing File</H1> An error occurred publishing this file (Request method is not PUT).
Any Hints ...?
Thanks
Steffen