FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php includes in readable directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php includes in readable directory [message #181837 is a reply to message #181832] Sun, 09 June 2013 15:44 Go to previous message
Fred is currently offline  Fred
Messages: 5
Registered: November 2012
Location: Mumbai
Karma:
Junior Member
On 06/09/2013 11:39 AM, John Anderson wrote:
> Hello,

Hello,

> I've got a website where the apache directory is available to other
> users with shell accounts: /var/www/html.

why?

>
> If I put something like 'db_login.php' in there with a MySQL password in
> it, and include it from index.php, then anyone with shell access will be
> able to read it.
>
> So I move it out, but where? Is there a 'standard' place to put stuff
> like this? /usr/local seems too 'root-like', and I don't really want to
> put it into my $HOME, and give httpd the right to see in there.
>
> Thanks.

you can do it with the apache module mod_userdir.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: There is no more attempt to draw the mind of children
Next Topic: Re: Using Crystal Reports with PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 18:09:41 GMT 2024

Total time taken to generate the page: 0.04030 seconds