catalano Posted October 21, 2013 Share Posted October 21, 2013 I backed up my sql database before attempting the upgrade but not the directory itself. So when I uploaded my new whmcs directory to my server I lost the existing configuration file. Is there a way to get a dummy one that I can edit so that I can continue the upgrade without the script thinking I want a new installation? Thanks, CJ 0 Quote Link to comment Share on other sites More sharing options...
ufshane Posted October 21, 2013 Share Posted October 21, 2013 its in the full version, its saved as configuration.php.new just download or look in your whmcs root folder and edit it with your info 0 Quote Link to comment Share on other sites More sharing options...
catalano Posted October 21, 2013 Author Share Posted October 21, 2013 Unfortunately, the file configuration.php.new in the full 5.2.10 version is a blank document. So I have no idea of knowing what should be in there. its in the full version, its saved as configuration.php.new just download or look in your whmcs root folder and edit it with your info 0 Quote Link to comment Share on other sites More sharing options...
ufshane Posted October 21, 2013 Share Posted October 21, 2013 <?php $license = ''; $db_host = ''; $db_username = ''; $db_password = ''; $db_name = ''; $cc_encryption_hash = ''; $templates_compiledir = ""; $attachments_dir = ""; $downloads_dir = ""; $customadminpath = ''; $api_access_key = ""; ?> Here is mine with the sections cleared out 0 Quote Link to comment Share on other sites More sharing options...
catalano Posted October 21, 2013 Author Share Posted October 21, 2013 (edited) Thanks Ufshane, The first 5 lines and customadminpath are no problem. I have that info. I'm not sure about the others, though. Are those used in a basic installation? <?php $license = ''; $db_host = ''; $db_username = ''; $db_password = ''; $db_name = ''; $cc_encryption_hash = ''; $templates_compiledir = ""; $attachments_dir = ""; $downloads_dir = ""; $customadminpath = ''; $api_access_key = ""; ?> Here is mine with the sections cleared out Edited October 21, 2013 by catalano 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted October 21, 2013 Share Posted October 21, 2013 Although you don't have a backup from immediately before you deleted it, do you not have a nightly/offsite/other backup? Surely you do. 0 Quote Link to comment Share on other sites More sharing options...
ufshane Posted October 21, 2013 Share Posted October 21, 2013 not sure about the cc hash, but the compile dir points to the location of your templates_c folder and the attachements and downloads dir is optional if you moved them the customadminpath is if you change your admin directory name and the api access key is not needed 0 Quote Link to comment Share on other sites More sharing options...
catalano Posted October 21, 2013 Author Share Posted October 21, 2013 Unfortunately, I don't have the backup. Hostgator will restore it for $15. I was used to my previous host automatically providing free weekly backups. Lesson learned! - - - Updated - - - Looks like the cc_encryption_hash is critical as it contains all of the clients passwords for their accounts plus anyone's credit card details. Think I might have to bite the bullet and pay Hostgator for the restore of the old file. not sure about the cc hash, but the compile dir points to the location of your templates_c folder and the attachements and downloads dir is optional if you moved them the customadminpath is if you change your admin directory name and the api access key is not needed 0 Quote Link to comment Share on other sites More sharing options...
mlew2 Posted October 21, 2013 Share Posted October 21, 2013 Unfortunately, I don't have the backup. Hostgator will restore it for $15. I was used to my previous host automatically providing free weekly backups. Lesson learned! - - - Updated - - - Looks like the cc_encryption_hash is critical as it contains all of the clients passwords for their accounts plus anyone's credit card details. Think I might have to bite the bullet and pay Hostgator for the restore of the old file. Man oh man $15 to restore a site??? that is crazy it isn't that big a job to do, like you said lesson learned. PS start grabbing backups from cpanel save alot of hassle and cash 0 Quote Link to comment Share on other sites More sharing options...
ufshane Posted October 21, 2013 Share Posted October 21, 2013 Before you spend that money, go to cpanel and look for the back up section and see if there is any options to download past back ups... if so you can unzip it on your pc and extract the config file yourself 0 Quote Link to comment Share on other sites More sharing options...
Damo Posted October 21, 2013 Share Posted October 21, 2013 $15 is not a lot money. Seriously. You should be maintaining your own backups anyway. WHMCS contains a lot (if not all) your customers details. If you lose that then you lose your business. Take some responsibility for your own business and the details of your customers. Why you are running WHMCS on a shared hosting environment in the first place is beyond me too. 0 Quote Link to comment Share on other sites More sharing options...
slim Posted October 22, 2013 Share Posted October 22, 2013 15 bucks is cheap. I agree with Damo. 0 Quote Link to comment Share on other sites More sharing options...
mlew2 Posted October 22, 2013 Share Posted October 22, 2013 15 bucks is cheap. I agree with Damo. But most do it for free..... It really is an easy thing to do 0 Quote Link to comment Share on other sites More sharing options...
bear Posted October 22, 2013 Share Posted October 22, 2013 You need to own your mistakes. Personally, I'd just pay it and get back to conducting my business, lesson learned. And get off shared with your billing system if you can. It's less safe. 0 Quote Link to comment Share on other sites More sharing options...
msaunders Posted October 22, 2013 Share Posted October 22, 2013 But most do it for free..... It really is an easy thing to do It costs hosting companies money to store backups of thousands of shared hosting accounts. Some hosts charge , some don't. $15 is nothing especially if its business related and I would agree get your WHMCS off shared hosting, not ideal. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.