Error Log On 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 About Us Learn more about Stack ubuntu system error log Overflow the company Business Learn more about hiring developers or posting ads with us ubuntu crash log Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and ubuntu apache error log 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 up and rise to the top Where are all the ubuntu error log location major log files located? up vote 52 down vote favorite 30 So, if there is some problem with my computer, be it hardware or software, what are the major log files and where are they located? Also, is there a generic location where log files of the other packages might be located? log share|improve this question edited Sep 10 '12 at 19:02 asked Sep 10 '12 at 18:37 green 9,60622750 Possibly
Linux Error Log
relevant: askubuntu.com/questions/5868/… –Jeremy Stein Sep 11 '12 at 18:51 add a comment| 3 Answers 3 active oldest votes up vote 61 down vote accepted All log files are located in /var/log directory. In that directory, there are specific files for each type of logs. For example, system logs, such as kernel activities are logged in syslog file. Some of the most common log files in that directory is : In directory apt there is a file history.log which saves all the package installation and removal information even the initial system build as Live CD. You can open this file to see this very interesting file. In directory dist-upgrade there is a file apt.log which logs the information during distribution upgrades In directory installer the log files which are created during installation can be found. There is an apport.log file which saves information about crashes in your system and reporting them. The file auth.log includes information about the authentication activities such as when you authenticate as root user via sudo. The file dpkg.log saves the low level details of package installation and removal related with dpkg. You might be aware that the apt system depends on dpkg for package installation and removal. boot.log includes information of each booting. kern.log saves kernel information such as warnings, errors etc. alterna
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 Us Learn more about Stack Overflow the
Ubuntu Errorlog
company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions php error log ubuntu nginx Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it linux system log location 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 the Apache and PHP log files? http://askubuntu.com/questions/186276/where-are-all-the-major-log-files-located/186280 up vote 116 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.9k84480 asked Nov 24 '10 at 18:58 Stann 3,751113439 add a comment| 3 Answers 3 active oldest votes up vote 161 down vote accepted By default, /var/log/apache2/error.log. http://askubuntu.com/questions/14763/where-are-the-apache-and-php-log-files 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,91311522 Yep. got it. it was a bit different on windows. –Stann Nov 24 '10 at 19:38 Apache logs can be rotated, so you might want to check all error.log.* files –nuoritoveri Oct 6 at 7:43 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 You can also define a specific error log file for each VirtualHost in Apache. If you have any VirtualHost defined in /etc/a
LinuxQ. Can you explain me log files in Ubuntu Linux and how do I view logs?
A. All logs are stored in /var/log directory under Ubuntu (and other Linux distro).Linux Log files http://www.cyberciti.biz/faq/ubuntu-linux-gnome-system-log-viewer/ and usage=> /var/log/messages : General log messages=> /var/log/boot : System boot log=> /var/log/debug : Debugging log messages=> /var/log/auth.log : User login and authentication logs=> /var/log/daemon.log : Running services such as squid, ntpd and http://stackoverflow.com/questions/23675384/how-to-enable-error-log-in-ubuntu-apache others log message to this file=> /var/log/dmesg : Linux kernel ring buffer log=> /var/log/dpkg.log : All binary package log includes package installation and other information=> /var/log/faillog : User failed login log file=> /var/log/kern.log error log : Kernel log file=> /var/log/lpr.log : Printer log file=> /var/log/mail.* : All mail server message log files=> /var/log/mysql.* : MySQL server log file=> /var/log/user.log : All userlevel logs=> /var/log/xorg.0.log : X.org log file=> /var/log/apache2/* : Apache web server log files directory=> /var/log/lighttpd/* : Lighttpd web server log files directory=> /var/log/fsck/* : fsck command log=> /var/log/apport.log : Application crash report / log fileTo view log files at shell error log on promptUse tail, more, less and grep command. tail -f /var/log/apport.logmore /var/log/xorg.0.log
cat /var/log/mysql.err
less /var/log/messages
grep -i fail /var/log/bootView log files using GUI tools using the GNOME System Log ViewerSystem Log Viewer is a graphical, menu-driven viewer that you can use to view and monitor your system logs. System Log Viewer comes with a few functions that can help you manage your logs, including a calendar, log monitor and log statistics display. System Log Viewer is useful if you are new to system administration because it provides an easier, more user-friendly display of your logs than a text display of the log file. It is also useful for more experienced administrators, as it contains a calendar to help you locate trends and track problems, as well as a monitor to enable you to continuously monitor crucial logs.You can start System Log Viewer in the following ways:Click on System menu > Choose Administration > System Log: (The GNOME System Log Viewer)Note you can start the GNOME System Log Viewer from a shell prompt, by entering the following command: $ gnome-system-log & Share this tutorial on:TwitterFacebookGoogle+Download PDF version Found an error/typo on this page?About the aut
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 Stack Overflow 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 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 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,7141931 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|impr