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.andreapollastri.net
1.09k stars 226 forks source link

403 after installation #433

Open jonatandorozco opened 2 years ago

jonatandorozco commented 2 years 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 2 years ago

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

jonatandorozco commented 2 years ago

I'm using DigitalOcean. And yes with root rights

Alnaggar94 commented 2 years 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