re-installation prevention?
Hi,
I am a newbie to vanilla. I installed it in an PAAS environment with no problems. Everything seemed to be working fine. I then added a new theme and uploaded the project along with the new theme to my PAAS. This seems to have over-written an important file, because now when I hit the URL for the application, it is attempting to do the installation all over again. This is a problem since I already have content in my database.
What do I need to change to prevent the re-installation?
Tagged:
0
Comments
Why did you re-upload everything and not just the theme? Anyways, do you have a config.php file in the
/configfolder?Good question. It turns out I only uploaded the theme. However, it appears to go to a staging area on the server. So then the staging area over wrote something. My local copy does not have a config.php file in the conf directory (Im assuming that is where I would find it).
yep config.php needs to be in conf/config.php you could copy config-defaults.php to config.php and modify the four lines. $Configuration['Database']['Host'] = 'dbhost'; $Configuration['Database']['Name'] = 'dbname'; $Configuration['Database']['User'] = 'dbuser'; $Configuration['Database']['Password'] = 'pass'; or you might use this as a base and modify accordingly ... and change the above.... <?php if (!defined('APPLICATION')) exit(); // Addons $Configuration['Addons']['Version'] = 'Undefined'; // Conversations $Configuration['Conversations']['Version'] = '2.0.18.4'; // Database $Configuration['Database']['Name'] = 'vanilla'; $Configuration['Database']['Host'] = 'localhost'; $Configuration['Database']['User'] = 'user'; $Configuration['Database']['Password'] = 'vanilla'; // EnabledApplications $Configuration['EnabledApplications']['Vanilla'] = 'vanilla'; $Configuration['EnabledApplications']['Conversations'] = 'conversations'; // EnabledPlugins $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed'; // Garden $Configuration['Garden']['Title'] = 'Your Title'; $Configuration['Garden']['Cookie']['Salt'] = ''; $Configuration['Garden']['Cookie']['Domain'] = ''; $Configuration['Garden']['Email']['SupportName'] = 'Your support Name'; $Configuration['Garden']['Version'] = '2.0.18.4'; $Configuration['Garden']['RewriteUrls'] = FALSE; $Configuration['Garden']['CanProcessImages'] = TRUE; $Configuration['Garden']['Installed'] = TRUE; $Configuration['Garden']['Menu']['Sort'] = array('Dashboard', 'User', 'Activity', 'Discussions', 'Applicants'); $Configuration['Garden']['EditContentTimeout'] = '-1'; $Configuration['Garden']['Format']['Hashtags'] = FALSE; $Configuration['Garden']['InputFormatter'] = 'Markdown'; $Configuration['Garden']['Theme'] = 'EmbedFriendly'; $Configuration['Garden']['MobileTheme'] = 'mobile'; // Modules $Configuration['Modules']['Garden']['Panel'] = array('UserPhotoModule', 'UserInfoModule', 'GuestModule', 'Ads'); $Configuration['Modules']['Garden']['Content'] = array('MessageModule', 'Notices', 'Content', 'Ads'); $Configuration['Modules']['Vanilla']['Panel'] = array('NewDiscussionModule', 'SignedInModule', 'GuestModule', 'Ads'); $Configuration['Modules']['Vanilla']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'CategoryModeratorsModule', 'Content', 'Ads'); $Configuration['Modules']['Conversations']['Panel'] = array('NewConversationModule', 'SignedInModule', 'GuestModule', 'Ads'); $Configuration['Modules']['Conversations']['Content'] = array('MessageModule', 'Notices', 'NewConversationModule', 'NewDiscussionModule', 'Content', 'Ads'); // Plugins $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1'; $Configuration['Plugins']['GettingStarted']['Discussion'] = '1'; $Configuration['Plugins']['GettingStarted']['Plugins'] = '1'; $Configuration['Plugins']['GettingStarted']['Categories'] = '1'; $Configuration['Plugins']['GettingStarted']['Profile'] = '1'; $Configuration['Plugins']['GettingStarted']['Registration'] = '1'; // Routes $Configuration['Routes']['DefaultController'] = 'discussions'; $Configuration['Routes']['DefaultForumRoot'] = 'discussions'; $Configuration['Routes']['Default404'] = array('dashboard/home/filenotfound', 'NotFound'); $Configuration['Routes']['DefaultPermission'] = array('dashboard/home/permission', 'NotAuthorized'); $Configuration['Routes']['UpdateMode'] = 'dashboard/home/updatemode'; // Themes $Configuration['Themes']['EmbedFriendly']['SingleColumn'] = FALSE; // Vanilla $Configuration['Vanilla']['Version'] = '2.0.18.4'; $Configuration['Vanilla']['Discussions']['PerPage'] = '10'; $Configuration['Vanilla']['Comments']['AutoRefresh'] = '0'; $Configuration['Vanilla']['Comments']['PerPage'] = '10'; $Configuration['Vanilla']['Comments']['AutoOffset'] = TRUE; $Configuration['Vanilla']['Archive']['Date'] = ''; $Configuration['Vanilla']['Archive']['Exclude'] = FALSE; $Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3'; $Configuration['Vanilla']['Categories']['DoHeadings'] = FALSE; $Configuration['Vanilla']['Categories']['HideModule'] = FALSE; $Configuration['Vanilla']['Discussion']['SpamCount'] = '3'; $Configuration['Vanilla']['Discussion']['SpamTime'] = '60'; $Configuration['Vanilla']['Discussion']['SpamLock'] = '120'; $Configuration['Vanilla']['Comment']['SpamCount'] = '5'; $Configuration['Vanilla']['Comment']['SpamTime'] = '60'; $Configuration['Vanilla']['Comment']['SpamLock'] = '120';I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Hi peregrine,
I attempted to use your file, with changes to the database lines. I got the following error:
Fatal error: Call to a member function DefinePermissions() on a non-object in /var/lib/openshift/33b96e22edb64faa8d95f1661d9bf8ea/app-root/runtime/repo/php/library/core/class.session.php on line 318
Looks like we got further than I did before, but something is still missing.
@javart1 said:
try deletingall your ini files in your /cache. It may or may not solve.
otherwise
also check with phpmyadmin if you have data in your permissions tables and other tables.
It sounds like a quagmire. Perhaps the easiest solution
Backup your database. Reinstall vanilla. Import your database.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I would also read this carefully and all of the links provided in the thread...
http://vanillaforums.org/discussion/comment/168277/#Comment_168277
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thank you. I got some good practices to follow from that discussion thread.
For my installation, I decided that my database did not have any critical content, so I just threw it out and did a reinstall. Everything is back up and running. This time I got a backup of my config.php.