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 225 forks source link

can't delete sites #431

Open joyz76 opened 2 years ago

joyz76 commented 2 years ago

Hi, thanks for the good work.

I have a fresh installation on ubuntu 20.04, i set up a site, that's currently working. I had a typing error on the second one, and i wanted to delete it, but i cant. It simply does not delete it, no errore messages, nothing. Help!

Alnaggar94 commented 2 years ago

I think it might be a permissions issue, Try to run the following:

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

Same result, So i tryed to start over, formatted server, installed again... Same result :(

Alnaggar94 commented 2 years ago

Something not right, I'm using Cipi with multiple installation and never faced this issue. I think it might be the permission for the site user, when you create new site then upload the site files do you use the username created when you upload the files? Try to check who is the owner for the site files?

joyz76 commented 2 years ago

I think i found the problem. I made a new installation, and found that when i change the ssh port (i have many attempts on my 22) i can't delete the sites. Is there a way to change safely the ssh port?

Alnaggar94 commented 2 years ago

There is no such an option for doing that, you will have to do it manually and change all the reference port to whatever you want, In the end it's an open source project you can modify it the way it's suits you.

Maybe in the future Andrea will add a simple option for that.

arwinvdv commented 2 years ago

See https://github.com/andreapollastri/cipi/issues/425