its a shame all the tutorials and how-tos and problem-solving on the internet are so out of date. I haven’t found any for silverstripe 4 only silverstripe 3 that is supposedly discontinued by now. Even on the silverstripe website they don’t give a warning about this. They are really missing a trick - their system is sooo easy for beginners to get started with and learn programming if they would just give some help to get past that first hurdle of installing it.
@Joe fyi I fixed the problem! Thank you so much for helping me.
In case the issue comes up again this is what sorted it: my file permissions had a dot after them which none of the file permission guides online showed. According to google, SELinux puts them there and silverstripe hates SELinux and wants it to be disabled. But I couldn’t find anywhere online instructions how to do that - just lots of people saying it’s a really bad thing to do! So, it turns out that all that’s needed is to change the SELinux so the folder has the “httpd_sys_rw_content_t” which lets apache do read and write when it is set by regular permissions
Thanks, I haven't got as far as setting up the database yet so I'll give that a try or it's pretty easy to delete the whole folder & begin again so I might just take the lazy route 😉
Thanks @Joe Maybe it is digital ocean - ill email them to see if they now. Or maybe someone else here already knows the answer?? I hope so!! In the meantime i will see if I can figure out how to force it to get version 4.1.2 of silverstripe since that is the one that worked on my laptop
in case it helps, silverstripe is v. 4.2.0, apache is v. 2.4.34, and php is v. 7.2.8
For some reason the silverstripe installer isn’t recognising the group and permissions. I created a new group (called “silverstripe4”), added me, apache, and root to it. logged out (exited ssh) & logged in again. Deleted silverstripe project folder. Created new folder in var/www & changed owner to me, changed to new silverstripe4 group, and set group write permissions. ran composer inside there to get new silverstripe installation. changed group (with -R) of everything to silverstripe4 group and added group write permissions to everything. changed virtualhost .conf again with new webroot and directory. went to website in chrome & got red file errors again. It said files are owned by me and need to be writable by apache. it tells me to chmod g+w and chgrp silverstripe4!! so it can see and understand my users and groups but doesn’t recognise that the files already have the correct permissions!! Anybody got any ideas????
hmmm, I think it might be some other problem - I temporarily changed 1 file (theme.yml) to 777 but it still complains that it isn’t writable so there must be something else going on.
originally on the server it wanted the owner changing since it was root and theres no group with both root and apache. it suggested creating a new group as an option but i don’t know how to do that & thought just changing the owner to apache would be enough
when i set it up on my laptop I got bored typing to change the owner of each file so i just changed the entire folder using -R. but for that it didn’t want to change the owner, just allow group write and change group to com.apple.sharepoint.group.1
yes, thats what I thought based on the lessons, but either way it doesn’t worked.