0
Welcome Guest! Login
0 items Join Now

Moving Configuration Out of Public Root

    • Ano Hito's Avatar
    • Ano Hito
    • Rocketeer
    • Posts: 87
    • Thanks: 0

    Moving Configuration Out of Public Root

    Posted 15 years 10 months ago
    • I am building a site where J! is in not in the parent directory (mysite.com/Joomla directory) and I am trying to move the configuration file out of the public root, similar to the Joomla Security Wiki ( docs.joomla.org/Security_and_Performance...de_of_public_html.3F ).
      <?php
      require( dirname( __FILE__ ) . '/../joomla.conf' );
       

      My problem is that it spit out errors saying that the config file can not be found. I have tried adding on directories to the code above, but no luck any advice on how to solve this?
      Warning: require(/home/www/some_directory/some_name.conf) [function.require]: failed to open stream: No such file or directory in /home/xxxxx/public_html/community/configuration.php on line 2

      Fatal error: require() [function.require]: Failed opening required '/home/www/some_directory/some_name.conf' (include_path='.:/usr/lib/php5') in /home/xxxxx/public_html/community/configuration.php on line 2
    • Template: J! 3.x Paradigm
      Add-ons: OSMap : OSMeta : RSForms! Pro : DISQUS Comments for Joomla : MailChimp Intergration : AddThis Smart Layers : Administrator Lock : Akeeba Backup
  • Re: Moving Configuration Out of Public Root

    Posted 15 years 10 months ago
    • Hello,

      Have you checked that some_name.conf is exist on /home/www/some_directory/some_name.conf ?
    • Ano Hito's Avatar
    • Ano Hito
    • Rocketeer
    • Posts: 87
    • Thanks: 0

    Re: Moving Configuration Out of Public Root

    Posted 15 years 10 months ago
    • yep, I even checked permissions for the file as well as the folder to make sure the file and is readable.
    • Template: J! 3.x Paradigm
      Add-ons: OSMap : OSMeta : RSForms! Pro : DISQUS Comments for Joomla : MailChimp Intergration : AddThis Smart Layers : Administrator Lock : Akeeba Backup

Time to create page: 0.057 seconds