| Author |
Message |
|
hardy
|
Post subject: Reinstall using existing database Posted: Thu Mar 29, 2012 12:33 am |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
After changing my database password I have been unable to change the files (config.php in root directory of Phreebooks and in my_files directory right?) and have been unable to access the program. Is it possible to reinstall over the existing installation (or a new install) using the existing database entries. Basically only installing the zip file again without writing the database tables? I tried a new install in a different directory but got SQL errors after the initial install setup screen. I am using the latest version of Phreebooks. Thanks for your help!
|
|
 |
|
 |
|
alvin
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 7:17 am |
|
Joined: Wed Nov 21, 2007 10:30 am Posts: 569
|
you should have no problem changing the config.php file, it should look like this: Code: <?php /* config.php */ define('my_erp_my_TITLE','my company'); define('DB_SERVER_USERNAME','my_user'); define('DB_SERVER_PASSWORD','xwrz423'); define('DB_SERVER_HOST','myerp.myhosting.com'); you will of course need to make sure the define is correct for your server? Even if you re install, you will need to know the db user and password...
_________________ Alvin
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 8:15 am |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
I had a situation where the permissions were not set properly (I don't know if it was because the installer created those files as opposed to an ftp upload?). Anyways, I got my host to change all permissions but even after replacing the config files with those from an offline backup phreebooks would not load, just a blank screen (no errors). I would like to try a reinstall anyways, are there any options to run the install script without the SQL? Thanks
Or is there something else that also has to be changed in the phreebooks database files to get the new password to work with the existing install?
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 9:48 am |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
Just an update... I have no idea why my previous install suddenly goofed up, I did a second install in a new folder with the new database info. The install erased my 'configuration' table, luckily I diligently backup so I just emptied the table and inserted my backup table. I can now access again through the new folder. If only I could figure out why the old one is being so difficult...
Long story short: Reinstall works with fresh install but make sure your database is backed up (should be anyways) and you can edit it in your control panel.
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 10:11 am |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
Upon further inspection... I can log in, everything looks great & my contacts/vendors/etc are there but I can't edit or change anything and when I try to bring up past invoices (invoice manager) they are blank... ?
|
|
 |
|
 |
|
dave
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 5:17 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
Check the paths and access information in the /includes/configure.php file and the /my_files/COMPANY_DB_NAME/config.php file. This is where all your access information is located. If you moved/deleted files, you will need to restore any files in the /my_files/COMPANY_DB_NAME/ directory as there are application files that are created and installed here to generate reports, store attachments, etc.
Dave
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Thu Mar 29, 2012 9:23 pm |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
The path seems fine in configure, as well as the config file in my DB_NAME folder.
I just noticed that my previous install was 3.1... would that effect the reinstall if I used the current version 3.4? I can log in, see my contacts & find previous invoices/inventory/etc. But I can't click on any of the contacts (previously the search contacts dialog box would come up, I would choose the customer & click them, then the invoice manager screen would populate with their contact info... Now it does nothing when clicking). I looked in my database directory (under my_files) many of the folders are empty; contacts,inventory,phreebooks, shipping. The only one with anything in it is phreeform... was this just an incomplete install? How would I get the rest of those files in there without the installer hanging at the SQL database creation?
|
|
 |
|
 |
|
dave
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 1:13 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
I did a lot of JavaScript work since 3.1 Check your JavaScript error log in FireFox and post anything you find here. If 3.4 sees the db set at 3.1 it will automatically upgrade the db to the newest level. It's possible the upgrade failed and now there is a field missing or that hasn't been upgraded causing the trouble.
Dave
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 1:55 pm |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 2:03 pm |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
 |
|
 |
|
dave
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 2:55 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
First go into currencies and set the decimal places to a integer, it looks like you have it set to null. The reset may be a symptom of the decimal places not set. Be sure to set the precise also. Even 0 is OK.
Dave
|
|
 |
|
 |
|
hardy
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 3:18 pm |
|
Joined: Fri Jul 29, 2011 8:26 am Posts: 14
|
|
Thanks Dave,
After the updated install the currencies table was rewritten, and I had added CDN as an additional currency originally so that might have thrown it off... I updated the DB and can again access invoices & adjust customer info (via customer manager). I hope that's it, is there anything else that my dirty reinstall might have overwritten in the original DB? It seems like updating from 3.1 to 3.6 is not too bad (even accidentally) as long as you can reinsert your currencies & configuration tables. Anything else I'm missing?
Thanks again!
|
|
 |
|
 |
|
dave
|
Post subject: Re: Reinstall using existing database Posted: Fri Mar 30, 2012 4:54 pm |
|
Joined: Fri Oct 26, 2007 3:55 pm Posts: 3498 Location: Colorado, US
|
|
Hard to say as I haven't tried this but if you run into anything, post it here.
Dave
|
|
 |
|
 |
|
Russelwio
|
Post subject: Re: Reinstall using existing database Posted: Mon Oct 29, 2012 6:56 am |
|
Joined: Mon Oct 29, 2012 6:31 am Posts: 3
|
|
In plesk it is usually a case of copying the db folder, pasting it in new install, then making the same user db with same db name and password, as these values are already stored in the old script.
|
|
 |
|
 |
|