• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Moving configuration.php

Moving configuration.php 15 years 7 months ago #8617

  • mcasner
  • mcasner's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hi,

Thank you very much for RSFirewall.

I'm trying to move my configuration.php file and don't know the best way to do it. I've tried to move the configuration.php info to another location outside the www root, but when I move the file and try to call it using require(), I get a open_basedir error.

My php.ini file has basedir set to the web root. Is there a way to get around this error without opening up the site root, which would kinda defeat the whole purpose anyway.

Any thoughts/suggestions,
Thanks
The administrator has disabled public write access.

Re:Moving configuration.php 15 years 7 months ago #8638

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

Please try contacting your hosting provider in order to add another folder to your open_basedir(), then you will be able to move the configuration.php file into the respective folder that was added and you will no longer receive the respective warning message.

After your hosting provider has added another folder to the open_basedir() you can refer to this article where it is described what you need to do in order to move configuration.php :

www.rsjoomla.com/customer-support/docume...-of-public-html.html
The administrator has disabled public write access.

Re:Moving configuration.php 15 years 6 months ago #8687

Do you have a tutorial how to move files and folder out of the public folder

I know that you have to make a configuration.php with a code that point to the new path of the file, about folder the Same?

Do you have to put any security code in the head of the modify configuration.php file
The administrator has disabled public write access.

Re:Moving configuration.php 13 years 11 months ago #13565

  • d3vlabs
  • d3vlabs's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
same question. openbase_dir is not a problem, my hosts allows own php.ini file.

yet placing configuration.php outside of public_html and having defines.php adjusted accordingly is a bit difficult.

i could really use an example of modifying of JPATH_CONFIGURATION', JPATH_ROOT.DS. for a configuration.php beyond public_html.
The administrator has disabled public write access.

Re:Moving configuration.php 13 years 11 months ago #13574

define( 'JPATH_CONFIGURATION', JPATH_ROOT.DS.'..'.DS.'myfolderoutsidepublic' );

The folder outside the public viewing area is here:

/home/mysite/myfolderoutsidepublic

and here is where your website would be:

/home/mysite/public_html
The administrator has disabled public write access.

Re:Moving configuration.php 13 years 6 months ago #15283

  • richper
  • richper's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
If you have moved your configuration.php to

/home/mysite/myfolderoutsidepublic

you might have to express your define as:

( 'JPATH_CONFIGURATION', JPATH_ROOT.DS.'../myfolderoutsidepublic' );

It worked for me like this.
You also might have to change the php.ini file name to disable it and RSFirewall will create a new one with your new settings.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!