Hey - I've put this in general discussions as it's more something I'm playing with than actually needing to do right now.
I'm hoping at some point in the future to migrate our osTicket system from a cPanel environment to a dedicated server (mainly due to throttling of the cPanel server causing some slowness).
Anyway, I managed to migrate everything successfully, however, images/files that were NOT stored in the database show blank. I have migrated all the data in the 'filedata' folder which is where things are stored (the 'Attachments in the Filesystem' plugin). However, this didn't seem to help.
I did however notice that there were a lot of 'hidden' files within this directory. These were migrated too but I'm unsure if they kept their attributes etc. Just wondering if anyone has experienced similar and how did they resolve it? Again, not really an issue for me as it's not the end of the world - so if nobody has any suggestions please do just close the thread. For clarity, this is an Apache to Apache migration. From a cPanel environment running on CloudLinux, to Ubuntu 20.04. Running the latest versions of everything.
Migrating with attachments in filesystem
And, of course, thank you to anyone in advance for any suggestions/advice. It is greatly appreciated!
- Best Answerset by KevinTheJedi
Sounds like maybe a permissions/ownership issue. Make sure the entire attachment folder and all subsequent folders/files have appropriate permissions and ownership so that PHP can read/write.
Cheers.
Thank you - I just SSH'd into the cPanel server and yes I got a permission denied error on that folder. Just changed the permissions. Thanks for pointing me in the right direction.. Feel stupid for not thinking of that myself - it threw me a little that I could see some files, so I didn't realise there were more that I had no access to!
Yea switching servers always gives you some sort of permissions issues as itโs all new users and groups lol Glad it was simple!
Cheers.