WebFaction
Community site: login faq

At my previous hosts, I usually used the directory above the level of my html-accessible directories for files such as database configurations, so that files containing password information were not in a Web-readable directory. However, when I tried to sftp a dbase config file to ~/webapps, the directory above my home directory, I'm not able to. Is it possible to use that ~/webapps directory for includes? If not, what's the best practice for secure include files with password information? Thanks.

asked 16 Feb '12, 09:47

sharon000
314
accept rate: 0%


Hi,

The ~/webapps directory isn't owned by your user, it's owned by root which is why you are getting those messages.

It's owned by root so that the control panel can install apps in there for you.

You can store the password files in your $HOME directory which isn't web readable, so it should be secure enough for your password files.

permanent link

answered 16 Feb '12, 15:25

klynton
1.6k1210
accept rate: 41%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×69
×19

question asked: 16 Feb '12, 09:47

question was seen: 2,047 times

last updated: 16 Feb '12, 15:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM