Find Log Files in Fedora Linux

Hello All,

    I have a virtual dedicated server from GoDaddy running Fedora.  We have a web company setting up a new website for the client.  I'm not a Linux expert at all but the web developer has requested log files for Apache and PHP as they are getting some errors.  My only access now is via SSH.  How can I grab those log files?  
LVL 6
bobohostAsked:
Who is Participating?
 
lnkevinConnect With a Mentor Commented:
I'm not a Linux expert at all ....

Since you say that I will give you some commands:

tail /var/log/httpd/error_log > /tmp/error_log
tail /var/log/httpd/error_log.1 > /tmp/error_log.1
......
tail /var/log/httpd/ssl_error_log > /tmp/error_log
tail /var/log/httpd/ssl_error_log.1 > /tmp/ssl_error_log.1

Your logs should be copied to /tmp so your can give them

K



0
 
lnkevinCommented:
You can use grep command as the following:

# grep ErrorLog /usr/local/etc/apache22/httpd.conf
# grep ErrorLog /etc/apache2/apache2.conf
# grep ErrorLog /etc/httpd/conf/httpd.conf

K
0
 
lnkevinCommented:
Normally, this is the php log file location for RH and Fedora:

/var/log/httpd/error_log

K
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
upanwarCommented:
In linux all the log files resides in /var/log/ directory.
For apache webserver log file should be
/var/log/httpd.log
0
 
lnkevinCommented:
>>For apache webserver log file should be
>>/var/log/httpd.log

Nope. You need to access to httpd directory and all of the web logs are there.

K

0
 
bobohostAuthor Commented:
Thanks lnkevin those commands will help as I have no clue how to grab them.  I'll let you know how it goes.
0
 
lnkevinCommented:
If they want to see the full logs, just replace tail with cat
Example: cat /var/log/httpd/error_log > /tmp/error_log
.....

K
0
 
pclinuxguruCommented:
I can say from experience that GoDaddy puts the apache logs in your home folder. If your not finding them I can look at my own GoDaddy account and more than likely it will be in a similar place if you have logging turned on.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.