Apache Error Log Not Working
Contents |
here for a quick overview of the site Help Center Detailed answers to apache error log file any questions you might have Meta Discuss the workings and
Php Error Log File
policies of this site About Us Learn more about Stack Overflow the company Business Learn php error_log not working more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow
Php Log Errors To Apache Error Log
Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Errors not written to Apache error log up vote 0 down vote favorite 1 I've had a problem with some Apache web server error logs. I apache enable php error log have a virtually hosted website scotthermmann.loc on my computer. After I manually clear an error log, using sudo cat /dev/null > scotthermmann.loc-error_log or by opening the file in emacs & deleting all content, errors no longer get logged to the file. I've tried using sudo apachectl restart to solve the problem, but it doesn't solve it. Logging out & back in doesn't solve it either. What does solve it is restarting the computer, but I don't want to do that after every time I clear an error log. This isn't the case for every website I host. I have another website barefootfool.loc. After I clear that error log, I don't have any problems. Both virtual sites have essentially the same setup in the httpd-vhosts.conf file. For scottherrmann.loc:
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
Php Error Log Not Showing
company Business Learn more about hiring developers or posting ads with us Super User Questions
No Php Error Log
Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join apache error logs ubuntu 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 Apache2/PHP no longer logging errors after http://stackoverflow.com/questions/20485105/errors-not-written-to-apache-error-log deleting error.log up vote 1 down vote favorite 2 I deleted error.log file from my logs directory. As root, I used vi to create error.log file again. root:root owns the file, permissions are -rw-r--r--. Same ownership and permissions as access.log. Now, no errors are being recorded. Access.log is still being appended to, but not error.log. Any ideas? PHP configured to log notices, warnings, errors. I'm using error_log() to trigger error messages as well, but with http://superuser.com/questions/751476/apache2-php-no-longer-logging-errors-after-deleting-error-log no luck. Was working up until I removed the log file. PHP 5.3.10 Apache 2.2.22 Ubuntu 3.11 ubuntu apache-http-server php share|improve this question asked May 9 '14 at 1:38 Patrick Moore 15611 2 Delete file, then run apache2ctl graceful –Eugen Rieck May 9 '14 at 2:12 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted Apache process has an open file descriptor for its log files. If you delete one of them the corresponding file descriptor renders invalid and Apache stops logging. Next time, if you need to empty the log file without restarting Apache you can issue: # echo > /var/log/apache/access.log The file will be truncated but Apache won't stop logging. share|improve this answer answered May 9 '14 at 2:16 drk.com.ar 1,797612 Thanks for this! +1 –Patrick Moore May 9 '14 at 2:29 You're welcome! –drk.com.ar May 9 '14 at 12:00 add a comment| up vote 1 down vote Well, I feel foolish. I guess all I needed was to restart the service with the file restored. service apache2 restart share|improve this answer answered May 9 '14 at 1:47 Patrick Moore 15611 1 You don't need to restore the file, simple restart is enough. –Tero Kilkanen May 9 '14 at 2:30 add a comment| You must log i
Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux http://www.linuxquestions.org/questions/linux-newbie-8/syslog-access-log-of-apache-not-working-896746/ - Newbie [SOLVED] syslog : access log of apache not working User Name Remember Me? Password Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a error log friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer apache error log ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux syst