Jump to content

Help, I deleted my configuration.php file before upgrading.


catalano

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

<?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

Link to comment
Share on other sites

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 by catalano
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

$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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated