Apache Error Logs 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 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 minute: osx php log 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 Can't find my apache error_log folder up vote 2 down vote favorite new Mac
Command Line: '/usr/sbin/httpd -d Foreground'
(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 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 apache caught sigterm, shutting down 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/apache2/error_log which I checked, and there was no error_log folder in there. So I went ahead and made one... fingers crossed –Leon Gaban Mar 12 '15 at 19:49 1 It's a file, not a folder! Creating a folder with the same name may cause problems, and apache should definitively create the file itself if needed. –patrix♦ Mar 12 '15 at 19:50 1 Thx, ok so I removed that folder I
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 mamp apache logs this site About Us Learn more about Stack Overflow the company Business
Search Permissions Are Missing On A Component Of The Path
Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question
Ah00169: Caught Sigterm, Shutting Down
_ Server Fault is a question and 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 http://apple.stackexchange.com/questions/176442/cant-find-my-apache-error-log-folder 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 sent to the server. However, I couldn't gather from the websites whether this is http://serverfault.com/questions/398483/where-is-the-apache-access-log-file-located-mac-apache 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 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 exac
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 http://superuser.com/questions/286944/where-is-the-php-log-file-located-on-mac-osx 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 http://hints.macworld.com/article.php?story=20040929142808792 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 apache log 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 caught sigterm, shutting 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 error log does seem to be found in /var/log/apache2/error_log by default. Thanks. –Andrew Huey Jun 7 '12 at 11:10 2 I have a custom apache install, so I found my log files with find /usr/local -name error_log . –Walrus the Cat Apr 20 '15 at 5:15 add a comment| You must log in to answer this question. Not the
Automatically empty Apache error log files Oct 04, '04 09:05:00AM • Contributed by: Anonymous If, like me, you do a lot of Perl / HTML / Apache development on you desktop OS X system, you'll have noticed the error_log and access_log files getting massive and out of control. I normally have mine open in a web browser, so I can reload it to see what errors my code is producing. But at upwards of 10MB in size, it can slow down event the best of browsers. So, here is a little command you can set up as a cron job ever five mins or so to keep the error_log in check: cd /private/var/log/httpd; tail error_log > error_log2; \ tail error_log2 > error_log Make sure it's run as root. Now your error_log will be pruned every so often and won't slow you or your browser down. [robg adds: The above command will overwrite your error_log file -- so make sure there's nothing in there you need to keep before you try this!] • Currently 2.67 / 5 You rated: 2 / 5 (6 votes cast) [10,304 views] Hint Options Printable Hint Format Subscribe to 'macosxhints.com Unix tips and tricks' Automatically empty Apache error log files | 7 comments | Create New Account Newest First Oldest First Flat Nested No Comments Threaded Click here to return to the 'Automatically empty Apache error log files' hint The following comments are owned by whoever posted them. This site is not responsible for what they say. Automatically empty Apache error log files Authored by: nhajratw on Oct 04, '04 11:01:33AM A good way to monitor log files so you don't have to keep reloading a web browser is to use the 'tail' command. From the Terminal, type: tail -100f logfile_name This will give you a realtime look into your log file. Open multiple terminals for multiple log files. [ Reply to This | # ] Automatically empty Apache error log files Authored by: TvE on Oct 04, '04 11:30:51AM Just my comment - except you beat me to it :-) [ Reply to This | # ] Automatically empty Apache error log files Authored by: mhagers on Oct 04, '04 11:53:41AM What's wrong with the good old console app? automatically does the tail command for you, with the added bonus that you can wipe the window clean to start afresh. I always have it open whenever I'm writing php code. [ Reply to This | # ] Automatically empty Apache error log files Authored by: bkazez on Oct 04, '04 01:43:41PM There's nothing wrong with the Console except th