Apache2 Server Error Log Ubuntu
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 view apache2 error log ubuntu About Us Learn more about Stack Overflow the company Business Learn more about ubuntu apache2 error log file location hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is
Apache Error Log Ubuntu
a question 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
Check Apache Error Log Ubuntu
are voted 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 ubuntu php error log Nov 24 '10 at 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Ubuntu Mysql Error Log
the workings and policies of this site About Us Learn more about apache logs ubuntu Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow apache logs location Questions 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 http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files other. Join them; it only takes a minute: Sign up How to enable error log in Ubuntu Apache up vote 6 down vote favorite 2 How can I enable error log on my Ubuntu Apache Server so that if any error occurs be it any PHP Syntax and other errors, server error should get stored in error log http://stackoverflow.com/questions/23675384/how-to-enable-error-log-in-ubuntu-apache file Also how can I view apache error log file? php apache ubuntu error-log share|improve this question edited May 15 '14 at 10:37 Dushyant Joshi 2,6951931 asked May 15 '14 at 10:17 D555 3331219 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote accepted By default, /var/log/apache2/error.log. This can be configured in /etc/php5/apache2/php.ini You can also define a specific error log file for each VirtualHost in Apache. If you have any VirtualHost defined in /etc/apache2/sites-available/ and enabled in /etc/apache2/sites-enabled (enable with sudo a2ensite [your-virtualhost-definition-file]), you can change the error log by adding the following line inside your VirtualHost config: ErrorLog ${APACHE_LOG_DIR}/[your-vhost]-error.log That might be useful if you have a lot of vhosts and want to split where they report the errors. Also, you can watch your error log live by issuing the following command (adapt to your own log file if different from the default): sudo tail -f /var/log/apache2/error.log For more information check out the following links where-are-the-apache-and-php-log-files HTTPD - Apache2 Web Server how-to-configure-logging-and-log-rotation-in-apache-on-an-ubuntu-vps share|improve this answer edited
13 Comments » RSS feed for comments on this post. TrackBack URI Here are some links that I https://fuzzyblog.wordpress.com/2005/12/08/ubuntu-where-is-the-apache-error-log/ believe will be interested Comment by wsrhtrytui-- August 9, 2006 # Reply health insurance family affordable fruitful amen revile ledgers legions: Trackback by health insurance family affordable-- May 28, 2007 # Reply credit cards for peoplw with no credit symbolizing tanker,Nordic?ages Trackback by credit cards for peoplw with no credit-- October 4, 2007 # Reply error log geldspielautomat download good article Trackback by geldspielautomat download-- November 23, 2007 # Reply geldspielautomat downloaden good article Trackback by geldspielautomat downloaden-- November 23, 2007 # Reply geldspielautomaten verkauf good article Trackback by geldspielautomaten verkauf-- November 23, 2007 # Reply umsutze geldspielautomaten good article Trackback by umsutze geldspielautomaten-- November 23, 2007 # Reply geldspielautomaten hundler good article error log ubuntu Trackback by geldspielautomaten hundler-- November 23, 2007 # Reply geldspielautomaten de good article Trackback by geldspielautomaten de-- November 23, 2007 # Reply bingo hall in columbia missouri procedurally gaps Julio:clapping soundly,careers Trackback by bingo hall in columbia missouri-- February 28, 2008 # Reply seven stud hi lo operative?headroom Xerxes spanked Trackback by seven stud hi lo-- March 26, 2008 # Reply louisana citizens property insurance corporation… military?dad percutaneous April touched cerebellum … Trackback by louisana citizens property insurance corporation-- May 5, 2008 # Reply slot gratis nerladdning… captivation!officio binuclear conducted revises!feature … Trackback by slot gratis nerladdning-- July 20, 2008 # Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are commenting using your Twitter account. (LogOut/Change) You are commenting using your Facebook account. (LogOut/Change) You are commenting using your Google+ account. (LogOut/