News:

Wondering if this will always be free?  See why free is better.

Main Menu

{$boarddir} <-- what is this directory?

Started by pulgoki, September 09, 2024, 01:34:10 PM

Previous topic - Next topic

pulgoki

Sorry if this is an ignorant question.  Can you guys tell me what this directory is and if it's important.  It has what appears to be no permissions set and it's causing my backups to complain.  Can this be removed? Or permissions changed so it can be backed up?

Arantor

$boarddir is the variable that points to where all the SMF files live. If your forum lives on the server in /usr/username/public_html, that's what $boarddir should contain. So, uh, yeah, kinda important.

It should be set inside Settings.php.
Holder of controversial views, all of which my own.

Sir Osis of Liver

It's a variable, not a board, unless you've created a board with that name.  Logging an error?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

pulgoki

Quote from: Sir Osis of Liver on September 09, 2024, 01:38:05 PMLogging an error?

Yea.. since it appears to have no permissions set, it isn't able to be read by the backup. 

d---------  2 ********* ********    4096 Dec 28  2021 '{$boarddir}'

Aleksi "Lex" Kilpinen

It also shouldn't exist. It is not supposed to be an actual directory.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

pulgoki

Quote from: Aleksi "Lex" Kilpinen on September 09, 2024, 01:45:34 PMIt also shouldn't exist. It is not supposed to be an actual directory.

I moved my forum from one host to another a few months back. I wonder if it somehow got created during that move?

Is it safe to remove that directory?

Aleksi "Lex" Kilpinen

Is there anything in it? I mean, on a vanilla install sure, it would be safe to just remove - but since it shouldn't even exist to begin with, I'd be curious to know what created it to be able to perhaps guess what is going to break when you delete it.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

pulgoki

It wont let me access it from a terminal but I *think* I am able to from the hosts file manager. When I change in to it, it appears to be empty.

Sir Osis of Liver

It's a valid directory name.  If you actually have a /$boarddir directory it should be empty and you can delete it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

pulgoki

lol. yea.  It is actually  /{$boarddir}

I don't know why it's surrounded by brackets or why it even exists.

The variable is set correctly in Settings.php

Arantor

There are several places in SMF where {$boarddir} is used as a placeholder for substituting in the real value. That seems like something made the folder when it meant to fix the placeholder first, and somehow failed to do so.
Holder of controversial views, all of which my own.

pulgoki

I'm a little too nervous to delete it at this point. I changed the permissions so it wouldn't error out during the backup and that seemed to have worked.

I'm going to keep my eye on it and see if the permissions change back at some point. If they do I'll know that I have a different issue going on.

If I don't notice anything strange I'll remove it in a few weeks and see if anything breaks.   

Steve

Why not make a copy of your settings.PHP and search for {$boarddir} inside it? If it is in there, then why not download {$boarddir} to your computer and hold on to it and delete it from your forum and make sure everything works?
DO NOT pm me for support!

Sir Osis of Liver

Did you install the forum with a host installer?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: