givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
239 stars 49 forks source link

failed to open stream - error & fatal error if go admin panel #73

Closed iffinland closed 5 months ago

iffinland commented 5 months ago

Screenshot 2024-01-27 21 13 47

I see this error if i go address http://myremoteVPSipaddress/admin/?module=settings/sites

VVVEB is installed on a VPS server running ubuntu

givanz commented 5 months ago

This happens because php does not have write permission for storage folder.

If this is a test site a quick fix is to run

sudo chmod  -R 0777 /var/www/html/storage

replacing the path with vvveb storage folder.

A better fix is to set the owner first and set stricter permissions

sudo chown -R www-data:www-data /var/www/html/storage
sudo chmod  -R 0755 /var/www/html/storage
iffinland commented 5 months ago

Thank you man, I hadn't used a personal web server in a long time and I had forgotten such a basic thing. I'm sorry for wasting your time