Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
database.php issues
Hello everyone,
For the past few months I have been having a problem with my Vanilla install where parts of the conf/database.php file are being overwritten and it causes the whole board to die until I fix it.
When it first happens, it just swaps the
The only permissions on that file are 400 (user read only), but there is something that is giving write permissions to that file. Is is something Vanilla is doing and can I turn it off?
Here is what it is doing to my database file:
Any help would be appreciated.
Thanks.
For the past few months I have been having a problem with my Vanilla install where parts of the conf/database.php file are being overwritten and it causes the whole board to die until I fix it.
When it first happens, it just swaps the
<?
to a ?>
at the start of the file, and it would flash my setting to the world, so I now include the settings file offsite (with require_once()) so that my settings are safe.The only permissions on that file are 400 (user read only), but there is something that is giving write permissions to that file. Is is something Vanilla is doing and can I turn it off?
Here is what it is doing to my database file:
?>php require_once("/home/xxx/.../xxx/inc/conf/database.php"); ?>
Any help would be appreciated.
Thanks.
0
This discussion has been closed.
Comments
If anyone can tell me if Vanilla changes permissions to that file, that would be great.
AjaxQuote 1.0
Applicant Discovery 1.2
Audio Player 1.0
Better BB Code 1.0
Category Jumper 1.0
Comment Protection 2.0
Custom Styles 2.1
Discussion Filters 2.0
Extended Application Form 1.0
Extended Text Formatter 1.2
Flickrizer 0.3
Hidden Text 1.4
Hide Success 1.0
Html Formatter 2.3
Legends 1.0
LiveSearch 1.1
Low-Cal Vanilla 0.4.1
New Applicants 1.3
Panel Lists 1.2
Preview Post 2.5.1
Private Accounts 1.0
Quick Keys 1.0
Quicktags 0.5
Quotations 1.5
RSS2 Feed 1.0.2
Role History 1.0
Text Mode Switch 2.0
Thankful People 1.1
Transmogrifier 1.1
Vanillacons 1.1
Vanillazilla 1.0.1
Who's Online 1.2
----------------
As an aside - that is a fair few extensions. I didn't think I had that much in there :P
$Configuration['THANKFULPEOPLE_VERSION'] = 1;
in conf/settings.php?---
Hidden Text # 27:
New question:
I've been finding my Database.php file is getting wiped out, and replaced with just ?> . After fixing it today, I changed the permissions of it from 777 to 755. Now hidden comments is giving me a configuration error/warning on my form saying changes can't be saved.
Why does hidden text care about the permissions of my database.php?
Update:
So I set the permissions of my database.php file to 755, and my users started getting this error when they tried to login:
Notice: Undefined variable: NoticeCollector in
/****/forums/extensions/HiddenText/default.php on line 43
Fatal error: Call to a member function AddNotice() on a non-object in /*****l/forums/extensions/HiddenText/default.php on line 43
Line 43 is:
$NoticeCollector->AddNotice($Context->GetDefinition('ErrCreateConfig'));
---
I turned off the HiddenText extension and that fixed it all up.
@Dinoboff - yes I do.
if (!AppendToConfigurationFile($Configuration['APPLICATION_PATH'].'conf/settings.php', '')) $Errors = 1;
That could be bad for settings.php.
But It can't be bad for database.php.