Is there a way to test my cgi-bin / perl is working ?

If you are experiencing problems with your cgi-bin / perl scripts try this test ...
  • Enter this into *NOTEPAD* do not use word or anything that will add additional definitions, characters, text, html etc

  • #!/usr/bin/perl
    
    print "Content-type: text/plain\n\nworks!\n";
    
    
  • Save the file as test-cgi.pl
  • Upload the test-cgi.pl script to your cgi-bin as TEXT
  • Change the script mode to 755 (executable)
  • Execute the script in your browser at http://(yourdomain)/cgi-bin/test-cgi.pl
If that works, then the error is in your cgi-bin / perl script and you shoudl contact the authors or add additional debug code.
  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Where is perl located?

Perl is located at /usr/bin/perl - So the first line of your perl script should look like......

Perl script error "CGI open of tmpfile: Permission denied" on Windows hosting.

Perl script error "CGI open of tmpfile: Permission denied" With perl for windows...

Powered by WHMCompleteSolution