By Thaer
Hello,
I needed to edit some permissions so i went to log in into Ajenti to do so, But i couldn’t load the script so i went to restart the server via “shutdown -r now” using SSH and after that only one website works fine but the others i got 403 forbidden error.
Note 1 : I have virtual hosts to host multiple websites. Note 2 : Every time in the SSH after each command i got “sudo : error to resolve host”.
Any ideas ?
Thanks.
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!
Two things to check (assuming your machine is called my-machine, you can change this as appropriate):
127.0.0.1 localhost.localdomain localhost
37.187.98.128 my-machine server1
If either of these files aren’t correct (since you can’t sudo), you may have to reboot the machine into recovery mode and make the modifications, then reboot to your usual environment.
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.