Apache Server Error Log 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
Apache Web Server Mac Os X
more about hiring developers or posting ads with us Ask Different Questions Tags Users Badges apache tomcat mac os x Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it apache php mac os x 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 Can't find my apache error_log folder up vote 2
Mysql Server Mac Os X
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 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
Osx Apache Error Log
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/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ϗ
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 mac os x xampp posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss
Mac Os X Linux
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 apple apache server takes a minute: Sign up PHP built-in server error log location up vote 3 down vote favorite I don't know if there's any? but is php built in web server also save its error logs in a file? for tailing purposes, http://apple.stackexchange.com/questions/176442/cant-find-my-apache-error-log-folder like when creating virtual host in apache. UPDATE: i'm using mac osx php osx terminal tail share|improve this question edited Nov 25 '14 at 9:00 asked Nov 25 '14 at 8:53 Bryan Estrito 303312 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted Yes, PHP has built in error log functionality. PHP logs errors to this file automatically. If you want to log errors, use the function error_log() The file's location changes depending upon enviroment. http://stackoverflow.com/questions/27122267/php-built-in-server-error-log-location e.g. in Ubuntu 12.04, its var/log/php_errors.log In XAMPP windows, \xampp\php\logs\php_errors.log In Mac OS, /var/log/apache2/php_errors.log share|improve this answer answered Nov 25 '14 at 8:58 Pupil 15.9k22140 i forgot to mention i'm using mac os –Bryan Estrito Nov 25 '14 at 9:00 Answer updated, please check now. –Pupil Nov 25 '14 at 9:01 Downvoters, your downvoting is most welcome. I am happy that my answer needs improvements/corrections. But, please post comments about my mistakes. You are my true teachers. –Pupil Feb 26 at 6:34 Your answer missed that the OP wanted this for PHP's built-in web server, you posted the log locations for various Apache webservers. –thenickdude Apr 12 at 8:16 @thenickdude, yes you are right. This is the way SO works. Thanks for the comment. –Pupil Apr 12 at 8:35 add a comment| Did you find this question interesting? Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example). Subscribed! Success! Please click the link in the confirmation email to activate your subscription. up vote 0 down vote The built-in webserver doesn't log anywhere by default, so you need to provide a php.ini for it to customise this. For example, if you created a file called php.ini with this content: error_log = /Users/me/test.log date.timezone = UTC Then you can start PHP's built-in webserver like this: php -S 127.0.0.1:8080 -c php.ini An
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have http://serverfault.com/questions/398483/where-is-the-apache-access-log-file-located-mac-apache 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 http://superuser.com/questions/286944/where-is-the-php-log-file-located-on-mac-osx 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 mac os 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 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 mac os x 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. 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
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 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 answ