Hi everyone, I should bring the suitecrm project to another server, what do you think is the easiest, fastest and most appropriate way to do it?
I simply copied the entire project to the new server and created the DB, then imported the old one. Is this the correct way?
Because in this way it gives me login problems, as if it does not see the user, but it exists in the DB.
This is a bit old but mostly still applies
I tried to read carefully, so if I understood correctly, the procedure is correct?
- Copy the entire project folder (without cache - but which one? SuiteCRM/cache? Or another?)
- Create the DB on the new server and import it from the old
Right? Did I understand correctly? Some things were not very clear
The SuiteCRM instance folder that contains all the files and directories.
You must check the suitecrm_version.php file to determine the SuiteCRM version. On the new server, ensure that the MySQL/MariaDB version is compatible with the SuiteCRM version mentioned in this file, as well as the PHP version.
Thanks for sharing !
Yes, I know the compatibility table, but that’s not what I asked for. I just wanted to know if it’s correct to move my project to another server
- copy the entire folder to the new server (without cache - but I don’t know which cache is necessary to delete)
- create a new DB and import the old one
“cache” refers to a directory on the top level of your SuiteCRM installation. You can leave it out of your copy.
To export/import the DB, it depends on how you generate the SQL dump; it might include “CREATE DATABASE” commands or not. So I suggest that first you try importing without creating the new DB first; if that fails, create it and run the import again.
Ok, yes, so the cache to delete is Suitecrm/cache and for the DB I exported the .sql file from the old system… I had already tried to import it without creating it, but it gave me an error and I imported it by creating an empty one first.
Ok, so the procedure I followed is correct (the only thing I didn’t do was the preventive deletion of the cache).
Thanks
Having the cache folder there, or not, won’t make a difference. It’s just a matter of not being a necessary folder to backup.
ah, so we’re just talking about uselessness, but moving it doesn’t cause any problems, did I understand correctly?
@pgr the legacy/cache folder is necessary to move in SuiteCRM 8 and the /cache/ folder is necessary to move in SuiteCRM 7. There is stuff in there that is not typical “cache” files and are necessary.
The requester didn’t specify SuiteCRM 8, so it’s important to note this difference.