PC Playground  

Go Back   PC Playground > The Core > Scripting/Programming
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2003, 03:08 PM
Junior Member
 
Join Date: Jan 2003
Location: USA
Posts: 15
Default cgi-bin doesnt work

my cgi-bin does not work at all
i have tried all the suggestions that have been suggested, but nothing happens. I am trying to install grey matter and when i try to access the gm.cgi file it acts as if the cgi-bin does not even exist...can sumone help lme out???
Reply With Quote
  #2 (permalink)  
Old 02-22-2003, 03:42 PM
Senior Member
 
Join Date: Jan 2003
Location: The Chair In Front Of My PC...
Posts: 596
Default

first of all, greymatter SUCKS!!! use coranto if you want a perl news script...


second, i think that tommy's host put more restrictions on us than safemode... i can't even CHMOD things...
Reply With Quote
  #3 (permalink)  
Old 02-22-2003, 04:23 PM
Member
 
Join Date: Jan 2003
Location: Alabama, USA
Posts: 71
Default

Quote:
it acts as if the cgi-bin does not even exist
If you can, CHMOD your cgi-bin as 755 or 777 :)
Reply With Quote
  #4 (permalink)  
Old 02-22-2003, 07:13 PM
Junior Member
 
Join Date: Jan 2003
Location: USA
Posts: 15
Default

did that as well
Reply With Quote
  #5 (permalink)  
Old 02-22-2003, 07:20 PM
Member
 
Join Date: Jan 2003
Location: Alabama, USA
Posts: 71
Default cgi

What's the address of your site?
Can you type in http://yoursite.com/cgi-bin/ and not get an error. :?:
Reply With Quote
  #6 (permalink)  
Old 02-23-2003, 09:56 AM
Senior Member
 
Join Date: Feb 2003
Location: Mars
Posts: 137
Default

Please list everything you have tried so far and any relevant steps you have taken during script installation.
Reply With Quote
  #7 (permalink)  
Old 02-25-2003, 07:39 PM
Junior Member
 
Join Date: Jan 2003
Location: USA
Posts: 15
Default

well i have chmoded the cgi-bin to 755
also for the scripts they were uploaded in ascii format and chmod to 755.
still dont work!!!!
Reply With Quote
  #8 (permalink)  
Old 02-25-2003, 09:27 PM
Senior Member
 
Join Date: Feb 2003
Location: Mars
Posts: 137
Default

Try this site :

http://www.freeperlcode.com/newuser/installascript.html

And scroll down to find the simple "hello world" cgi test script. If that script doesn't work after you are absolutely sure you've done everything right, your cgi is "broken", though I doubt that simple script will not work.

Ah, and there is also some useful info on that page I suggest reading. I know because that's where I got started with figuring out scripts for myself.
Reply With Quote
  #9 (permalink)  
Old 02-26-2003, 10:39 AM
Junior Member
 
Join Date: Feb 2003
Location: USA
Posts: 5
Default

Try this script for a test

#!/usr/bin/perl

print "Content-type:text/html\n\n";

print "<html><head><title>Test Page</title></head>\n";
print "<body>\n";
print "<h2>Hello, world!</h2>\n";
print "</body></html>\n";



Name it test.cgi and set at 755 it will work in cgi bin or in any folder
OleTom :D
Reply With Quote
  #10 (permalink)  
Old 02-26-2003, 12:51 PM
Junior Member
 
Join Date: Feb 2003
Location: USA
Posts: 17
Send a message via AIM to nk2002
Default

it did work, that so strange
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:03 PM.