FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > Utilities / Scripts / Software
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-18-2017, 10:29 AM   Postid: 185851
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
moving wp-config

Hi, everyone.

I contacted a support team from a certain plugin I recently bought. Since explaining the details in words makes the problem solving a slow process, they wanted access to my FTP instead.

It's fine with me giving them access to my FTP since FutureQuest (thankfully) allows us to give them limited access, but I don't want them to see my wp-config file.

So, how do I move my wp-config file outside my domain's /www directory? Though I've read some materials on how to do it, but I'm having second thoughts.

Any help will be much appreciated.

Thanks in advance!
martian101 is offline   Reply With Quote
Old 04-18-2017, 10:37 AM   Postid: 185852
 Bob
Service Rep
 
Bob's Avatar
 
Join Date: Dec 1999
Location: Jacksonville, Fl
Posts: 5,730
Re: moving wp-config

Two separate Articles I have found indicate that WordPress will automatically look in the directory above the web root (www) for the wp-config file if not located in the /www

https://wordpress.stackexchange.com/...lly-beneficial
Quote:
How to move wp-config.php to any location on your server

WordPress will automatically look one directory above your WordPress installation for your wp-config.php file, so if that's where you've moved it, you're done!
http://www.wpbeginner.com/wp-tutoria...-may-not-know/

Quote:
By default it is located in the root WordPress folder, but you can move it. It can be moved outside your public_html directory, so users cannot access it. WordPress knows by default to look in other directories, if the files is not found in the WordPress root folder.
-Bob
Bob is offline   Reply With Quote
Old 04-18-2017, 10:51 AM   Postid: 185853
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
Re: moving wp-config

Thanks, Bob!

I also just want to know from FutureQuest's perspective since my sites are being hosted here. Is it okay to move wp-config outside /www directory in FutureQuest? Wouldn't it break anything, etc.?

Pardon me if the question's a no-brainer. I just want to make sure.
martian101 is offline   Reply With Quote
Old 04-18-2017, 10:53 AM   Postid: 185854
 Bob
Service Rep
 
Bob's Avatar
 
Join Date: Dec 1999
Location: Jacksonville, Fl
Posts: 5,730
Re: moving wp-config

As far as I am aware there should be no problem, however I personally have never moved a WP config file from the WordPress root so...

-Bob
Bob is offline   Reply With Quote
Old 04-18-2017, 10:57 AM   Postid: 185855
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
Re: moving wp-config

I see. I'm definitely gonna need a backup for this.

Thanks again, Bob!
martian101 is offline   Reply With Quote
Old 04-18-2017, 11:02 AM   Postid: 185857
 Bob
Service Rep
 
Bob's Avatar
 
Join Date: Dec 1999
Location: Jacksonville, Fl
Posts: 5,730
Re: moving wp-config

An easy way to test this would be to use your CNC File Manager, copy the file into your xdomain directory and then rename the wp-config file in your /www and see if your WordPress install still works.

If it does then you can take the renamed wp-config file out of your /www permanently...

-Bob
Bob is offline   Reply With Quote
Old 04-18-2017, 11:08 AM   Postid: 185858
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
Re: moving wp-config

Just thought of giving an update. I just moved my wp-config outside /www directory. So far, my site's working.

I guess it won't be vulnerable to hacking, right? Unless someone knows my CNC creds?
martian101 is offline   Reply With Quote
Old 04-18-2017, 11:09 AM   Postid: 185859
 Bob
Service Rep
 
Bob's Avatar
 
Join Date: Dec 1999
Location: Jacksonville, Fl
Posts: 5,730
Re: moving wp-config

Most WordPress hacks are usually through plugins and themes as far as I know so...

-Bob
Bob is offline   Reply With Quote
Old 04-18-2017, 11:09 AM   Postid: 185860
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
Re: moving wp-config

Quote:
Originally Posted by Bob View Post
An easy way to test this would be to use your CNC File Manager, copy the file into your xdomain directory and then rename the wp-config file in your /www and see if your WordPress install still works.

If it does then you can take the renamed wp-config file out of your /www permanently...

-Bob
Ah. Never thought of this. This would have saved me from having a minute full of suspense.
martian101 is offline   Reply With Quote
Old 04-18-2017, 11:21 AM   Postid: 185862
martian101
Site Owner

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Aug 2016
Posts: 27
Re: moving wp-config

Quote:
Originally Posted by Bob View Post
Most WordPress hacks are usually through plugins and themes as far as I know so...

-Bob
Whew. This is good to know. Thanks, Bob!
martian101 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:24 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.