PHP Error Log File

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

PHP Error Log File

Postby Trying » Tue May 22, 2012 10:14 am

Hi

We have noticed that all sorts of weird things started happening...... the custom web forms taking very long to open after a customer is connected, agents being paused automatically after calls, etc. We are using a dedicated web server but now that we are having around 120 -150 agents the web server could not handle the load and we also started using the dialers for some agents to log into the agent screen to lower the load on the web server. Our IT technician spotted heavy apache error "spamming" on these dialers. Underneath are some of his comments and the error:

[Tue May 22 16:48:48 2012] [error] [client 192.168.111.156] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Africa/Johannesburg' for 'SAST/2.0/no DST' instead in /srv/www/htdocs/agc/conf_exten_check.php on line 760, referer:

"2012-04-19
[4:50:56 PM] Sias: thats the last date of "normal" log file sizes
[4:51:09 PM] Sias: the zipped log files jumped up from being 100k to being 4meg or so
[4:51:21 PM] Sias: lately .. 50-100 meg zipped
[4:51:33 PM] Sias: which in this case means 20-30 gig unziped
[4:51:37 PM] Sias: for a single day"

"there is a bzip process
[4:42:10 PM] Sias: I cant see what started it
[4:42:23 PM] Sias: but the onl thing using bzip I can find is the log file rotation
[4:42:42 PM] Sias: and the zip of todays error log is still being pushed to
[4:42:55 PM] Sias: the log rotation seems to have started arround 13:00"


So it seems that this huge daily error log file is what is killing our system. Any help would be much appreciated.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Re: PHP Error Log File

Postby DomeDan » Wed May 23, 2012 7:00 am

PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

to remove this warning edit the file:
/etc/php5/apache2/php.ini
uncomment and edit this line (set Africa/Johannesburg if thats what you want):
;date.timezone = America/New_York

Its just a warning, should not cripple your server i guess, but with that many rows in apache error_log you can probably find something worse :wink:

I rarely get apache warnings from vicidial stuff, last one was a month ago.

You should parse the logs and find every unique error/warning and solve them.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: PHP Error Log File

Postby Trying » Wed May 23, 2012 12:03 pm

Thank you very much for the reply!
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa


Return to Support

Who is online

Users browsing this forum: No registered users and 142 guests