I was reminded today of the important of using these logs. I was trying to remember a problem that I created the other day while trying to move the moodle directory and looked in the Apache error log and found a message that jogged my memory.
In my default Wamp setup, the following logs are located at c:\wamp\logs
apache_error.log
mysql.log
access.log (moodle access log)
The access.log file is logging every access to the moodle server. It is already 411 KB in size and that is only after about a week of life and only me hitting the server. This file most be massive on active servers.
I am trying to build a db backup script using php, and was naturally causing problems. I wanted to look at the php error log to see what was being reported. I looked in the php info page
Site|Admin|Server|PHP Info
and searched for error_log and found that the variable was not set.
I opened the php.ini file, searched for the error_log variable and found that there was already a statement there that I wanted to use. On line 639:
;error_log = "c:/wamp/logs/php_error.log"
I removed the semicolon, saved the file, restarted the Apache service and reloaded my php script page that was failing then peeked in the c:\wamp\logs\ folder and there was my brand new php_error.log file.
Moral of the story?
Know what your error log settings are and where they are being written and USE THEM.
you are sexy
ReplyDeleteHow to explain if MySQL isn't working in Wamp? Contact to MySQL Technical Support |Cognegic|
ReplyDeleteWhat will you do all things considered if your Wamp isn't appropriately working and it goes yellow every last time? Additionally you found that your nearby host is as yet working fine however your PHPMyAdmin is as yet making issues. Presently let us disclose to you that, we have a more solid and devoted grouped who can resolve your issues with respect to Wamp and different issues. Try not to look other help benefit in light of the fact that may be conceivable they charge additional expense for your administration. Thus, rather than this you can run with MySQL Remote Support and MySQL Remote Service.
For More Info: https://cognegicsystems.com/
Contact Number: 1-800-450-8670
Email Address- info@cognegicsystems.com
Company’s Address- 507 Copper Square Drive Bethel Connecticut (USA) 06801