Os X Server Apache Error Log
Contents |
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the el capitan apache logs workings and policies of this site About Us Learn more about Stack os x php error log Overflow the company Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags Users mac os x apache error log Badges Unanswered 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
Command Line: '/usr/sbin/httpd -d Foreground'
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 25 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 apache caught sigterm, shutting down 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 macos apache share|improve this question edited Feb 20 '12 at 14:58 bmike♦ 116k38202444 asked Feb 17 '12 at 11:18 FLY 1,65251631 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
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 ah00169: caught sigterm, shutting down Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Mac Apache Restart
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers,
Search Permissions Are Missing On A Component Of The Path
just like you, helping each other. Join them; it only takes a minute: Sign up How do I access Apache error logs via the Terminal in Mac OS X 10.6.8? up vote 15 down vote favorite http://apple.stackexchange.com/questions/40713/where-is-the-httpd-error-log-file-on-lion 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 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 http://stackoverflow.com/questions/14060407/how-do-i-access-apache-error-logs-via-the-terminal-in-mac-os-x-10-6-8 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 454410 4 On OSX /var, /etc, and /tmp are symlinked to /private/var, /private/etc, and /private/tmp. –Mr. Dave Jan 28 '15 at 16:58 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and
Please enter a title. You can not post a blank message. Please type your message and try again. Bill_Hernandez Level 1 (0 points) Q: Apache error log shows localhost requests going https://discussions.apple.com/thread/3711261?start=0&tstart=0 to /var/empty ( 1 )'/etc/apache2/httpd.conf' shows the DocumenRoot as '/Library/WebServer/Documents', as has http://krypted.com/mac-security/os-x-server-5-logs/ been standard for previous OSX versions.( 2 ) Create a simple php file 'local_info.php' and drop it into the DocumenRoot.( 3 ) try to access : https://localhost/local_info.php( 4 ) the page is not served, and I get a 'Not Found' error.------------( 5 ) Go to '/var/log/apache2/error_log'[Sat Feb 04 15:21:48 2012] os x [error] [client ::1] script '/var/empty/local_info.php' not found or unable to stat------------( 6 ) If I go to 'System Preferences -> Sharing -> Web Sharing' and restart Apache, then try to access the page nothing changes, the 'Not Found' error persists.( 7 ) If I copy 'local_info.php' from '/Library/WebServer/Documents/local_info.php' to '/var/empty/local_info.php' and then point the browser to ( 8 ) try to apache error log access : https://localhost/local_info.php the page is displayed correctly.This is basically pretty much pristine copy of 'OS X Lion -> OS X Lion Server' with 'Server.app -> Services -> Web' turned off for the moment. During this testing phase I am only trying '/Library/WebServer/Documents', and not the virtual hosts.I have the virtual hosts working very well through 'Server.app -> Services -> Web' which like I said above is turned off for the moment. The only problem I ran into there was that '/etc/hosts' was not being modified when a new virtual host was added via 'Server.app -> Services -> Web', but that was under OS X Server Lion 10.7.2, since I created the virtual hosts, I installed the Combo Updater for Lion Server 10.7.3, and I have not tried to create any new virtual hosts since then.It is interesting that towards the bottom of httpd.conf there are some flags that load different pieces of code depending upon what flags are set. What is even more interesting is that both 'Server.app -> Services -> Web', and 'System Preferences -> Sharing -> Web Sharing' use one co
2 Guide List Of Mac OS X Error Codes Windows Server 2012 Xsan Apple Configurator 1 Guide Commands Amazon s3cmd Commands Crosh Commands Final Cut Server Commands FTP Commands Linux Bash Commands Mac Commands Podcast Producer Commands Powershell Commands Windows Commands Xsan Commands Reference Nike+ and NikeFuel Badge List Fitbit Badge List Foursquare Badge List Apple Watch Achievements List List of All Swarm Stickers HTML Encoding Reference CIDR Conversion Table Common Apple Ports List Of Mac OS X Error Codes Whoami whoami Legacy Mac Apps Books Dead Tech Books Clothes Apple Community Apple Admin Conferences MacAdmins Speaking Engagements My Bushel Blog Posts Glossary of Apple Terms Minneapolis Minneapolis Breweries and Distilleries OS X Server 5 Logs OS X running the Server app has a lot of scripts used for enabling services, setting states, changing hostnames and the like. Once upon a time there was a script for OS X Server called server setup. It was a beautiful but too simplistic kind of script. Today, much of that logic has been moved out into more granular scripts, kept in /Applications/Server.app/Contents/ServerRoot/System/Library/ServerSetup, used by the server to perform all kinds of tasks. These scripts are, like a lot of other things in OS X Server. Some of these include the configuration of amavisd, docecot and alerts. These scripts can also be used for migrating services and data. Sometimes the scripts are in bash, sometimes ruby, sometimes perl and other times even python. And the scripts tend to change year over year/release over release. The easiest way to view logs is to use the Server app, clicking on Logs in the sidebar. The dropdown at the bottom of the screen provides quick access to service-based logs. One of the things that can can be useful about the scripts scattered throughout the Server app is to learn how the developers of OS X Server intend for certain tasks to occur. However, you can also use the Console app from /Applications/Utilities, as with any other Mac, to look at standard logs. Looking At Services This is also where I learned that Apple had put an Open Directory backup script in /Applications/Server.app/Contents/ServerRoot/usr/libexec/server_backup/opendirectorybackup (that still requires a password). But what I haven’t seen in all of these logs is bumping up the logging level for services before performing tasks, so that you can see a verbose output of what’s going on. To do this, it loo