Apache 2 Error
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 apache error log ubuntu Discuss the workings and policies of this site About Us Learn apache error log location more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask ubuntu php error log Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:
Apache Log Centos
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 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 apache log example 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 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
necessary to get feedback about the activity and performance of the server as well as any apache error log format problems that may be occurring. The Apache HTTP Server provides very comprehensive
Php Log File Location
and flexible logging capabilities. This document describes how to configure its logging capabilities, and how to understand what the
Apache Error Log Centos
logs contain. Overview Security Warning Error Log Per-module logging Access Log Log Rotation Piped Logs Virtual Hosts Other Log Files See alsoComments Overview Related ModulesRelated Directivesmod_log_configmod_log_forensicmod_logiomod_cgi http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files The Apache HTTP Server provides a variety of different mechanisms for logging everything that happens on your server, from the initial request, through the URL mapping process, to the final resolution of the connection, including any errors that may have occurred in the process. In addition to this, third-party modules may provide logging capabilities, or inject entries into the existing https://httpd.apache.org/docs/2.4/logs.html log files, and applications such as CGI programs, or PHP scripts, or other handlers, may send messages to the server error log. In this document we discuss the logging modules that are a standard part of the http server. Security Warning Anyone who can write to the directory where Apache httpd is writing a log file can almost certainly gain access to the uid that the server is started as, which is normally root. Do NOT give people write access to the directory the logs are stored in without being aware of the consequences; see the security tips document for details. In addition, log files may contain information supplied directly by the client, without escaping. Therefore, it is possible for malicious clients to insert control-characters in the log files, so care must be taken in dealing with raw logs. Error Log Related ModulesRelated DirectivescoreErrorLogErrorLogFormatLogLevel The server error log, whose name and location is set by the ErrorLog directive, is the most important log file. This is the place where Apache httpd will send diagnostic
in Sign up Sign up Guides & Tutorials Troubleshooting Troubleshooting Common Apache Issues Troubleshooting Common Apache Issues Updated Thursday, August 1st, 2013 by Linode Use promo code DOCS10 https://www.linode.com/docs/troubleshooting/troubleshooting-common-apache-issues for $10 Credit on a new account. Try this Guide Contribute on http://unix.stackexchange.com/questions/38978/where-are-apache-file-access-logs-stored GitHub View Project | View File | Edit File This article provides troubleshooting guidelines for the Apache web server. Apache is a highly customizable tool for serving HTTP traffic. Because it allows for so many different configurations and settings in so many different places, sometimes Apache configuration can befuddle error log even advanced users. In this guide, you’ll start with some basic troubleshooting steps and then proceed to more advanced techniques that can help you untangle conflicting directives. We recommend starting at the beginning of this guide and going through it in order. By the time you’re done, you should be able to debug your Apache installation. Is Apache Running? First, check whether apache error log Apache is running. Follow the process in this Troubleshooting Guide. If it isn’t, go ahead and restart Apache, as explained in the next section. You may also want to investigate the possibility of memory issues, if Apache is stopping unexpectedly. Restarting Apache Even if Apache is running, it can be useful to restart the server. This will let you read the Apache startup message. If you get an error, you can use the text of the error in an online search to help you find more details and solutions. Restarting the server may produce several seconds of downtime. Debian and Ubuntu: 1sudo service apache2 restart Fedora and CentOS: 1sudo service httpd restart You can use one of the following three commands instead, depending on your Linux distribution: 1 2 3 4 5/etc/init.d/httpd restart /etc/init.d/apache2 restart /etc/rc.d/httpd restart Reloading Apache Restarting or reloading Apache is also useful if you’ve recently made changes to your server, but they don’t seem to be taking effect. This is true for changes made directly in the Apache configuration files, as well as for changes you’ve made to the
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 Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 are Apache file access logs stored? up vote 81 down vote favorite 20 Does anyone know where file access logs are stored, so I can run a tail -f command in order to see who is accessing a particular file. I have XAMPP, which is an Apache server installed on my machine, which automatically logs the accesses. It is stored in my installation folder. files logs syslog share|improve this question edited May 19 '12 at 12:50 Gilles 368k666671117 asked May 18 '12 at 21:51 AkshaiShah 9912108 On what distribution, or with what hosting provider? Logs are typically under /var/log, but some systems have them elsewhere. –Gilles May 19 '12 at 12:51 add a comment| 3 Answers 3 active oldest votes up vote 91 down vote accepted Ultimately, this depends on your Apache configuration. Look for CustomLog directives in your Apache configuration, see the manual for examples. A typical location for all log files is /var/log and subdirectories. Try /var/log/apache/access.log or /var/log/apache2/access.log. If the logs aren't there, try running locate access.log. share|improve this answer answered May 19 '12 at 12:54 Gilles 368k666671117 +1 for CustomLog –Radu 6 hours ago add a comment| up vote 20 down vote If you can't find the log with Gilles's answer, there are a couple more things you can try. Look in /var/log/httpd. Run sudo locate access.log as well as sudo locate access_log. The logs on my system were not visible except to root, and the file was called access_log instead of access.log. share|improve this answer answered Jan 27 '15 at 19:28 Don Kirkby 30124 3 +1 for /var/log/httpd - led me right to it on our CentOS installation –