Jump to content

dont overwrite the configuration file!!!


generic

Recommended Posts

dont overwrite your configuration.php file like i did when i upgraded my beta version, had to have my noc recover the file for me.

 

just in case in the future, for example if I could not recover the file, can we just back up the database and reinstall it, then reup the database, or will that just mess everything up.

Link to comment
Share on other sites

  • WHMCS CEO

There'll only be a problem if you overwrite it, you store clients credit card information in your database and you don't have a copy of the cc encryption hash. Otherwise it's easy to just recreate the file should it be overwritten.

 

Matt

Link to comment
Share on other sites

Ya, happened to me aswell. I think the basic Package should come with configuration.php.new and when someone is trying to upgrade he wont have problems of configuration.php being overwritten :shock: and new Installation can show an ERROR to rename configuration.php.new to configuration.php, pretty much like all PHP scripts work :roll:

Link to comment
Share on other sites

Ya, happened to me aswell. I think the basic Package should come with configuration.php.new and when someone is trying to upgrade he wont have problems of configuration.php being overwritten :shock: and new Installation can show an ERROR to rename configuration.php.new to configuration.php, pretty much like all PHP scripts work :roll:

 

Might be a simple minded thing, but it sounds great to me. Good suggestion.

 

:)

Link to comment
Share on other sites

Ya, happened to me aswell. I think the basic Package should come with configuration.php.new and when someone is trying to upgrade he wont have problems of configuration.php being overwritten :shock: and new Installation can show an ERROR to rename configuration.php.new to configuration.php, pretty much like all PHP scripts work :roll:

 

Might be a simple minded thing, but it sounds great to me. Good suggestion.

 

:)

 

I agree as well. But since the file has to be writable anyway, why not give the script the ability to automatically rename it if the original isnt there.

 

Basically, have it be configuration.php.default. If configuration.php isnt there, it would rename configuration.php.default to configuration.php and write to it. Less work for the installer. =P

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