avatar
question on CGI and XML# XML - WWW明日之星
n*u
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
avatar
p*f
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

avatar
n*u
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?

avatar
p*f
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

avatar
n*u
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。