Apache Default Php Error Log
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour 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
Osx Apache Php Error Log
Us Learn more about Stack Overflow the company Business Learn more about hiring developers apache php error log location or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question apache php error log location ubuntu and answer site for Ubuntu users and developers. 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
Apache Default Php Extension
up and rise to the top Where are the Apache and PHP log files? up vote 113 down vote favorite 30 I've installed Apache, PHP, and MySQL on Ubuntu 10.10 desktop edition, and it's working fine. Except I have no clue where to look for Apache or PHP log files. apache2 php log share|improve this question edited Jan 25 '14 at 10:00 minerz029 12.8k84479 asked Nov 24 '10 at
Default Php Error Log Location Windows
18:58 Stann 3,706113439 add a comment| 3 Answers 3 active oldest votes up vote 158 down vote accepted By default, /var/log/apache2/error.log. This can be configured in /etc/php5/apache2/php.ini. share|improve this answer edited Apr 19 '12 at 9:00 Community♦ 1 answered Nov 24 '10 at 19:18 misterben 3,88311422 Yep. got it. it was a bit different on windows. –Stann Nov 24 '10 at 19:38 add a comment| up vote 34 down vote Check these settings in php.ini: error_reporting = E_ALL | E_STRICT (as recommended for development in php.ini) error_log = /var/log/php_errors.log Then create log file manually touch /var/log/php_errors.log chown www-data: /var/log/php_errors.log chmod +rw /var/log/php_errors.log Now you can view PHP errors by this way tail /var/log/php_errors.log This is an agreeable solution to this issue for me. share|improve this answer edited Dec 12 '15 at 21:53 Community♦ 1 answered Sep 7 '12 at 23:13 Nikolay Chuprina 47144 perfect step-by-step solution –Mark Fox Feb 15 '14 at 6:15 2 would also need a step to restart the apache for settings to take effect –rbawaskar Oct 13 '14 at 10:32 1 this should be the accepted answer –Martin Duys May 6 '15 at 6:00 add a comment| up vote 11 down vote Yo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the php print to log file workings and policies of this site About Us Learn more about
Php Log File Location
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions php error log ubuntu Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files Join them; it only takes a minute: Sign up Where does PHP store the error log? (php5, apache, fastcgi, cpanel) up vote 199 down vote favorite 45 I am on shared hosting and have Cpanel, Apache, PHP is run by fastcgi. Where does PHP store the error log? Is there any other way I can find the error log http://stackoverflow.com/questions/5127838/where-does-php-store-the-error-log-php5-apache-fastcgi-cpanel on shared hosting environment instead of having to go through entire site structure to look for error_log files? I have access to the php.ini (I am using PHP version 5.2.16). error-handling php share|improve this question edited Aug 24 '15 at 9:33 n611x007 3,11022642 asked Feb 26 '11 at 15:43 PHPLOVER 1,946102945 8 On Linux, either /var/log/httpd/error_log or /var/log/apache2/error.log. These files are owned by root, so you need to be root or use sudo to see it, or read it. –Eric Leschinski Aug 7 '14 at 19:49 47 php --info | grep error –sjas Aug 27 '14 at 13:21 1 @sjas -- genius! –the0ther Feb 21 '15 at 20:02 3 For those looking for a Windows solution, use php --info | findstr /r /c:"error_log" to see where the log file is. –Boom May 13 '15 at 17:00 add a comment| 14 Answers 14 active oldest votes up vote 153 down vote accepted Php stores error logs in /var/log/apache2 if php is an apache2 module. Shared hosts are often storing log files
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 http://superuser.com/questions/520522/how-to-log-php-error-in-a-separate-file 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 php error The best answers are voted up and rise to the top How to log php error in a separate file? up vote 5 down vote favorite I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by keeping the following in php error log php.ini: log_errors = On error_log = /var/log/php-errors.log I am not sure why the errors are being logged to /var/log/httpd/error_log after the upgrade despite keeping the settings above. Also, $ ls -l /var/log/php-errors.log -rwxrwxr--. 1 apache myself 232 Dec 13 16:49 /var/log/php-errors.log shows that apache did own the php error log file. What could be causing PHP errors to be logged into apache error log file? php apache-http-server error-logging share|improve this question asked Dec 17 '12 at 10:50 Question Overflow 3261518 migrated from stackoverflow.com Dec 17 '12 at 16:32 This question came from our site for professional and enthusiast programmers. @DaveRandom, from phpinfo(), it shows the loaded config file to be /etc/php.ini, which is correct. –Question Overflow Dec 17 '12 at 10:55 Have you tried setting the permissions on /var/log/php-errors.log to 666, in case the user/groups are not set up how you think they are? –DaveRandom Dec 17 '12 at 13:49 @DaveRandom, thanks for the suggestion. I tried, and it still send the error to apache error log. Even disabling SELinux does not help a bit :( –Question Overflow Dec 17 '12 at 13:59 add a comment| 3 Answers 3 active