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