I have CMS and site/blog page.
Testing locally this works fine. When I upload to a Amazon Linux 2023 server the blog entries, the collection does not show anything.
This has worked before.. I just checked out v2 of Elements.
I checked php, checked the collections settings, set to the right /cms/posts folder. etc. etc. But I cannot make it work.
Any hints?
Worth checking the php version…
Elements CMS requires PHP 8.4 to be installed on your server.
We also have a log manager that may shed some light on the situation (If you’re running PHP 8.4 and it’s still not working).
Hi dan,
It is 8.4, being amazon linux 2023.
I also run two other sites on the same server, you helped me convert from Classic at the time.
The others work.
It might have to do with permissions or with groups or owners…
Gemini be thanked
- Set directory permissions and the ‘setgid’ bit
sudo chmod 2775 /var/www
find /var/www -type d -exec sudo chmod 2775 {} ;
2. Set file permissions
find /var/www -type f -exec sudo chmod 0664 {} ;
did the trick
So glad you got it sorted, and yes ChatGPT/Gemini are pretty damn good at helping resolve these kinds of issues ![]()