Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't display HTML file in browser

Status
Not open for further replies.

varocho

Programmer
Dec 4, 2000
238
US
My PERL script creates several HTML files (in the same directory), but when I try to display any of them in a browser, I get an 'HTTP 500 Internal server error' message. Any ideas as to why this is happening?
 
Hello varocho,

I tried to search in tek-tips for "HTTP 500 Internal server error" and got so menay matches I thought I would suggest trying a search.

I hope this helps In the begining
Let us first assume that there was nothing to begin with.
 
Varocho,
Try running your script from the command line and check for errors. Also check the (Apache) /var/apache/log/error_log.

ALso, try running perl with the -w flag to print warnings.
Don
 
Make sure that the HTML files that are created contain the "Content-type: text/html" line somewhere before the actual html. That's been my problem on a number of occasions.
 
Thanks to everyone for responding. It turns out that the directory the HTML files were created in was set up to be execute-only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top