Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Help with CHMOD plz

Status
Not open for further replies.

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
hello,

THis is the 2nd time I have encountered this problem.

When installing a script (PHP) and after install

When I go to the admin section of script It says access denied.

I CHMOD the permissions IDENTACALLY to what the readme files say and I double check the permissions both in FTP program and in the File Managaer in User CP.

Then to see if the file permissions are the problem, I will set a file to 777 and I still cant see it. It says forbiden.

How do I get to be able to see htese files?

They are not in a protected directory.

THank you sooo much.

Sorry if in wrong forum..
 

Jack Gordon

Serial Entrepreneur
Legacy Exclusive Member
Joined
Nov 6, 2002
Messages
2,404
Reaction score
214
Those permissions are tricky business...

You said it was not in a protected directory, does that mean it is not in the cgi-bin?
 

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
no its in httpdocs

on my host, if you put an item in /HTTPdocs like /httpdocs/buy.htm

the adress will be domainname.com/BUY.HTM

I believe httpdocs is the same as VAR/www/ on other hosts.

CGI-BIN is a completely different directory, which is above httpdocs

And I have tried many combinations of CHMOD (permissions).

Could it be that I cant get it to reconize me as the owner/group or even anyone?

If you have a file set to owner or group access ONLY (i dont) how do you get it to reconize you as the owner?

I dont even know if thats my probem, but rhis is the 2nd time (and 2nd host) that this has happened to me. The first, RJ was able to fix for me but i dont know how he did..
 

Anthony Ng

@Nameslave
Legacy Exclusive Member
Joined
May 22, 2002
Messages
4,567
Reaction score
14
When you said "CGI-BIN is a completely different directory, which is above httpdocs", does it mean that it's hierarchically on top of HTTPDOCS (which I don't think so)? It's actually a more host-specific question. Some hosts ask that scripts be installed in the CGI-BIN sub-directory; some hosts even do NOT allow 777 CHMOD at all. You might want to ask your host or check out their FAQ.
 

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
NS, thank you for your informative post.

Screen shot of the what I see when I enter the file manager:

http://www.123-freestuff.com/untitled.bmp

Do you think if I install the PHP script not in the CGI bin it would do what its doing? Also do oyu think if I tryed to 777 and my host wont let me, it would do what its doing?

The readme for the script is saying 777 the folders. What would a safe bet be to do ALL the files that the script uses? 666? 644?

Thanks, my host live support is offline right now :(
 

DNS Kidd

Level 5
Legacy Platinum Member
Joined
May 2, 2002
Messages
353
Reaction score
0
Assuming unix/linix operating system?

Make sure you are launching the script as the same owner as the script.

chown username scriptname
chgrp groupname scriptname

Check to be sure your definitions file is pointing at /usr/local/htdocs as your document directory,
or whatever you have defined.
 

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
Originally posted by DNS Kidd
Assuming unix/linix operating system?

Make sure you are launching the script as the same owner as the script.

chown username scriptname
chgrp groupname scriptname

Check to be sure your definitions file is pointing at /usr/local/htdocs as your document directory,
or whatever you have defined.

Yes I believe it is a unix server.

About your 2nd point

HOW DO I DO THAT

were do I go to luanch them as owner? How do I get it to reconize me as owner?

about 3.


I do not understand.. The main directory for unsecure (not HTTPS) is httpdocs.

it goes / (root) --> httpdocs/ ---> poll (its a poll script)

anything in the directory /poll I cannot get into

www.123-FREEstuff.com/poll/active.gif (777 file)

I cannot view it for some reason.

Screenshot of httpdocs (if needed)

www.123-freestuff.com/untitled2.bmp

and the script folder (POLL)

www.123-freestuff.com/untitled3.bmp

Should I try installing script in CGI bin?

Do you put PHP scripts in the CGI bin?
 

Steen

Level 9
Legacy Platinum Member
Joined
Mar 24, 2003
Messages
4,853
Reaction score
1
thanks tips

Here is my FULL .htaccess for the folder I was installing script. LoL I think we may have located the problem


deny from all


Thats all folks..

What do I change this to? Or do I just delete the line?
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Upcoming events

Latest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom