Apache Error Logs Mac Os X
Contents |
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 about Stack Overflow the company Business Learn more about el capitan apache logs hiring developers or posting ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question mac apache log location _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a mac php log 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 is the httpd error log file on Lion? up vote 24 down vote command line: '/usr/sbin/httpd -d foreground' favorite 3 I'm running a local web (development) server on my mac with apache installed. I'm sure it depends on my apache config but basically I just want to run tail -f /var/log/httpd-error.log in a terminal so I can see the error and warnings that occur during the development of my websites. So my question is where or how do I find where this log file is placed since it is not placed in /var/log/ lion osx apache share|improve
Apache Caught Sigterm, Shutting Down
this question edited Feb 20 '12 at 14:58 bmike♦ 115k38202438 asked Feb 17 '12 at 11:18 FLY 1,62751531 add a comment| 5 Answers 5 active oldest votes up vote 45 down vote accepted As morth pointed out, for the default Mac OS X Apache installation these are located in: /var/log/apache2/error_log. The location can be changed in the httpd config using the ErrorLog directive, even for individual virtual hosts. Also note that if you installed another Apache besides the built-in one (like through MacPorts, or MAMP), this probably is different for you too. In that case you should have a look at the httpd.conf or equivalent for your installation. tip: If you have Growl installed, also have a look at this 'growltail' script. I think it's great to get notified of errors while developing, without having the need to switch back to the Terminal all the time. share|improve this answer edited Jan 25 '13 at 15:57 FLY 1,62751531 answered Feb 17 '12 at 11:52 Gerry 11.1k33565 2 Doesn't lion use apache2 and not apache in /var/log to contain the web server logs? Also, the Console app in /Applications/Utilities is the "Cocoa" log viewer, but it's not as handy as tail for most developers other than to explore the contents of /var/log or peek at multiple logs for short durations. –bmike♦ Feb 20 '12 at 15:01 add a comment| up vote 4 down vote Is /private/var/log/a
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
Mamp Apache Logs
Learn more about Stack Overflow the company Business Learn more about hiring developers search permissions are missing on a component of the path or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and ah00169: caught sigterm, shutting down answer site for system and network administrators. 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 http://apple.stackexchange.com/questions/40713/where-is-the-httpd-error-log-file-on-lion up and rise to the top Where is the Apache Access Log File located (Mac Apache)? up vote 1 down vote favorite 2 I did a little reading online, and I think that the Apache Access Log contains all of the requests sent to the server. However, I couldn't gather from the websites whether this is actually stored in an accessible text file, or in some other manner. http://serverfault.com/questions/398483/where-is-the-apache-access-log-file-located-mac-apache If it is stored in a file, where is this file on the default Mac Apache install? apache-2.2 mac-osx logging share|improve this question edited Jun 13 '12 at 21:24 Sven♦ 64.8k898140 asked Jun 13 '12 at 21:09 Josh Sherick 114115 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote accepted Look for 'CustomLog' and 'ErrorLog' in your Apache configuration files, which are under /etc/apache2/httpd.conf Also see the documentation, at http://httpd.apache.org/docs/current/logs.html share|improve this answer answered Jun 13 '12 at 21:38 Stefan Lasiewski 12.4k2083150 add a comment| up vote 4 down vote The default location for the access log is: /var/log/apache2/access_log The default location for the error log is: /var/log/apache2/error_log share|improve this answer edited Jun 13 '12 at 22:32 Hyppy 13.3k12254 answered Jun 13 '12 at 21:24 Sven♦ 64.8k898140 add a comment| up vote -1 down vote RHEL / Red Hat / CentOS / Fedora Linux Apache error file location - /var/log/httpd/error_log Debian / Ubuntu Linux Apache error log file location - /var/log/apache2/error.log FreeBSD Apache error log file location - /var/log/httpd-error.log To find exact apache log file location, you can use grep command: # grep ErrorLog /usr/local/etc/apache22/httpd.conf # grep ErrorLog /etc/apache2/apache2.conf # grep ErrorLog /etc/httpd/conf/httpd.conf share|improve this answer edi
enter a title. You can not post a blank message. Please type your message and try again. This discussion is locked MJN1812 Level 1 (0 points) Q: What's The Terminal Command To Find Apache Log Files? I can't find it https://discussions.apple.com/thread/2350725?tstart=0 anywhere.Thank you. Early '08 MacBook Pro, Mac OS X (10.5.8) Posted on Feb 26, 2010 http://enzolutions.com/articles/2014/10/19/apache-issues-after-upgrade-to-mac-os-x-yosemite/ 1:21 PM I have this question too by Charles Minow,Solvedanswer Charles Minow Level 6 (9,180 points) A: For the access log (10.5 and newer) it's:tail /var/log/apache2/access_logError log is:tail /var/log/apache2/error_logFor 10.4 and earlier, substitute httpd for apache2 in the two paths. This is assuming the stock Apache configuration shipped with the OS.charlie Posted on Feb 26, 2010 9:00 PM apache log See the answer in context Close Q: What's The Terminal Command To Find Apache Log Files? All replies Helpful answers by red_menace, red_menace Feb 26, 2010 1:49 PM in response to MJN1812 Level 6 (15,536 points) Desktops Feb 26, 2010 1:49 PM in response to MJN1812 What is in /private/var/log/apache2 ? Helpful (0) Reply options Link to this post by MJN1812, MJN1812 Feb 26, 2010 1:58 PM in response to red_menace Level caught sigterm, shutting 1 (0 points) Feb 26, 2010 1:58 PM in response to red_menace Still a newbie to this stuff.Entered: /private/var/log/apache2Got: -bash: /private/var/log/apache2: is a directoryDid I have to type in all of *What is in /private/var/log/apache2 ?* Helpful (0) Reply options Link to this post by red_menace, red_menace Feb 26, 2010 2:37 PM in response to MJN1812 Level 6 (15,536 points) Desktops Feb 26, 2010 2:37 PM in response to MJN1812 I don't know what log you are looking for, so I just asked what was in that directory. To see what is in there, you can do something like:ls -l /private/var/log/apache2 Helpful (0) Reply options Link to this post by Nils C. Anderson, Nils C. Anderson Feb 26, 2010 3:06 PM in response to MJN1812 Level 4 (3,495 points) Feb 26, 2010 3:06 PM in response to MJN1812 It looks like either:
$ grep ErrorLog /private/etc/apache2/httpd.conf
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a
ErrorLog "/private/var/log/apache2/error_log"
or
/usr/sbin/apachectl -V | egrep 'HTTPD_ROOT|ERRORLOG'
-D HTTPD_ROOT="/usr"
-D DEFAULTERRORLOG="logs/errorlog"
Though red_menace probably knows better that I.Message was edited by: Nils C. Anderson Helpful (0) Reply options Link to this post by BobHarris, BobHarris Feb 26, 2010 7:58 PM in response to MJN1812 Level 6 (19,514 points) Mac OS X Feb 26, 2010 7:
Share Tweet +1 Last night I had the brilliant idea of upgrade to latest version of Mac OS X Yosemite and the upgrade process itself was slow as usual but without any apparent error. The problems popup when I decide continue the development of Yeoman Marionette Drupal generator against Drupal 8. When I try to use my regular installation of Drupal 8 I got the infamous message "It Works!", so the upgrade screw my apache configuration. After executing the following command I detect my system now has Apache 2.4. $ httpd -v Server version: Apache/2.4.9 (Unix) Server built: Sep 9 2014 14:48:20 Where is my previous configuration You can find your old configuration at /etc/apache2/httpd.conf~previous, but could a bad idea just restore because some directives could be wrong. Instead of I start to re-enable the things I used to have enabled. Mod Rewrite Because I'm a Drupal developer this is a mandatory Apache module, to re-enabled you just need edit the file /etc/apache2/httpd.conf and enable the following line LoadModule rewrite_module libexec/apache2/mod_rewrite.so Virtual Hosts If you used to have virtual host for your different project this feature is gone, again you just need to enable the directive to load where are located your virtual host as you can see in the following snippet. # Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.conf Client denied by server configuration After enable your virtual hosts is probable you can't access your sites and if you check your error log you will get an error similar to following log. [Sun Oct 19 10:29:31.338082 2014] [authz_core:error] [pid 3008] [client 127.0.0.1:51587] AH01630: client denied by server configuration: /Users/enzo/www/drupal8/ After read some document I found I have to add to my Directory section of Virtual Host the directive Require all granted, after apply my Virtual Host looks like next definition.