i2imedia Posted March 24, 2011 Share Posted March 24, 2011 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_htmldefine('_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/ folderSo 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. Barbillioni2imedia Link to comment Share on other sites More sharing options...
i2imedia Posted March 24, 2011 Author Share Posted March 24, 2011 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 More sharing options...
i2imedia Posted March 26, 2011 Author Share Posted March 26, 2011 Solved.. I dont know how but i just did everyting again and it worked.. Link to comment Share on other sites More sharing options...
i2imedia Posted April 1, 2011 Author Share Posted April 1, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now