By Thebe Phele
I was not able to update plugin in my wordpress so I followed a tutorial that said I should run the following command: chown -R www-data:www-data *
After running the command, the following was all I can see when i visit my site:
Forbidden You don’t have permission to access / on this server. Apache/2.4.29 (Ubuntu) Server at vplaya.com Port 80
Any help will be appreciated
Thank you, Thebe
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What do these commands return:
ps -elf|grep httpd
grep '^User\|^Group' -r /etc/apache2/conf
And run this after you’ve visited the site so the error is logged right then:
tail /var/log/httpd/error_log
Hi Unixynet,
I figured out that hat command that I ran initially actually deleted the entire www folder, so I had to replace content with the backup. It’s all good now and I guess I will have to find an easier way to update plugins that to destroy my site with some nasty commands like I did.
Thanks for the reply though, much appreciated.
Regards, Thebe
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.