0
Welcome Guest! Login
0 items Join Now

Moving location of configuration.php

    • Sue B's Avatar
    • Sue B
    • Hero Rocketeer
    • Posts: 300
    • Thanks: 0

    Moving location of configuration.php

    Posted 16 years 1 month ago
    • Has anyone ever tried this ?

      After my sites being hacked, I'm trying to be more security conscious.

      I just can't get the above thing to work. It says to rename your configuration.php (in this case to joomla.config) and replace it with this:
      <?php
       
      require( dirname( __FILE__ ) . '/../joomla.conf' );
       
      ?>

      But I'm a bit hazy (i.e. completely clueless) on whether I have to put something where it says 'dirname' (I've tried the directory I put the new .conf file in, but so far I'm unable to make it go). If anyone could translate this from the Geek, I would be eternally grateful.
    • Sue B's Avatar
    • Sue B
    • Hero Rocketeer
    • Posts: 300
    • Thanks: 0

    Re: Moving location of configuration.php

    Posted 16 years 1 month ago
    • Whoops, as you were.

      I've found an answer (of sorts).

      I changed the code to
      <?php
      require( '/home/xxxxxxxx/xx/joomla.conf' );
      ?>

      and it works!

Time to create page: 0.054 seconds