in reply to ActivePerl / Apache / WinMe config problem

If it tries to download your files, your ScriptAlias directive is most probably not working. It *should* give 500 errors or succeed in that case. And no, you don't need both AddHandler and ScriptAlias at the same time. :)

One thing that is different from usual when you are doing CGI in the environment you describe is that the shebang line must be correct (this is not necessary otherwise under activestate). So make sure it is #!/perl/bin/perl -w or wherever you have installed it (I have /usr/bin/perl just like the real people). Also, if for some reason the apache is running on another drive, you need to set it with drive letter as well: #!c:/perl/bin/perl -w.

Also, you will want to examine your log files, access and especially error logs can be very helpful sometimes when trying to track these problems down.

One stupid question also, I am not trying to be condesending or anything, but you are restarting apache everytime you make a change, right? All in all, apache and activestate usually plays very well together on windows, although I have never run ME and never ever will.

Feel free to come back with more info about your problem, especially error logs.


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

Replies are listed 'Best First'.
Re: Re: ActivePerl / Apache / WinMe config problem
by Anonymous Monk on Feb 26, 2002 at 04:55 UTC

    I'm sure the script alias is working; it tries to execute and does give the 500 error (can't spawn child process) when I muddle the shebang so that it _doesn't_ find perl, it only tries to download when it actually finds perl. Besides which, <a href=http://www.perlmonks.com/index.pl?lastnode_id=147237&node_id=147474">I discovered today that it works fine from a remote machine, just not locally:

    (and before anyone asks, yes I know WinMe is not secure enough to host a site, I just left it open long enough to test it)

    I had already checked the logs, no errors are recorded when it tries to download (with or without -w); the access log shows the GET...200 and looks otherwise like it was successful. And, yes, I was reloading apache when I made changes (no worries about being condecending, I remember well from a former tech support job having to ask if the machine was plugged in...)

    sigh...believe me I wish I was running this under unix/linux...unfortunately I'm doing this so I can work at home on a project for work, where they give me no choice of o/s...at least it will be NT there, hopefully that will be somewhat less problematic.