Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Need help with CHOWN command that destroyed my website

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
specon
Posts: 1
Joined: Sat Jan 02, 2016 11:51 am

Need help with CHOWN command that destroyed my website
  • Quote

Post by specon » Thu Jan 24, 2019 2:16 pm

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
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password