Re: Trying a windows installation

Allan Harold <[email protected]> Wed, 04 Oct 2006 13:24:54 -0400
Newsgroups gmane.comp.apache.mod-survey.general
Message-ID <[email protected]>
I have had quite good success running mod_survey on Windows XP by mostly 
relying on one trick. If perl, apache, mod_survey, mysql etc are all on 
the c drive, and all of your directories and file names do not have any 
spaces in them then you can use unix style slashes in the various 
configuration files. So for this example instead of having 
c:\mod_survey\data in the configuration file you would use 
/mod_survey/data.

I was able to set up Windows XP as my development environment, while 
using BSD for my production server, and move the configuration and 
survey files back and forth without requiring any changes.

Just another way to do it.

Regards,

Allan Harold


Joel Palmius wrote:
> Ouch.. I didn't think anyone actually tried to run mod_survey on 
> windows. Support for it is crappy at best.
> 
> I've left it to rot for a few years, mainly because mod_perl on windows 
> sometimes have worked quite differently from on unix. For example, for 
> several versions it refused to accept the notion of environment variables.
> 
> If, against presumption, you manage to get mod_survey up and running on 
> windows it won't be long before you run into the next bug. And another. 
> And yet another one.
> 
> For your specific problem, it looks like the slashes are turned the 
> wrong direction. You'd need backslashes in windows. You can try editing 
> your survey.conf and set
> 
>   PerlSetEnv _SURVEY_SENSIBLE 0
> 
> Which will enable a few workarounds from the time when mod_survey did 
> indeed run on windows. If that does not work, you'll have to edit the 
> perl code, primarily System.pm, Submit.pm and Document.pm, and try to 
> fix hardcoded slashes so that they become backslashes.
> 
>   // Joel
> 
> 
> 
> On Tue, 19 Sep 2006, Luca Notari wrote:
> 
>> I've tried installing mod_survey 3.2.4 onto my windows box for testing
>> surveys; the perl installer recognized the S.O. and installation was
>> successful. Everything regarding mod_perl, apache etc works fine.
>>
>> However, I can't solve this problem due to the variable
>> _SURVEY_ALLOWAUTO set to on:
>>
>>
>> Document error
>>
>> Could not create autodata file
>> (C:/mod_survey/data/\C:_mod_survey_webroot_examples_example.survey\AutoD
>> ata.dat)
>> (C:/mod_survey/data/\C:_mod_survey_webroot_examples_example.survey\)
>>
>>
>> [DOCUMENT ERROR 29, COULD NOT CREATE AUTODATA FILE] As neither ASCIIFILE
>> nor DBITABLE was set, and the global configuration option
>> _SURVEY_ALLOWAUTO was enabled, the system tried to create an autodata
>> file. This failed for some unknown reason.
>>
>>
>>
>> maybe this is due to the ":" character representing the root drive? How
>> can I escape it(if possible)?
>>
>> many thanks
>> Luca
>>
>>
>>
>> -- 
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.1.405 / Virus Database: 268.12.5/450 - Release Date:
>> 18/09/2006
>>
>>
> Skickat av Joel Palmius <[email protected]>
> till survey-discussion
Skickat av Allan Harold <[email protected]>
till survey-discussion