Jump to content

Recommended Posts

Hello all
I have always been in control of my server and could put the database password in a safe secure location, out side of the website directory. Now I don't have access to the server and I have to set up File permission to do so, except you can't find anything online or I don't know what I am looking for. I need to have a Folder inside my main directory with a dbpass.inc File that only the script I run can have access to it and No one else. I have literally tried a million combinations and I give up, I need help I don't know what the Hell I am doing it is all greek to me.
I have 3 sets of options

Owner
Group
Public
each with permission to
Read [] Write [] Excute []

I need to know the right combination to put on the folder, and on the file so I can include the file where I need it but the public can't see it or reach it in any way.

Thanks for all the help, I assume it's something I might have to do in PHP I honestly have no clue, please help and its highly appreciated for any help anyone gives me.

cheers
-Lenbot
I think CHMOD is not the solution. PHP won't access the files as "Owner", so 600 won't be of any good. Maybe try 660, but that probably won't work either.

I'd secure the folder with .htaccess

Check:
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=96195&hl=deny\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?...c=96195&hl=deny[/a]

I use:

[code]Order Deny,Allow
Deny from all
Allow from 127.0.0.1[/code]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.