Register

Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development. You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup. If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Joomla 2.5.1 and 1.7.5 update released: More info

We are ready for Joomla! 2.5: More info

Help us improve our website and get 1 month Free Club Membership More info

Joomla 1.6/1.7 Templates Conversion Tracker: More info

User Panel
User Name  Password   
Go Back   Youjoomla Support Forums > Public Joomla forums > Anything Goes

Anything Goes water cooler

Closed Thread
Old 04-05-2010, 08:43 AM   #1 (permalink)
Unlicensed
 
wakawaka's Avatar
Copyright Holder
 
Join Date: Mar 2010
Posts: 22
Question Moving Congfiguration.php outside public_html

Does anyone have an idea of the most effective way to move the configuration.php of joomla 1.5 to a safe directory outside of public_html? I mean I've tried all kinds of instructions out there, but none to any avail.

Also, after moving the configuration.php would it be required to modify the /includes/defines.php and and the /administrator/includes/defines.php to reflect the new path to the configuration?

Thanks

Last edited by wakawaka; 04-05-2010 at 08:44 AM.. Reason: to indicate the joomla version
wakawaka is offline  
Old 04-05-2010, 09:36 AM   #2 (permalink)
Senior Member
 
jaycburton's Avatar
 
Join Date: Nov 2008
Location: Atlanta, GA US
Posts: 2,460
Send a message via Skype™ to jaycburton
Default

Hi - Here is some info that may help you: Moving sensitive files outside the web root - Joomla! Documentation
jaycburton is offline  
Old 04-05-2010, 11:30 AM   #3 (permalink)
Unlicensed
 
wakawaka's Avatar
Copyright Holder
 
Join Date: Mar 2010
Posts: 22
Question Moving Configuration.php outside public_html

Hi, jay, thanks for the quick reply.

I tried to follow the instructions from the link you mentioned, unfortunately, it doesn't do the trick. Since that didn't work, I added the following additional step not mentioned in the link you kindly directed me. Thank you.

-modify the /includes/defines.php and /administrator/includes/defines.php files, more precisely, this constant: define( 'JPATH_CONFIGURATION', JPATH_ROOT );

-If, for example you wish to move the file up one level and into a folder named "test" the constant will look like this:
define( 'JPATH_CONFIGURATION', JPATH_ROOT.DS.'..'.DS.'test' );

The link to the above additional step is:

RSFirewall! User Guide - File and Folder Access Check - Checking if configuration.php is outside of public html

Unfortunately, even after modifying these files (I'm using the YouNews Demo install) and try to access the site, I get: "No configuration file found and no installation code available. Exiting..."

Questions: I forgot the post where Neo briefly mentioned something about moving configuration.php outside the public_html in his answer to a question, from another club member, pertaining to protecting joomla install. Can I ask what short steps or "magic" you guys do to achieve this? For example protecting or moving the configuration.php of your demo installs.

If not, do you know of any other (good) link out there that shows how to move the configuration.php outside the public_html and the respective files to modify? ( Jay, I'm telling you, I've searched everywhere, I'm just hopping your support team or any Youjoomla club member might know of good one I certaintly missed)
wakawaka is offline  
Old 04-05-2010, 12:00 PM   #4 (permalink)
Senior Member
 
jaycburton's Avatar
 
Join Date: Nov 2008
Location: Atlanta, GA US
Posts: 2,460
Send a message via Skype™ to jaycburton
Default

Hi - I will test the procedure I sent you on a site a little later today.

I also looked for the post from Neo you mentioned, and I could not find it either. Maybe I am just not using the correct search terms.
jaycburton is offline  
Old 02-07-2011, 04:19 AM   #5 (permalink)
Unlicensed
 
watsonovedades's Avatar
 
Join Date: Feb 2011
Posts: 1
Default Moving configuration.php

public_html is just the standard name for the website root directory aka Document Root. Yours may be called something else. If you don't know what yours is you can get it by viewing the PHP info file. Note that if you log into your website's FTP account, you will not see a folder called public_html because you log directly into that folder to begin with. If your FTP client has an address bar it may read /public_html/ when you first log in to indicate that this is the current directory you are in. If so you simply need to click the button in your client that puts you one directory up. Usually its an arrow button or two dots.

Cheers
__________________
Los mejores hechizos para enamorar ahora al descubierto
watsonovedades is offline  
Closed Thread

Tags
joomla security, moving configuration.php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 02:32 PM.


All times are GMT -4. The time now is 02:32 PM. Powered by vBulletin®
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0