WebFaction
Community site: login faq

Hi,

I am in the process of setting up Wordpress, going through various steps to make this installation as secure as possible. One of the security tricks is to move the config.php file up one directory. This does not seem possible due to the way the Webfaction installer deals with new WP installations. Any suggestions? Thanks, Peter

asked 11 Sep '12, 02:09

petervh's gravatar image

petervh
11
accept rate: 0%


You can do this easily using a "Symbolic Link to Static/CGI/PHP" application.

For example, if your wordpress application is $HOME/webapps/wp, then create a new directory at $HOME/webapps/wp/webroot and create a new application of type "Symbolic Link to Static/CGI/PHP". In the extra_info field of that application, enter the full path to that new webroot directory, then mount the symbolic link application to your website record instead of the wordpress application.

This will have the effect of making the web root for the application $HOME/webapps/wp/webroot instead. Put the wordpress files there, and then move the wp-config.php file up a directory.

Hope that helps!

permanent link

answered 11 Sep '12, 02:38

ryans's gravatar image

ryans ♦♦
5.0k42755
accept rate: 43%

edited 11 Sep '12, 02:39

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:

×236
×68
×44
×5

question asked: 11 Sep '12, 02:09

question was seen: 2,468 times

last updated: 11 Sep '12, 02:39

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 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