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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (ahmed047), 272 guests, and 132 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)