Apache2 Error Log Mac
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 apache2 mac os Us Learn more about Stack Overflow the company Business Learn more about hiring developers restart apache2 mac or posting ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question
Apache Log Mac
and answer site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The
Apache Log Mac Address
best answers are voted up and rise to the top Can't find my apache error_log folder up vote 2 down vote favorite new Mac (Yosemite) and setting up a new dev environment. At the moment cannot find any error_log folder at the following paths: /var/log/apache2/error_log /private/var/log/apache2/error_log /var/log/httpd/error_log Any thoughts on where that folder may be? yosemite error apache logs share|improve this question asked Mar 12 '15 at 19:40 mac apache log analyzer Leon Gaban 12317 Is apache running at all? –patrix♦ Mar 12 '15 at 19:43 @patrix I did sudo apachectl restart and didn't see anything come up, so tried to check the sudo tail -f /var/log/apache2/error_log and that's where I went down this path of trying to figure out if it's running or not –Leon Gaban Mar 12 '15 at 19:46 Try to connect to the websever at localhost and/or run ps aux|grep http to see whether apache is running at all. –patrix♦ Mar 12 '15 at 19:49 Nothing is running at localhost or localhost/app and this is what I see after running ps: leongaban 10849 0.0 0.0 2432772 672 s006 S+ 2:56PM 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn http –Leon Gaban Mar 12 '15 at 19:56 No running apache, no error log :-/ –patrix♦ Mar 12 '15 at 20:00 add a comment| 1 Answer 1 active oldest votes up vote 5 down vote accepted The location of error_log is defined in /etc/apache2/httpd.conf. Run grep '^ErrorLog' /etc/apache2/httpd.conf to see the definition. share|improve this answer answered Mar 12 '15 at 19:45 patrix♦ 34.6k1072102 Thanks! yeah it says /private/var/log/apac
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and
Mac Apache Log Viewer
policies of this site About Us Learn more about Stack Overflow the mac apache log location company Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags Users Badges Unanswered el capitan apache logs Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up Here's how http://apple.stackexchange.com/questions/176442/cant-find-my-apache-error-log-folder 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 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 http://apple.stackexchange.com/questions/40713/where-is-the-httpd-error-log-file-on-lion 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 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
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 https://discussions.apple.com/thread/2350725?tstart=0 Apache Log Files? I can't find it anywhere.Thank you. Early '08 MacBook Pro, Mac OS X (10.5.8) Posted on Feb 26, 2010 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 apache log the stock Apache configuration shipped with the OS.charlie Posted on Feb 26, 2010 9:00 PM 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 ? mac apache log Helpful (0) Reply options Link to this post by MJN1812, MJN1812 Feb 26, 2010 1:58 PM in response to red_menace Level 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 DEFAULT