Click to See Complete Forum and Search --> : Html Execution Problem
MrNewbie
08-19-2001, 08:29 AM
I'm setting up a script for someone on their web server. The script generates html log files of its actions but when anyone tries to view them, because they are in an execuable directory, the server tries to execute them and gives an error (even though the files do not have execution permissions set.) I've tried changing the permissions of the files and I'ce tried creating a directory inside the cgi-bin without execution permisisons and put the files in there (I would then modify the script to place them there.) Nothing works, the server still tries to execute them and fails. I really dont want to have to modify the script to generate cgi scripts that simply print the html so can anyone think of why this may be happening?
takshaka
08-19-2001, 07:03 PM
If the files are being saved in a scriptalias'd directory (or any directory that is configured with cgi-script as the handler), then the server will treat them like CGI scripts regardless of permissions. You'll have to save the files in a different directory--one that isn't a subdir of the cgi-bin.
Craig McPherson
08-29-2001, 12:48 AM
That's true. If you have that directory set as a CGI directory, the server will try to execute anything that's in that directory. If you absolutely don't want to modify the script to save the logs to a normal directory, you could also un-ScriptAlias your CGI directory and set a handler in your webserver configuration to run CGI scripts based solely on their extension -- that'd be dumb, though.