Page 1 of 1

hard disk running out of space due tho httpd error log

PostPosted: Thu May 05, 2016 5:39 am
by raloheni
hi
vicidial VERSION: 2.4-364a | BUILD: 120409-1136 | asterisk 1.4 | scrathc install (raysolomon) | centos 6.7 64bit|

My Harddisk running out space due to the logs in http/error_log
as i noticed below errror keep on comming (non-stop)

192.168.1.251/agc/vicidial.php
[Thu May 05 12:31:29 2016] [error] [client 192.168.1.139] PHP Deprecated: Function ereg() is deprecated in /var/www/html/agc/dbconnect.php on line 27, referer: http://192.168.1.251/agc/vicidial.php
[Thu May 05 12:31:29 2016] [error] [client 192.168.1.139] PHP Deprecated: Function ereg() is deprecated in /var/www/html/agc/dbconnect.php on line 15, referer: http://192.168.1.251/agc/vicidial.php
[Thu May 05 12:31:29 2016] [error] [client 192.168.1.139] PHP Deprecated: Function ereg() is deprecated in /var/www/html/agc/dbconnect.php on line 29, referer: http://192.168.1.251/agc/vicidial.php
[Thu May 05 12:31:29 2016] [error] [client 192.168.1.139] PHP Deprecated: Function ereg() is deprecated in /var/www/html/agc/dbconnect.php on line 17, referer: http://192.168.1.251/agc/vicidial.php
[Thu May 05 12:31:29 2016] [error] [client 192.168.1.139] PHP Deprecated: Function ereg() is deprecated in /var/www/html/agc/dbconnect.php on line 19, referer: http://192.168.1.251/agc/vicidial.php


I have given below seetings in php.ini
error_reporting = E_ALL & ~E_NOTICE
memory_limit = 48M
short_open_tag = On
max_execution_time = 330
max_input_time = 360
post_max_size = 48M
upload_max_filesize = 42M
default_socket_timeout = 360

Re: hard disk running out of space due tho httpd error log

PostPosted: Thu May 05, 2016 5:48 am
by mflorell
Upgrade, and turn off PHP warnings and notices in php.ini.

The version of Vicidial you are running is over 4 years old at this point. We have fixed A LOT of bugs and added A LOT of new features as well.

Re: hard disk running out of space due tho httpd error log

PostPosted: Fri May 06, 2016 12:57 am
by raloheni
i am not able to use the latest vicidial version as mentioned int he below post
viewtopic.php?f=4&t=35609

how can i turnoff php warnings?

Re: hard disk running out of space due tho httpd error log

PostPosted: Mon May 09, 2016 6:01 am
by boybawang
you can edit your /etc/httpd/httpd.conf and set the ErrorLog to ErrorLog /dev/null and CustomLog /dev/null combined

Re: hard disk running out of space due tho httpd error log

PostPosted: Wed Jun 01, 2016 10:31 am
by williamconley
raloheni wrote:i am not able to use the latest vicidial version as mentioned int he below post
viewtopic.php?f=4&t=35609

how can i turnoff php warnings?

To find any file on your HD: "locate".
Code: Select all
locate php.ini


There are two of them, you want the one with the word apache in the path, not the CLI version.

If your results are missing or blank, use "updatedb" to rebuild the index on the HD. This command can take a few seconds to a few minutes to run depending the on the number of files on the drive.

I don't recommend turning off apache logs. Better to turn off JUST deprecation warnings in php.ini since that's your complaint.