Author Topic: HEHE Um cgi-bin????  (Read 693 times)

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« on: 3 October 2002, 01:56 »
Ok i keep gettin 500 internal server error in the web cgi-bin but when i put a script anywhere else i can use it ive tried everything ive found on the web but to noavail.

redhat 7.3

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
HEHE Um cgi-bin????
« Reply #1 on: 3 October 2002, 01:57 »
is this your own webserver?
apache?
the scripts work if there anywhere else but the cgi-bin?
Then dont use the cgi-bin
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #2 on: 3 October 2002, 02:05 »
yeah apache
what i mean is for example i tested out accmanager and it made its own folder on my os that wasnt even where my web folder is (i deleted for that didnt seem right) but anyway it worked. But if i run a script in the web folder i get the 500 error cgi-bin or not

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #3 on: 3 October 2002, 02:08 »
ok scratch that when i place qtest in the html folder it wants me to download

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
HEHE Um cgi-bin????
« Reply #4 on: 3 October 2002, 02:13 »
Sounds like you are trying to run a CGI program. By default, CGI programs are only allowed to run in /var/www/cgi-bin. There is a problem with the CGI program which is why you are getting a 500 error. You can see the real error message by looking at the Apache error log. Look at the last entries in the /etc/httpd/logs/error_log to see the error messages. If you want to get CGI programs to run in other directories other than "cgi-bin" there are a few changes you need to make (only about 2 or 3) in the /etc/httpd/conf/httpd.conf configuration file. m0r, could you point him to the thread(s) on this forum where we went through this? It will hopefully save us having to repeat...
Someone please remove this account. Thanks...

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #5 on: 3 October 2002, 02:14 »
i will do a search for that DUH  :rolleyes:

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #6 on: 3 October 2002, 02:25 »
heres what i got


[Wed Oct  2 05:18:33 2002] [error] [client 216.255.5.87] malformed header from script. Bad header=Trying and...: /var/www/cgi-bin/qtest
syntax error: Expected a word or a quoted phrase at the end
syntax error: Expected a word or a quoted phrase at the end
syntax error: Expected '(', '"', or a word at the end
syntax error: Expected '(', '"', or a word at the end

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #7 on: 3 October 2002, 02:31 »

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
HEHE Um cgi-bin????
« Reply #8 on: 3 October 2002, 02:34 »
There is an error in your "qtest" script. This is a Perl programming issue, not an Apache issue. You need to debug your Perl script.

If you would like me to help you debug it could you point me to where I can get a copy of what you are trying to get running? Then I can help you debug the Perl code.
Someone please remove this account. Thanks...

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #9 on: 3 October 2002, 02:38 »
that qtest thing was already in the cgi bin im not really worried about it unless i need it

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
HEHE Um cgi-bin????
« Reply #10 on: 3 October 2002, 04:28 »
I don't believe "qtest" would have installed by RedHat. What is "accmanager"? Is it related?
Someone please remove this account. Thanks...

fuckoffmicrosoft

  • Member
  • **
  • Posts: 73
  • Kudos: 0
    • http://jeujeu.ath.cx
HEHE Um cgi-bin????
« Reply #11 on: 3 October 2002, 05:22 »
it was a webhosting controlpanel