Problem


#1

how do you make folders CGI script friendly?


#2

site chmod 755 cgi-bin

providing your cgi bin is called cgi-bin


#3

the cgi bin is now 755 but still is not reading cgi


#4

you also need to set the permissions for your cgi scripts, so

do a chmod 755 on them.


#5

they all are 755 but still it doesn’t work


#6

Where did you get your script from? What exactly is the error?


#7

I got it from active-scripts and what is happening is when i upload it and load the URL i just see the script.


#8

What kind of a script is it, what are you using it for? How are you calling the action of the script? Or are you just trying to open it up

ie… http://www.yourdomain.com/cgi-bin/script.cgi


#9

I have been trying http://www.gravaged.net/cgi-bin/guestbook/guestbook.cgi and http://www.gravaged.net/cgi-bin/guestbook/guestbook.cgi?action=setup and none of them work


#10

make sure when uploading your script you upload it in ASCII mode, otherwise it won’t work.

this is your correct path http://www.gravaged.net/cgi-bin/guestbook/guestbook.cgi?action=setup


#11

i did upload in ASCII mode i think…


#12

my only other thought is to try to chmod the guestbook directory to 777 (I am not sure if 777 is correct)

Someone else in reading the forum will most likely know the correct chmod

one other thing you might try is posting your question on action-script.nets forum.


#13

nope, no good. I guess its fucked


#14

Are you on a plan that comes with CGI ?

First the web server looks at the extension to see if its CGI file or not. If your domain is not configured to run CGI, then it doesn’t care at this point and simply reads the file as if it were a plain file.

If the extension is a CGI extension, then the web server looks for the magic number and file permissions. If you have this wrong, you’ll get a 500 Internal Server Error.

The script file and the directory it is in should both be chmod to 755. If you chmod a directory to 777, then other users could create files in that directory, so its not a good idea to do that. The last 5 means other users can read and execute, but not write. 7 means they can do all three.

:cool: Perl / MySQL / HTML CSS


#15

My domain does that for me.


#16

did you chmod 755 the directory ‘guestbook’ also?


#17

FYI, we recently had a problem wherein some domains did not get set up for CGI support by default after being created.

It’s likely that this is the case for you - if you contact support and point them to the script you’re having trouble with, they should be able to verify if this is the case and get it fixed for you.

  • Jeff @ DreamHost
  • DH Discussion Forum Admin