Jump to content

Link to database


Recommended Posts

Hello,

I have made a Prestashop web shop for a customer on my own host and I moved it to the customers host but now I get the following message when i visit the site:

Link to database cannot be established.

I gave all the folder the correct permissions recursively. And i changed my config/settings.inc.php to:

define('__PS_BASE_URI__', ''); // cause it is in the root folder: /public_html
define('_THEME_NAME_', 'luxurygold');
define('_DB_NAME_', 'deb44635_webshop');
define('_DB_SERVER_', 'localhost');
define('_DB_USER_', 'deb44635_amke');
define('_DB_PREFIX_', 'a_');
define('_DB_PASSWD_', '********');
define('_DB_TYPE_', 'MySQL');
define('_COOKIE_KEY_', 'VNdEVi33uYHwcsVnr6v8iIBV2nssqGb7Hq8gr5OxjWIyJXFPhIJTM7JM');
define('_COOKIE_IV_', 'sC4MLCn7');
define('_PS_VERSION_', '1.3.6.0');

Why is the website not working?

So i thought lets try a clean new installation. It worked fine.

- I downloaded prestashop from www.prestashop.com
- Placed it on the customers host
- Installed it giving all the correct permissions and the same database credentials
- And suddenly it worked.

off-course i did this in a /test/ folder

So why doesn't the one from my host work? can it have anything to do with '_COOKIE_KEY_' ??? or with define('__PS_BASE_URI__', '') ???

Kind regards,

T. Barbillion
i2imedia

Link to comment
Share on other sites

Is it possible that my

define(’COOKIE_KEY‘, ‘VNdEVi33uYHwcsVnr6v8iIBV2nssqGb7Hq8gr5OxjWIyJXFPhIJTM7JM’);
define(’COOKIE_IV‘, ‘sC4MLCn7’);

Are not correct anymore because i changed the host?

Please help i just cant get it to work.

Link to comment
Share on other sites

This was not my problem i just did everything again and searched on the internet for what folder to chmod and wich files. and it worked.

so put the files on the server again and change your db settings.

after that:

"While you have your FTP connected to your Web hosting server, make sure the following PrestaShop folders have ‘write’ permissions (also known as “CHMOD 777” – explanation of file permissions here) but do not apply these permissions recursively (to their subfolders): /config, /upload, /download, /tools/smarty/compile. Then make sure the following folders have ‘write’ permissions and apply these permissions recursively (to their subfolders): /img, /mails, /modules, /themes/prestashop/lang, /translations"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...