I know you can do /var/logs but I don’t know what to do, how do I read the files, because my website is refusing to connect even though I have dns and everything else configured correctly so how do I view my logs as it could be the droplet rejecting my request?
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!
Hi there,
To view the last entries of your logs you can use the tail command.
So for example, if you have an Apache service you can view the last 100 lines of the Apache error log with the following command:
tail -100 /var/log/apache2/error.log
You can also use the ls command to view all of the log files inside the /var/log folder:
ls -l /var/log
Then you can choose which log file exactly you would like to check.
Hope that this helps. Regards, Bobby
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.