Apache Default Location Error Log
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn apache error log location ubuntu more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges apache error log location windows Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating apache error log location centos systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Where are Apache file access logs
Apache Error Log Location Cpanel
stored? up vote 81 down vote favorite 20 Does anyone know where file access logs are stored, so I can run a tail -f command in order to see who is accessing a particular file. I have XAMPP, which is an Apache server installed on my machine, which automatically logs the accesses. It is stored in my installation folder. files logs syslog share|improve this question edited May 19 '12 at 12:50 Gilles 368k666671117 asked May 18 '12 at apache error log location debian 21:51 AkshaiShah 9912108 On what distribution, or with what hosting provider? Logs are typically under /var/log, but some systems have them elsewhere. –Gilles May 19 '12 at 12:51 add a comment| 3 Answers 3 active oldest votes up vote 91 down vote accepted Ultimately, this depends on your Apache configuration. Look for CustomLog directives in your Apache configuration, see the manual for examples. A typical location for all log files is /var/log and subdirectories. Try /var/log/apache/access.log or /var/log/apache2/access.log. If the logs aren't there, try running locate access.log. share|improve this answer answered May 19 '12 at 12:54 Gilles 368k666671117 +1 for CustomLog –Radu 7 hours ago add a comment| up vote 20 down vote If you can't find the log with Gilles's answer, there are a couple more things you can try. Look in /var/log/httpd. Run sudo locate access.log as well as sudo locate access_log. The logs on my system were not visible except to root, and the file was called access_log instead of access.log. share|improve this answer answered Jan 27 '15 at 19:28 Don Kirkby 30124 3 +1 for /var/log/httpd - led me right to it on our CentOS installation –Chuck Wilbur Oct 2 '15 at 19:27 add a comment| up vote 5 down vote Apache server records all incoming requests and all requests processed to a log file. The format of the access log is highly configurable. The
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more apache error log location mac about Stack Overflow the company Business Learn more about hiring developers or posting ads
Apache Default Location Linux
with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for
Apache Default Log Directory
Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the http://unix.stackexchange.com/questions/38978/where-are-apache-file-access-logs-stored top Where are the Apache and PHP log files? up vote 113 down vote favorite 30 I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine. Except I have no clue where to look for Apache or PHP log files. apache2 php log share|improve this question edited Jan 25 '14 at 10:00 minerz029 12.8k84479 asked Nov 24 '10 at 18:58 Stann 3,706113439 add a comment| 3 http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files Answers 3 active oldest votes up vote 158 down vote accepted By default, /var/log/apache2/error.log. This can be configured in /etc/php5/apache2/php.ini. share|improve this answer edited Apr 19 '12 at 9:00 Community♦ 1 answered Nov 24 '10 at 19:18 misterben 3,88311422 Yep. got it. it was a bit different on windows. –Stann Nov 24 '10 at 19:38 add a comment| up vote 34 down vote Check these settings in php.ini: error_reporting = E_ALL | E_STRICT (as recommended for development in php.ini) error_log = /var/log/php_errors.log Then create log file manually touch /var/log/php_errors.log chown www-data: /var/log/php_errors.log chmod +rw /var/log/php_errors.log Now you can view PHP errors by this way tail /var/log/php_errors.log This is an agreeable solution to this issue for me. share|improve this answer edited Dec 12 '15 at 21:53 Community♦ 1 answered Sep 7 '12 at 23:13 Nikolay Chuprina 47144 perfect step-by-step solution –Mark Fox Feb 15 '14 at 6:15 2 would also need a step to restart the apache for settings to take effect –rbawaskar Oct 13 '14 at 10:32 1 this should be the accepted answer –Martin Duys May 6 '15 at 6:00 add a comment| up vote 11 down vote You can also define a specific error log file for each VirtualHost in Apache. If yo
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you sure you https://www.digitalocean.com/community/questions/tip-apache-log-location want to unaccept it? Yes, I'm sure. Sign Up Log In submit Tutorials Questions Projects http://stackoverflow.com/questions/5127838/where-does-php-store-the-error-log-php5-apache-fastcgi-cpanel Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: clifton Subscribe Subscribed Share 3 Tip: Apache Log Location January 25, 2013 15.3k views This isn't a question, just a tip that I hope someone finds useful. :) By default, your Apache logs get stored error log 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. 1) sudo nano /etc/apache2/apache2.conf 2) Scroll down a bit find the line that says: ErrorLog ${APACHE_LOG_DIR}/error.log 3) Comment it out and replace it with: ErrorLog /home//logs/apache_errors.log 4) Create the /home//logs folder (or wherever you choose to apache error log put it) 5) Restart apache: sudo /etc/init.d/apache2 restart 3 comments 1 venkateshthalla August 11, 2015 Thanks for the tip! :) 0 Paragram October 6, 2015 Thank you so much! You just saved me a couple hours of pointless searching (: 0 flavertonrr May 6, 2016 The Apache user is usually www-data, then remember after pointing this folder, leave the Apache as owner of it: $ sudo chown -R www-data:www-data /home/
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Where does PHP store the error log? (php5, apache, fastcgi, cpanel) up vote 199 down vote favorite 45 I am on shared hosting and have Cpanel, Apache, PHP is run by fastcgi. Where does PHP store the error log? Is there any other way I can find the error log on shared hosting environment instead of having to go through entire site structure to look for error_log files? I have access to the php.ini (I am using PHP version 5.2.16). error-handling php share|improve this question edited Aug 24 '15 at 9:33 n611x007 3,11022642 asked Feb 26 '11 at 15:43 PHPLOVER 1,946102945 8 On Linux, either /var/log/httpd/error_log or /var/log/apache2/error.log. These files are owned by root, so you need to be root or use sudo to see it, or read it. –Eric Leschinski Aug 7 '14 at 19:49 47 php --info | grep error –sjas Aug 27 '14 at 13:21 1 @sjas -- genius! –the0ther Feb 21 '15 at 20:02 3 For those looking for a Windows solution, use php --info | findstr /r /c:"error_log" to see where the log file is. –Boom May 13 '15 at 17:00 add a comment| 14 Answers 14 active oldest votes up vote 153 down vote accepted Php stores error logs in /var/log/apache2 if php is an apache2 module. Shared hosts are often storing log files in your root directory /log subfolder. But...if you have access to a php.ini file you can do this: error_log = /var/log/php-scripts.log According to rinogo's comment: If you're using cPanel, the master log file you're probably looking for is stored (by default) at /usr/local/apache/logs/error_log If all else fails you can check the location of the log file using share|improve this answer edited Jun 3 at 7:43 answered Feb 26 '11 at 15:52 Adam Arold 14.8k1252108 15 "Php stores error logs in /var/log/apache2 if php is an apache2" not on RHEL etc, where the package's name is 'httpd'. One really cannot assume that a package's name is consistent across distros. &