Page 1 of 1

Need help with CHOWN command that destroyed my website

Posted: Thu Jan 24, 2019 2:16 pm
by specon
Hello all,

I am having some bad issues atm.
I wasn't able to update plugins on my wordpress website so i found a website i think of stackoverflow and i found out that i had to chmod 0755 www-data to the folder of my wordpress plugins
I did these commands in my terminal on my VPS and now my website is broken. I cannot see anything anymore. I am able to login on url/wp-admin but i can't see anything there. Also on the website itself i cannot see anything anymore.
Can somebody help me out please to revert the things i have done. Check below:

root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chmod -R 0755 wp-content/plugins/
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chown -R www-data wp-content/plugins/
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chown -R admin wp-content/plugins/

Script that i found here on vestacp from a user:
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chown -R admin:admin /home/admin/web/
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chown -R admin wp-content/plugins/
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# chown -R admin:admin /home/admin/web
root@vps588565:/home/admin/web/sr-run-trail.com/public_html# bash <(curl -s https://gist.githubusercontent.com/luka ... ermissions)
All Done.


I tried to chown back to user admin but that doesn't help.

Greetings