LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-21-2009, 09:42 AM   #1
rajareddy.gvr
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
ErrrorLog issue: Cannot see any log files in Apache Linux


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
 
Old 10-21-2009, 10:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,806

Rep: Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973Reputation: 6973
Quote:
Originally Posted by rajareddy.gvr View Post
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?
 
Old 10-21-2009, 10:31 AM   #3
rajareddy.gvr
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

The version of my Linux is,
Red Hat Enterprise Linux Server release 5.1 (Tikanga).

To install my Apache (2.2.14) I compiled source.

There is NO access log, error log created, also I do NOT see /var/log/apache2 directory itself.

Thanks
 
Old 10-21-2009, 10:40 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
start like this and check
/usr/local/apache2.2.14/bin/httpd -k start

Quote:
/usr/local/apache2.2.14
is this your prefix path?

Last edited by kirukan; 10-21-2009 at 10:42 AM.
 
Old 10-21-2009, 11:29 AM   #5
rajareddy.gvr
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, /usr/local/apache2.2.14 is my prefix path.

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"

but I think, it is NOT able to identify the above paths and the result is I cannot see any log files under the "/usr/local/apache2.2.14/logs/" folder!

Pls. help.
 
Old 10-21-2009, 11:50 AM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
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)
 
Old 10-21-2009, 12:33 PM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Permissions on the directories?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache log files problem mahmoud Linux - Server 1 04-18-2008 06:44 AM
Apache Proxy log issue knarfling Linux - Server 2 12-20-2007 08:57 PM
Apache log files ikarus Linux - Server 2 04-21-2007 09:52 PM
multiple log files in apache Red Squirrel Linux - Software 1 09-27-2005 12:42 AM
Question on Apache Log Files JLDixon Linux - Software 1 10-12-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration