ErrrorLog issue: Cannot see any log files in Apache Linux
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I CANNOT see any log files under my Linux directory!!!
/usr/local/apache2.2.14/logs
I see ErrorLog entry in the httpd.conf file like the below.
ErrorLog "logs/error_log"
Also,
when I start the server using the command,
/usr/local/apache2.2.14/apachectl -k start
what is log that I need to look into? Any of you have any clue please let me know as it is pretty urgent for me.
Thanks,
Raja
Not urgent for anyone else here, so don't flag your posts as urgent. If you need urgent support, pay for it through RedHat enterprise, SUSE, etc., and they'll be there for you. Otherwise, we volunteer our time here, so asking us to hurry is very rude.
You don't provide useful information, such as version/distro of Linux, or how you installed Apache (did you compile via source, or did you install via package?), so it's hard to help. Do you see an access log created? Is there data in it? Have you checked the /var/log/apache2 directory?
OK, my only problem is somehow log file paths (for error_log and for access_log) that I specified in httpd.conf against ErrorLog and CustomLog directives respectively are not being identified by Apache and it is not able to create/identify the log files from the logs directory.
For example,
in my /usr/local/apache2.2.14/conf/httpd.conf file, I have specified that,
ErrorLog "/usr/local/apache2.2.14/logs/error_log"
and
CustomLog "/usr/local/apache2.2.14/logs/access_log"
I think you don't need to create this path manually, httpd will do this automatically at your prefix location when you first start the services. Even if you delete those log files it will generate on next service restart (but if we manually touch the log file it won't update by httpd)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.