in reply to Re^2: 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?

Assuming this is Windows: You don't need to install Perl on your machine. Perl works perfectly fine if you try to run it directly from a CD-ROM. You will then have to use command lines like
perl yourscript.pl params for perl

Commonly, you have to use the absolute path for the executable in the command line. Or, you might temporarily add the path to perl to your PATH environment variable. Yes you can do that from the command line...

  • Comment on Re^3: I'm getting a 500 Internal Server Error - how can I make this work?
  • Download Code

Replies are listed 'Best First'.
Re^4: I'm getting a 500 Internal Server Error - how can I make this work?
by linex (Initiate) on Apr 05, 2006 at 15:48 UTC
    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.
      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.