Debian Error Log Location
Contents |
2014 in Commands, File system, LinuxI am a new debian php error log Linux user. I would like to know where are
Debian Apache Error Log
the log files located under Debian/Ubuntu or CentOS/RHEL/Fedora Linux server? How do I debian mysql error log open or view log files on Linux operating systems? Almost all logfiles are located under /var/log directory and its sub-directories on Linux.
Debian Apache2 Error Log
You can change to this directory using the cd command. You need be the root user to view or access log files on Linux or Unix like operating systems. You can use the following commands to see the log files:less commandmore commandcat commandgrep commandtail commandzcat linux error log location commandzgrep commandzmore commandHow do I view log files on Linux?Open the Terminal or login as root user using ssh command. Go to /var/log directory using the following cd command: # cd /var/log
To list files use the following ls command: # ls Sample outputs from RHEL 6.x server:anaconda.ifcfg.log boot.log-20111225 cron-20131110.gz maillog-20111218 messages-20131103.gz secure-20131027.gz spooler-20131117.gz up2date-20131117.gz anaconda.log btmp cron-20131117.gz maillog-20111225 messages-20131110.gz secure-20131103.gz squid uptrack.log anaconda.program.log btmp-20120101 cups maillog-20120101 messages-20131117.gz secure-20131110.gz swinstall.d uptrack.log.1 anaconda.storage.log btmp-20131101.gz dkms_autoinstaller maillog-20131027.gz mysqld.log secure-20131117.gz tallylog uptrack.log.2 anaconda.syslog collectl dmesg maillog-20131103.gz ntpstats setroubleshoot UcliEvt.log varnish anaconda.yum.log ConsoleKit dmesg.old maillog-20131110.gz prelink spooler up2date wtmp arcconfig.xml cron dracut.log maillog-20131117.gz rhsm spooler-20111211 up2date-20111211 yum.log atop cron-20111211 dracut.log-20120101 messages sa spooler-20111218 up2date-20111218 yum.log-20120101 audit cron-20111218 dracut.log-20130101.gz messages-20111211 secure spooler-20111225 up2date-20111225 yum.log-20130101.gz boot.log cron-20111225 httpd messages-20111218 secure-20111211 spooler-20120101 up2date-20120101 boot.log-20111204 cron-20120101 lastlog messages-20111225 secuUbuntu, MySQLCan you tell me the location of for the MySQL error log file under Debian or Ubuntu Linux? How do I view error log file? The data directory is also the default location for
Ubuntu Php Error Logs
other information such as log files and status files. However, under Debian and Ubuntu
Httpd Logs Location
Linux the MySQL error log file location is as follows:
/var/log/mysql.err - MySQL Error log file/var/log/mysql.log - MySQL log fileYou can linux /var/log/messages use the commands as follows:grep 'something' /var/log/mysql.err tail -f /var/log/mysql.err less /var/log/mysql.err Share this tutorial on:TwitterFacebookGoogle+Download PDF version Found an error/typo on this page?About the author: Vivek Gite is a seasoned sysadmin and a http://www.cyberciti.biz/faq/linux-log-files-location-and-how-do-i-view-logs-files/ trainer for the Linux/Unix & shell scripting. Follow him on Twitter. OR read more like this:MySQL: Log Files in Linux / UNIX / BSDYour PHP installation appears to be missing the MySQL extension which is…ERROR 1018 (HY000): Can't read dir of ‘./dbname/' (errno:Securing MySQL serverHow do I start MySQL server without using startup script /etc/init.d/mysql?MySQL startup script under BSD/LinuxMySQL error 28 and solutionCan't connect to local MySQL server through socket…Where http://www.cyberciti.biz/faq/debian-ubuntu-linux-mysql-error-log/ Are MySQL Files Stored in UNIX / LinuxPHP not connecting to a MySQL database server{ 2 comments… add one } Estêvão Samuel Procópio June 25, 2011, 4:30 pmTry to take a look in /var/log/syslog for mysql errors… Reply Link Michael McDonald April 30, 2013, 10:36 am99.9% of users will find their mysql logs in /var/syslogEspecially if they installed apache2 and didn't manually change the logging paths in the .ini file. Reply Link Security: Are you a robot or human?Please enable JavaScript to submit this form.Cancel replyLeave a Comment Name Email Comment You can use these HTML tags and attributes: Receive Email Notifications? no, do not subscribeyes, replies to my commentyes, all comments/replies instantlyhourly digestdaily digestweekly digest Or, you can subscribe without commenting. Tagged with: /var/log/mysql.err, /var/log/mysql.log, data directory, Database, Debian /var/log/mysql.err, Debian /var/log/mysql.log, grep command, MySQL, mysql error, pipes, tail command, Ubuntu /var/log/mysql.err, Ubuntu /var/log/mysql.log, Ubuntu LinuxNext FAQ: Suse Linux ( SLES10 ) IPv6 ConfigurationPrevious FAQ: Lost MySQL Admin Password Featured Articles:30 Cool Open Source Software I Discovered in 201330 Handy Bash Shell Aliases For Linux / Unix / Mac OS XTop 30 Nmap Command Examples For Sys/Network Admins25 PHP Security Best Practices For Sys Admins20 Linux SysteIn submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: Sadequl Hussain Subscribe Subscribed Share Contents Contents We hope you find this tutorial helpful. In https://www.digitalocean.com/community/tutorials/how-to-view-and-configure-linux-logs-on-ubuntu-and-centos addition to guides like this one, we provide simple cloud infrastructure for developers. Learn more → http://superuser.com/questions/173833/debugging-apache-on-debian-where-are-the-error-logs 9 How To View and Configure Linux Logs on Ubuntu and Centos Posted Dec 17, 2013 162.8k views Logging Linux Basics CentOS Ubuntu Debian Introduction Linux system administrators often need to look at log files for troubleshooting purposes. In fact, this is the first thing any sysadmin would do. Linux and the applications that run on it can generate all different types of error log messages, which are recorded in various log files. Linux uses a set of configuration files, directories, programs, commands and daemons to create, store and recycle these log messages. Knowing where the system keeps its log files and how to make use of related commands can therefore help save valuable time during troubleshooting. In this tutorial, we will have a look at different parts of the Linux logging mechanism. Disclaimer The commands in this tutorial were tested in plain vanilla installations error log location of CentOS 6.4, Ubuntu 12 and Debian 7. Default Log File Location The default location for log files in Linux is /var/log. You can view the list of log files in this directory with a simple ls -l /var/log command. This is what I see in my CentOS system: [root@TestLinux ~]# ls -l /var/log total 1472 -rw-------. 1 root root 4524 Nov 15 16:04 anaconda.ifcfg.log -rw-------. 1 root root 59041 Nov 15 16:04 anaconda.log -rw-------. 1 root root 42763 Nov 15 16:04 anaconda.program.log -rw-------. 1 root root 299910 Nov 15 16:04 anaconda.storage.log -rw-------. 1 root root 40669 Nov 15 16:04 anaconda.syslog -rw-------. 1 root root 57061 Nov 15 16:04 anaconda.xlog -rw-------. 1 root root 1829 Nov 15 16:04 anaconda.yum.log drwxr-x---. 2 root root 4096 Nov 15 16:11 audit -rw-r--r-- 1 root root 2252 Dec 9 10:27 boot.log -rw------- 1 root utmp 384 Dec 9 10:31 btmp -rw-------. 1 root utmp 1920 Nov 28 09:28 btmp-20131202 drwxr-xr-x 2 root root 4096 Nov 29 15:47 ConsoleKit -rw------- 1 root root 2288 Dec 9 11:01 cron -rw-------. 1 root root 8809 Dec 2 17:09 cron-20131202 -rw-r--r-- 1 root root 21510 Dec 9 10:27 dmesg -rw-r--r-- 1 root root 21351 Dec 6 16:37 dmesg.old -rw-r--r--. 1 root root 165665 Nov 15 16:04 dracut.log -rw-r--r--. 1 root root 146876 Dec 9 10:44 lastlog -rw------- 1 root root 950 Dec 9 10:27 maillog -rw-------. 1 root root 4609 Dec 2 17:00 mail
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 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 The best answers are voted up and rise to the top Debugging Apache on Debian, where are the error logs? up vote 6 down vote favorite 3 I'm using a Debian server that already has Apache, mod_wsgi and a bunch of virtual hosts successfully running on it. I installed my forum app (Django's OSQA) and following the OSQA instructions, I then created an Apache config file that specified ServerName as the new sub-domain. I also created a .wsgi file for the app, and pointed WSGIScriptAlias at it. I then restarted Apache. However, when I go to the new sub-domain, I get a 404 error message. Am I missing a step above? Or is simply creating a new Apache config file in sites-available enough to tell Apache about a new sub-domain? If there's something else going wrong, how can I debug it? The ErrorLog and CustomLog specified in the config file are both blank. apache2.conf, which I guess is Apache-wide configuration, specifies ErrorLog /var/log/apache2/error.log, but this is yet another blank file. debian apache-http-server logging share|improve this question edited Apr 5 '12 at 23:41 random♦ 10.4k83954 asked Aug 9 '10 at 15:32 AP257 70236 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote There are a lot of online resources for Apache. Did you try searching Google to find the answers yourself? When I searched Google a few months ago, I found the following information: ErrorLog /var/log/apache2/error.log AccessLog /var/log/apache2/access.log start/stop /etc/init.d/apache2 (start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean) share|improve this answer edited Aug 10 '10 at 16:37 BloodPhilia 21.4k66091 answered Aug 10 '10 at 16:32 Tom 1,11567 add a comment| up vote 5 down vote The first post is not correct for all cases on Debian. It depends on how you have installed the package, whether that is via apt or by compiling from source. To find out where the logs are, according to how Apache says it was instructed to generate logs you will want to run the following command: /usr/sbin/apachectl -V some distributions of lin