[Kinda OT] httpd permissions

Nicolas Sicard dransic at gmail.com
Wed Apr 25 11:16:20 PDT 2012


On Wednesday, 25 April 2012 at 18:11:16 UTC, Nathan M. Swan wrote:
> How do I deal with this (on OSX); are CGI programs not allowed 
> to
> write to files? How to change this?
>
> Thanks, NMS
>
> test.d:
> #!/usr/local/bin/rdmd
>
> import std.stdio;
>
> void main() {
>        writeln("Content-type: text/plain\r\n\r\nHello, World!");
> }
>
> error log:
> [Wed Apr 25 00:03:01 2012] [error] [client ::1] sh:
> /Users/nathanmswan/Sites/test.d.deps: Permission denied
> [Wed Apr 25 00:03:01 2012] [error] [client ::1] Failed: dmd  -v
> -o- '/Users/nathanmswan/Sites/test.d'
> -I'/Users/nathanmswan/Sites'
> >/Users/nathanmswan/Sites/test.d.deps
> [Wed Apr 25 00:03:01 2012] [error] [client ::1] Premature end of
> script headers: test.d

Have you checked that your web server has write access to 
/Users/nathanmswan/Sites/ ?




More information about the Digitalmars-d-learn mailing list