error-log

MAMP Mysql Error - Failed to open log

痞子三分冷 提交于 2020-01-22 18:47:13
问题 I've been working with a MAMP installation for several weeks now, and when I started it up today it would not start. No mysql process was running so I checked the error log which shows the following when I start the server: 130826 14:19:55 mysqld_safe Starting mysqld daemon with databases from /Applications/MAMP/db/mysql 130826 14:19:55 [Warning] You have forced lower_case_table_names to 0 through a command-line option, even though your file system '/Applications/MAMP/db/mysql/' is case

wkhtmltopdf writes in apache error log for every pdf created

China☆狼群 提交于 2020-01-06 03:31:07
问题 Every time a PDF is created in WKHTMLTOPDF (using php) i am getting the following in the apache error log: Loading pages (1/6) [> ] 0% [======> ] 10% [==========> ] 17% [===================> ] 32% [==============================> ] 50% [=====================================> ] 63% [============================================> ] 74% [============================================================] 100% Counting pages (2/6) [============================================================] Object 1

log_errors and error_log in php for php.ini

旧城冷巷雨未停 提交于 2020-01-04 18:41:43
问题 I'm troing to change settings in php.ini throu php. My problem is that when there is an error, its not put in to the file error_log.txt, so what am I doing wrong? This is my code: // Settings for php.ini ini_set("session.cookie_httponly", 1); ini_set("session.cookie_secure", 1); ini_set('display_errors', 'off'); error_reporting(0); // errormeddelanden loggas i logs/errorlog.txt ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/logs/error_log.txt'); 回答1: You can use the

log_errors and error_log in php for php.ini

守給你的承諾、 提交于 2020-01-04 18:41:06
问题 I'm troing to change settings in php.ini throu php. My problem is that when there is an error, its not put in to the file error_log.txt, so what am I doing wrong? This is my code: // Settings for php.ini ini_set("session.cookie_httponly", 1); ini_set("session.cookie_secure", 1); ini_set('display_errors', 'off'); error_reporting(0); // errormeddelanden loggas i logs/errorlog.txt ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/logs/error_log.txt'); 回答1: You can use the

Changing color and output of MAMP's php error log in the terminal

本小妞迷上赌 提交于 2019-12-25 02:22:13
问题 So the first priority here is trying to change the color of the out from the php error logs in my terminal. I read in this article PHP log file color about how they were using a class to do this but I'm not quite sure where to start. Maybe the php.ini file? Also I'm using the command tail -f /Applications/MAMP PRO/MAMP PRO.app/Contents/Resources/php5.5.10.ini to output the error logs. If this is too difficult of a task to accomplish I'll let it go. I just think it'd be nice to see some kind

Send errors message via email using error_log()

徘徊边缘 提交于 2019-12-24 03:32:08
问题 The php function error_log() let you send logs to email setting the second param to 1. I do that, but i want to dispay message in html. The code looks like this: error_log($this->_errorMsg, 1, ADMIN_MAIL, "Content-Type: text/html; charset=utf8\r\nFrom: ".MAIL_ERR_FROM."\r\nTo: ".ADMIN_MAIL); Probably i mess something declaring the content type, because i get msg in plain text: <h1>Website Error</h1> <b>ERRNO:</b><font color='red'>1</font> ... 回答1: Try to set up your headers like so: $headers

Voiceglue Logger says Maximum loop count exceeded. There is probably an infinite loop of in your VXML document

ε祈祈猫儿з 提交于 2019-12-23 02:24:06
问题 Can Any please explain why this is happening. what are the possibilities of errors that are been counted as I have set maxerrorcount = 3 EROR OPEN_VXI luke---- callid=[68] |1098905920|68|CRITICAL|com.vocalocity.vxi|216|VXIinterpreterRun: Maximum loop count exceeded. There is probably an infinite loop of in your VXML document.|URL Please let me know if any further details are required. 回答1: Perhaps, "infinite loop" means to call same form again and again, And it was not inserted caller input

How to change the way PHP writes errors in the error log file?

允我心安 提交于 2019-12-22 09:18:30
问题 I have been working on my website for over a year now, and I am very anxious to finally put it out there for people to use. It has gotten quite large however - I almost want to say out of my control - and on top of that I am really just an self taught amateur programmer. So I want to be sure, that any errors that php produces are logged in a file, so I can than access this file and track errors down. Currently my settings are the following: <?php error_reporting(E_ALL); ini_set('display

Using openshift rhc tail command

為{幸葍}努か 提交于 2019-12-20 20:01:36
问题 How do you tail openshift log files? I issued the following command: rhc tail myapp It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop batch or not. How can I display last few errors and may be browse page by page? Is there page down/ page up shortcuts? 回答1: The 'rhc tail' command reads the last few lines of each of your log files and continues to feed subsequent log messages to your console. To view the entire log file, please review

Apache server — multiple directories, different error logs

烂漫一生 提交于 2019-12-19 03:12:52
问题 I have two directories in /var/www (say, /var/www/app1 and /var/www/app2) whose error logs I want sent to different files. Both are under the same domain, so I think that I can't put them under different virtual hosts. So, for example, I would access them as: http://localhost/app1 http://localhost/app2 I came across this page: Generate access logs for different subdirectories in Apache whose solution works perfectly for the access logs. However, the "env" argument doesn't seem to work with