n****u 发帖数: 12 | 1 Hi, guys,
I am using Perl/cgi to display some webpages. I used xml::dom to parse the
files first to get variables from an xml file. Then output html by using
print. Why couldn't I display the page from a browser? Error: 500 Internal
Server Error. It can output result from Unix commandline(html script). Then,I
did the following,
1. Deleted the xml parsing part from the code, with html part left, it can
display from browser fine (of cause I cahnged those variables in html into
normal text)
2. Add | p******f 发帖数: 162 | 2
500 means your perl program threw an exception (i.e. died).
did you have a look at the httpd error log file?
【在 n****u 的大作中提到】 : Hi, guys, : I am using Perl/cgi to display some webpages. I used xml::dom to parse the : files first to get variables from an xml file. Then output html by using : print. Why couldn't I display the page from a browser? Error: 500 Internal : Server Error. It can output result from Unix commandline(html script). Then,I : did the following, : 1. Deleted the xml parsing part from the code, with html part left, it can : display from browser fine (of cause I cahnged those variables in html into : normal text) : 2. Add
| n****u 发帖数: 12 | 3 How?
Then,I
use
recognise
Thanks
【在 p******f 的大作中提到】 : : 500 means your perl program threw an exception (i.e. died). : did you have a look at the httpd error log file?
| p******f 发帖数: 162 | 4
it's /var/log/httpd/error_log for me, you should try to find it around.
【在 n****u 的大作中提到】 : How? : : Then,I : use : recognise : Thanks
| n****u 发帖数: 12 | 5 What perl editor do you use? Is there one that can simulate server to run cgi
file? I tried some, but don't know if it's reliable. Also, Is
"/var/log/httpd/error_log" a route under perl or something? Thanks.
【在 p******f 的大作中提到】 : : it's /var/log/httpd/error_log for me, you should try to find it around.
|
|