This isn’t a question, just a tip that I hope someone finds useful. :)
By default, your Apache logs get stored in /etc/apache2/error.log. The trouble with this location is that only the root user (not your sudo user) can access them. You can make them more accessible by having them written out to your user’s folder.
ErrorLog ${APACHE_LOG_DIR}/error.log
ErrorLog /home/<user>/logs/apache_errors.log
sudo /etc/init.d/apache2 restart
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Why /home//logs/apache_errors.log
has double slash?
Sudo/etc/unit.dapace2 restate <br> <br>
Thanks for the tip! :)
The Apache user is usually www-data, then remember after pointing this folder, leave the Apache as owner of it:
Thank you so much! You just saved me a couple hours of pointless searching (: