View Full Version : 500 error
Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..
any clue
YourPHPPro
09-27-03, 11:14 AM
Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..
any clue
Have you checked the log files for the web server ? They normally give a clue as to what is happening...
Have you checked the log files for the web server ? They normally give a clue as to what is happening...
Thanks for you concenr and support
Yes I did check the error and these are the ones I keep getting
1-Premature end of script headers: /home/metoo/public_html/cgi-bin/reading/admin.cgi
2- File does not exist: /home/metoo/public_html/403.shtml
3- attempt to invoke directory as script: /home/mryoo/public_html/cgi-bin/reading
YourPHPPro
09-27-03, 12:04 PM
3- attempt to invoke directory as script: /home/mryoo/public_html/cgi-bin/reading
This is the most likely one to check out. What in calling /home/mryoo/public_html/cgi-bin/reading ?
This is the most likely one to check out. What in calling /home/mryoo/public_html/cgi-bin/reading ?
Thanks a lot
I found there are three directories for cgi scripts
cgi-bin
scgi-bin
and cgi-sys
what the major differneces
thanks a lot
YourPHPPro
09-27-03, 01:20 PM
what the major differneces
It depends on how your webhost has it setup.
Have you taken a look at your programs and found out where /home/mryoo/public_html/cgi-bin/reading is being called from ?
rob2132
09-29-03, 01:14 AM
Why do I get the 500 eroor while I am postive that I have done all the needed instuction to run cgi. I checked the cgi script for erros using shh and it reported back that syntax is ok..
any clue
This can be caused by anything, but since it works from shell, you need to ensure that you have the proper permissions for the file (755) for execute, it's the proper ownership if you're using a cgi wrapper, you uploaded in ascii mode and not binary, you're outputting the proper header before any failures can happen and that you do proper system calls. Likely you are not checking that you can open the file mentioned in your error logs (note the wrong path due to a typo in your example), and rather than stating there's an error, it will die miserably before being able to output the content-type header.
Thanks a lot buddy. It worked now and as you said it was a typo error.
rob2132
10-04-03, 10:47 PM
Thanks a lot buddy. It worked now and as you said it was a typo error.
Good to hear! Cheers.
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.