Author |
Message |
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jan 23, 2004 2:24 pm (20 years, 3 months ago) |
|
I am setting up a CGI application (textcounter) and the read me file suggests that I chmod the directory. I am using smartFTP and have been through the smartftp tutorial on how to chmod. However it does not explain how to chmod a directory. I have tried the command line with:
site chmod 777 /home/httpd/vhosts/mysite.co.uk/cgi-bin/textcounter
and it returns the error message:
550 /home/httpd/vhosts/mysite.co.uk/cgi-bin/textcounter: No such file or directory
Is this the correct way to chmod a dir or have I just wrongly specified the path?
Your help is appreciated,
Dom |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Jan 23, 2004 3:50 pm (20 years, 3 months ago) |
|
|
|
|
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jan 23, 2004 4:14 pm (20 years, 3 months ago) |
|
Daniel,
I do not think you can do that to folders.
I have just figured it out. It works if you do this in the command line:
Code: | site chmod 777 /cgi-bin/textcounter/ |
However the aplication still does not work....
I have posted another question a few moments ago.
Can you help me with that?
Hope so,
Dom. |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Jan 23, 2004 5:15 pm (20 years, 3 months ago) |
|
there's no way it'll run world-writable scripts, try chmod 755 |
________________________________ It's turtles all the way down... |
|
|
|
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jan 23, 2004 5:51 pm (20 years, 3 months ago) |
|
Hi adam,
the notes sugest 777
I have tried 755 on the file and dir and it still does not work..
>cgi-bin (folder)(drwxr-x--- (dr=dir, w=write, x=execute, r=read, -=?, x=execute, -=?,-=?,-=?))
>>>textcounter folder (755)
>>>>>>>file.cgi (755)
Do i understand you correctly?
Dom. |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Jan 23, 2004 7:10 pm (20 years, 3 months ago) |
|
if it's listing it as drwxr-x--- then it's 750, which means the web server can neither read nor execute anything in that directory.
also, what do the apache error logs say? (if anything) |
________________________________ It's turtles all the way down... |
|
|
|
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Wed Jan 28, 2004 10:28 pm (20 years, 3 months ago) |
|
This is what the log within smartFTP suggested when i tried to CHMOD the cgi bin to 755. You suggested that it was 750 and that it would not work.
Code: | SITE chmod 755 /cgi-bin/
200 SITE CHMOD command successful
CWD /cgi-bin/cgi-bin
250 CWD command successful.
PWD
257 "/cgi-bin/cgi-bin" is current directory.
|
Any ideas as what could be wrong?
Thanks in advance,
Dom.. |
|
|
|
|
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jan 30, 2004 10:20 am (20 years, 2 months ago) |
|
Thanks Adam for your help!!
I Deleted everything in my cgi bin and double checked everything and it worked.
I think it was the way i was calling it.
Thanks again, i appreciate your help,
Dom.. |
|
|
|
|
domuk
WebHelper
Joined: 15 Jan 2004
Posts: 91
|
Posted:
Fri Jan 30, 2004 10:24 am (20 years, 2 months ago) |
|
|
|
|
|
Page generation time: 0.12622 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme