Change Cron Password

In 2.2.x, if I go to Administration > Data Feeds it display a “cron_password” on the left. How would I go about changing this password and if I change it will it affect any other part of the site?

Hello knoxbury,


[quote name='knoxbury' timestamp='1341865342' post='140225']

In 2.2.x, if I go to Administration > Data Feeds it display a “cron_password” on the left. How would I go about changing this password and if I change it will it affect any other part of the site?

[/quote]



Thank you for your message.



As far as I understand, you mean the following part located in the Notice section on the left of the Data feeds page in your CS-Cart admin panel:


--cron_password=MYPASS



In order to change this password (which is set as MYPASS by default after installing the Data feeds add-on) you should do the following:


  1. In your CS-Cart admin panel, go to Administration > Add-ons.
  2. Click on the Edit link of the Data feeds add-on.
  3. Change the password in the appropriate field and click the Save button.



    Note that changing this password will affect nothing in your CS-Cart store, but it will affect only the line which should be used to run the export script by cron. For example, if you change the password to mynewpassword, the line that should run the script according to schedule will look as follows (e.g.):


php /path/to/cart/admin.php --dispatch=exim.cron_export --cron_password=mynewpassword



Thank you.





Pavel Zyukin

CS-Cart Support team

Thanks, but wasn't there a password that we had to select when we installed CS-Cart? Where can I find that password?

Hello knoxbury,



Thank you for the reply.



Yes, you are right, there is a request for password when installing CS-Cart. It is required to enter your MySQL password into the text input field of the same name. This password is stored in the following line of code in the config.local.php file located in the root directory of your CS-Cart installation and it looks as follows (e.g.):


$config['db_password'] = 'password';



Also it is required to specify a secret key to encrypt order data (though it is not quite a password). As you can guess, this key is used to encrypt order data of a customer before inserting it to the database. This secret key is stored in the following line of code in the config.local.php file as well and it looks as follows (e.g.):



$config['crypt_key'] = 'YOURVERYSECRETKEY';




Please note that if you had already specified this key when you were installing CS-Cart and you have orders placed in your store, you should not change this key to a new one. If you change it, info about new orders will be decrypted and displayed (on the order details page in the storefront and in your CS-Cart admin panel) properly, however info about the old orders will not be decrypted properly as long as a new secret key will be used for decrypting in this case. I hope this makes sense.



Thank you.





Pavel Zyukin

CS-Cart Support team

Thanks for the helpful explanation.

You are welcome.





Pavel Zyukin

CS-Cart Support team