andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.sh
1.08k stars 224 forks source link

403 after installation #433

Open jonatandorozco opened 1 year ago

jonatandorozco commented 1 year ago

I just installed Cipi on Digital Ocean droplet. I got no errors during the process but when I'm trying to get to the dashboard I get 403 response

image

Alnaggar94 commented 1 year ago

What's the cloud provider you use? Did you run the installer script with root privilege?

jonatandorozco commented 1 year ago

I'm using DigitalOcean. And yes with root rights

Alnaggar94 commented 1 year ago

That's strang I have never had this issue with Cipi, This error related to some permission not right.

Try the following commands and run them as the root:

sudo chmod -R o+w /var/www/html/storage
sudo chmod -R 775 /var/www/html/storage
sudo chmod -R o+w /var/www/html/bootstrap/cache
sudo chmod -R 775 /var/www/html/bootstrap/cache
sudo chown -R www-data:cipi /var/www/html
sudo systemctl restart nginx.service
sudo service php7.4-fpm restart
sudo service php8.0-fpm restart
sudo service php8.1-fpm restart