| Author |
Message |
Pie32 Not Banned

Joined: 17 Mar 2005 Posts: 1411 Location: Lost in 84
|
Posted: Fri Jan 12, 2007 9:14 pm Post subject: CGI - 500 Internal Server Error |
|
|
How can I run CGI on my website? I've tried putting example CGI scripts that I found into the cgi-bin folder, but whenever I try to run them I always get a 500 Internal Server Error. Are we not allowed to run CGI scripts? If so, why did my website start with a pre-created cgi-bin folder? Also, if I can in fact run CGI scripts and all that jazz, is there I way I can install C or C++ on my site so that I can use that to program the CGI scripts? _________________ [img]http://luneknight.com.ru/counter.jpg[/img]
Random Battle: [img]http://luneknight.com.ru/l.jpg[/img] vs. [img]http://luneknight.com.ru/r.jpg[/img] |
|
| Back to top |
|
| |
Jacky SolidRaven is a noob.

Joined: 01 Jan 2005 Posts: 3739 Location: Earth Password: dd4b21e Sex: Male
|
Posted: Sat Jan 13, 2007 1:26 am Post subject: |
|
|
I remembered that the root's cgi-bin folder does not work.
Try creating a directory in public_html, then create a cgi-bin in that directory.
Or check your CHMOD's settings. _________________ Jacky
Create a story, 1 word per post! |
|
| Back to top |
|
| |
Pie32 Not Banned

Joined: 17 Mar 2005 Posts: 1411 Location: Lost in 84
|
Posted: Sat Jan 13, 2007 6:33 pm Post subject: |
|
|
I tried making a cgi-bin in some other folders besides the root, and I still get a 500 Internal Server Error. I believe my permissions are also fine, I initially tried 755 and when that failed I tried 777 and it still did not work. _________________ [img]http://luneknight.com.ru/counter.jpg[/img]
Random Battle: [img]http://luneknight.com.ru/l.jpg[/img] vs. [img]http://luneknight.com.ru/r.jpg[/img] |
|
| Back to top |
|
| |
pterodactyl Lifeless Fossil

Joined: 23 Jun 2005 Posts: 1472 Location: Ukraine
|
|
| Back to top |
|
| |
Jacky SolidRaven is a noob.

Joined: 01 Jan 2005 Posts: 3739 Location: Earth Password: dd4b21e Sex: Male
|
Posted: Sun Jan 14, 2007 3:42 am Post subject: |
|
|
No, don't use 777.
If you CHMOD 777 for folders and 666 for files, you will get a 500 Internal Server Error.
Also, check with the .htaccess you have. The most possible reason is the .htaccess in your root. You might want to post its content here, because the other time I tried turning some settings off with .htaccess, and I got a 500 Internal Server Error. _________________ Jacky
Create a story, 1 word per post! |
|
| Back to top |
|
| |
spock iSpock

Joined: 23 Mar 2005 Posts: 2866 Location: The Netherlands
|
Posted: Sun Jan 14, 2007 11:58 am Post subject: |
|
|
| Pie32 wrote: | | I tried making a cgi-bin in some other folders besides the root, and I still get a 500 Internal Server Error. I believe my permissions are also fine, I initially tried 755 and when that failed I tried 777 and it still did not work. |
| http://lifelesspeople.com/forum/kb.php?mode=article&k=28 wrote: | | Make sure all folders are chmod 755 and all scripts are chmod 644. |
Try this  _________________ Spock's blog
My new site
My OpenTTD data package |
|
| Back to top |
|
| |
|
|
|