Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
Im trying to keep my config.inc.php file out of my Document Root. Im following the directions listed here http://www.infopop.com/support/ubbthreads/UBBthreads_security.html

Now I moved it to a dir outside my document root and changed my main.inc.php file to look like this:

<?

$thispath = "/home/http/ubb/ubbthreads";
$configdir = "/home/http/ubbconfig/";
include("$thispath/ubbt.inc.php");

?>

Now when I go to the board, I get the following.

Warning: Failed opening '/home/http/ubb/ubbthreads/config.inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 23

Warning: Failed opening '/home/http/ubb/ubbthreads/languages//generic.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 98

Warning: Failed opening '/home/http/ubb/ubbthreads/config.inc.php' for inclusion (include_path='.:/usr/share/pear') in /home/http/ubb/ubbthreads/ubbt.inc.php on line 23

Fatal error: Cannot redeclare class sql in /home/http/ubb/ubbthreads/mysql.inc.php on line 24

Taking a look at the ubbt.inc.php file, I see no where that makes a reference to $configdir. Everything is trying to look for the config.inc.php file in the directory specified in $thispath. Whats the easy way to correct this? I want to make sure everything works the way we want it before we purchase the software this week. We are using ubb.threads.

Anonymous
Unregistered
Anonymous
Unregistered
Did you check that the file is "readable"? Check the permissions and make sure. Sometimes that can be the problem.

Josh
Measurection.com Admin
ThreadsDev.com Moderator
"Happiness comes through doors you didn't even know you left open. "

Anonymous
Unregistered
Anonymous
Unregistered
Josh is correct - if you have that file above the web root then making it readable to the "Browser User" may be your ticket.

Regards,

Brett Harris
Infopop Corporation

Anonymous
Unregistered
Anonymous
Unregistered
Sure is readable.
-rw-rw-rw- 1 root root 9765 Sep 2 13:59 config.inc.php

If I move the same file back into the directory specified in $thispath, it works fine.

The thing is I dont see any reference to $configdir ubbt.inc.php.

cat ubbt.inc.php | grep $configdir shows me nothing, so if $configdir isnt there, how is it going to know the file location has changed without hacking the file itself? This is the trial version if it makes a difference.

Anonymous
Unregistered
Anonymous
Unregistered
Trial version.

Brett would know for sure... but the following should be in the ubbt.inc.php file around line 60.

Perhaps the trial doesn't have the correct version of this... as this is a new feature.

<pre>// ---------------------
// Include the libraries
if (!$configdir) {
$configdir = $thispath;
}
include("$configdir/config.inc.php");
include("$thispath/mysql.inc.php");
include("$thispath/theme.inc.php");
</pre>

I've got my config file above my web directory.... so in the full version it works fine.

<img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Josh
Measurection.com Admin
ThreadsDev.com Moderator
"Happiness comes through doors you didn't even know you left open. "


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)