Testing: Difference between revisions

Jump to navigation Jump to search
165 bytes added ,  2 July 2012
Line 66: Line 66:


=== check the server/service logs ===
=== check the server/service logs ===
==== Apache ====
* [http://httpd.apache.org/ Apache HTTP server] log: /etc/httpd/logs  (location was set up in the configuration file /etc/httpd/conf/httpd.conf)
* [http://httpd.apache.org/ Apache HTTP server] log: /etc/httpd/logs  (location was set up in the configuration file /etc/httpd/conf/httpd.conf)
** access.log
** access.log
** error.log - record when the apache service restarted/stopped
** error.log - record when the apache service restarted/stopped


==== MySQL ====
* [http://dev.mysql.com/doc/refman/5.1/en/server-logs.html MySQL Server Logs]: enable logging /var/log/mysql.log (location was set up in the configuration file /etc/my.cnf or my.ini) and restart MySQL service<ref>[http://blog.longwin.com.tw/2005/10/mysql_query_slow_find/ 找出 MySQL 哪些 Query 速度較慢 | Tsung's Blog]</ref>
* [http://dev.mysql.com/doc/refman/5.1/en/server-logs.html MySQL Server Logs]: enable logging /var/log/mysql.log (location was set up in the configuration file /etc/my.cnf or my.ini) and restart MySQL service<ref>[http://blog.longwin.com.tw/2005/10/mysql_query_slow_find/ 找出 MySQL 哪些 Query 速度較慢 | Tsung's Blog]</ref>
<pre>
<pre>
Line 81: Line 83:
</pre>
</pre>


==== PHP ====
* [http://www.php.net/ PHP] log: check the configuration file: /etc/php.ini (the location of configuration file can be verified by [http://php.net/manual/en/function.phpinfo.php phpinfo()] )
* [http://www.php.net/ PHP] log: check the configuration file: /etc/php.ini (the location of configuration file can be verified by [http://php.net/manual/en/function.phpinfo.php phpinfo()] )
(for production site) unmark theese lines in the php.ini and restart Apache service
(for production site) unmark theese lines in the php.ini and restart Apache service
Line 91: Line 94:
error_reporting(E_ALL);
error_reporting(E_ALL);
</pre>
</pre>
* [http://php.net/manual/en/function.error-log.php PHP: error_log - Manual]


==== IIS ====
* [http://www.iis.net/ Microsoft Internet Information Services] (IIS) log (記錄檔)
* [http://www.iis.net/ Microsoft Internet Information Services] (IIS) log (記錄檔)
**  C:\WINDOWS\system32\LogFiles\
**  C:\WINDOWS\system32\LogFiles\


==== Microsoft Windows ====
* Microsoft Windows  
* Microsoft Windows  
** XP / Vista: 控制台 --> 系統管理工具 --> 事件檢視器
** XP / Vista: 控制台 --> 系統管理工具 --> 事件檢視器

Navigation menu