in reply to Re^3: I'm getting a 500 Internal Server Error - how can I make this work?
in thread I'm getting a 500 Internal Server Error - how can I make this work?

well, I uploaded and run script on normal hosting. Not work, here is errors log:
failed to open log file fopen: Permission denied [Wed Apr 5 10:27:59 2006] [error] [client IP] Premature end of script + headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi failed to open log file fopen: Permission denied [Wed Apr 5 10:28:04 2006] [error] [client IP] Premature end of script + headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi failed to open log file fopen: Permission denied [Wed Apr 5 10:28:07 2006] [error] [client IP] Premature end of script + headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi failed to open log file fopen: Permission denied [Wed Apr 5 10:28:16 2006] [error] [client IP] Premature end of script + headers: /hsphere/local/home/domain/domain.com/cgi-bin/bmailer.cgi
So, dont know what is wrong in code if can no run even on normal hosting.
  • Comment on Re^4: I'm getting a 500 Internal Server Error - how can I make this work?
  • Download Code

Replies are listed 'Best First'.
Re^5: I'm getting a 500 Internal Server Error - how can I make this work?
by bart (Canon) on Apr 05, 2006 at 15:54 UTC
    It looks to me like all your errors listed here, are produced by not having the permission to open the log file. You'd have to set the file's permissions to writable for all. If you can't touch it where it is supposed to be, use a location of your own choice, for example in your home directory or in a dedicated subdirectory, and set the permissions accordingly. If the directory doesn't allow you to create a file, and it's unwise to allow it, make an empty file by hand with the proper name, set its permissions, and try again.
    A reply falls below the community's threshold of quality. You may see it by logging in.