Apache Error Log Location 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 apache tomcat mac os x Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags
Apache Mac Os X Download
Users Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. apache install mac os x 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 is the httpd error
Apache Mac Os X Tiger
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 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 apache mac os x leopard 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 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
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
Restart Apache Mac Os X
this site About Us Learn more about Stack Overflow the company Business Learn
Apache Mac Os X Lion
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question apache mac os x mountain lion 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 http://apple.stackexchange.com/questions/40713/where-is-the-httpd-error-log-file-on-lion How do I access Apache error logs via the Terminal in Mac OS X 10.6.8? up vote 15 down vote favorite 5 I am having trouble with serving up my rails app on a remote computer after upgrading from Rails 3.0 to 3.1. So I want to take a look at what exactly is going wrong when Apache attempts to start up my http://stackoverflow.com/questions/14060407/how-do-i-access-apache-error-logs-via-the-terminal-in-mac-os-x-10-6-8 app and it fails. How can I find the errors that Apache (or maybe Passenger?) is throwing via the Terminal? osx ruby-on-rails-3.1 apache2 share|improve this question asked Dec 27 '12 at 19:48 pitachip 3452416 add a comment| 2 Answers 2 active oldest votes up vote 37 down vote accepted in terminal, have you tried cat /var/log/apache2/error_log share|improve this answer answered Dec 27 '12 at 20:11 patrickmdnet 2,3381627 1 Thanks so much! I saw that this path for the location of the error log is in the httpd.conf file--just in case this isn't the path for everyone. –pitachip Jan 2 '13 at 0:11 If you just want to look at the last few lines of the log use tail /var/log/apache2/error_log instead. The error log tends to get bigger/longer with time. –victmo May 28 '14 at 23:29 add a comment| up vote 2 down vote only to complemente the others answers, I'm using the version 10.9.3 and to me, the address is: /private/var/log/apache2 share|improve this answer answered Jun 24 '14 at 5:49 Maciel Bombonato 42449 4 On OSX /var, /etc, and /tmp are symlinked to /pri
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://serverfault.com/questions/398483/where-is-the-apache-access-log-file-located-mac-apache the workings and policies of this site About Us Learn more about http://superuser.com/questions/286944/where-is-the-php-log-file-located-on-mac-osx Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up mac os 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 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 mac os x 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. 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 Lin
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 Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. 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 is the PHP log file located on Mac OSX? up vote 19 down vote favorite I am having issues with phpMyAdmin on my Mac. I cannot seem to connect to the local MySQL server. When I try to log in I get the following message Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly. I am now trying to find the log file. I ran phpinfo() and it tells me that the php.ini file is located in /etc, however when I look I only can see php.ini.default. I proceed to edit php.ini.default by specifying the log file to /tmp/php_errors and enable logging. I tried to log into the MySQL server via phpMyAdmin and I still get the same error. I proceed to /tmp but the error log is not there. Any suggestions on what I may be doing wrong? mac php phpmyadmin share|improve this question edited May 22 '11 at 5:38 Wuffers 11.7k669109 asked May 22 '11 at 5:27 David 94751524 add a comment| 2 Answers 2 active oldest votes up vote 8 down vote accepted Try renaming php.ini.default to php.ini and edit it to enable the logging you want. The changes probably won't take effect until Apache is restarted. Since you are using a Mac, just disable web sharing and re-enable it. share|improve this answer answered May 22 '11 at 6:23 Bandit 75036 add a comment| up vote 23 down vote Apache's logs are located under /var/log/apache2 share|improve this answer answered May 23 '11 at 16:28 Rafael Barbosa 33112 6 When a location isn't specified in php.ini, the PHP