#1  
Old 2nd April 2012, 22:32
pawan pawan is offline
Senior Member
 
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts
Default Cron log php notices

in my /var/log/ispconig
there are lots of log files created like cron.log1.gz, corn.log4.gz etc.

the contents of the file shows lots of php notices:
Code:
PHP Notice:  Constant ISPC_APP_TITLE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 58
PHP Notice:  Constant ISPC_APP_VERSION already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 59
PHP Notice:  Constant DEVSYSTEM already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 60
PHP Notice:  Constant DB_TYPE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 73
PHP Notice:  Constant DB_HOST already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 74
PHP Notice:  Constant DB_DATABASE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 75
how I should address this please help.
Reply With Quote
Sponsored Links
  #2  
Old 3rd April 2012, 07:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Please check your php,ini files, especially the cli/php.ini and set the error reporting level to:

E_ALL & ~E_NOTICE
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd April 2012, 10:54
pawan pawan is offline
Senior Member
 
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts
Default

I have set the error reporting level in apach2/php.ini and cli/php.ini
as
PHP Code:
error_reporting E_ALL & ~E_NOTICE 
The content of the log file after adding the error reporting is like this:

Code:
expr: syntax error
PHP Notice:  Constant ISPC_APP_TITLE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 58
PHP Notice:  Constant ISPC_APP_VERSION already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 59
PHP Notice:  Constant DEVSYSTEM already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 60
PHP Notice:  Constant DB_TYPE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 73
PHP Notice:  Constant DB_HOST already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 74
PHP Notice:  Constant DB_DATABASE already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 75
PHP Notice:  Constant DB_USER already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 76
PHP Notice:  Constant DB_PASSWORD already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 77
PHP Notice:  Constant DB_CHARSET already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 78
PHP Notice:  Constant ISPC_ROOT_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 93
PHP Notice:  Constant ISPC_LIB_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 94
PHP Notice:  Constant ISPC_CLASS_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 95
PHP Notice:  Constant ISPC_WEB_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 96
PHP Notice:  Constant ISPC_THEMES_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 97
PHP Notice:  Constant ISPC_WEB_TEMP_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 98
PHP Notice:  Constant ISPC_CACHE_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 99
PHP Notice:  Constant ISPC_LOG_PATH already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 100
PHP Notice:  Constant FS_DIV already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 109
PHP Notice:  Constant SERVER_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 110
PHP Notice:  Constant INCLUDE_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 111
PHP Notice:  Constant CLASSES_ROOT already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 112
PHP Notice:  Constant LOGLEVEL_DEBUG already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 165
PHP Notice:  Constant LOGLEVEL_WARN already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 166
PHP Notice:  Constant LOGLEVEL_ERROR already defined in /usr/local/ispconfig/server/lib/config.inc.local.php on line 167
Reply With Quote
  #4  
Old 3rd April 2012, 18:46
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Seems as if you use a file /usr/local/ispconfig/server/lib/config.inc.local.php which defines constants from /usr/local/ispconfig/server/lib/config.inc.php gaian. Please remove all constant definitions from /usr/local/ispconfig/server/lib/config.inc.local.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd April 2012, 21:25
pawan pawan is offline
Senior Member
 
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts
Default

Thanks Till, I removed everything from /usr/local/ispconfig/server/lib/config.inc.local.php and all the errors relating to constants is gone, but I am still getting some errors mainly

Code:
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
expr: syntax error
and this errors comes up in log every minute. where should I look for this?
Reply With Quote
  #6  
Old 3rd April 2012, 21:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,774
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

I have no idea from which file they come. Have you added or edited any source files from ispconfig? I just ask as I dont see these errors on my installations.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
pawan (3rd April 2012)
  #7  
Old 3rd April 2012, 23:39
pawan pawan is offline
Senior Member
 
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts
 
Default

Thank you so much. I am not sure about the modification.
I will look in to it and report the source of the problem once located.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 Autoresponder, adding subdomain problem BlackHat Installation/Configuration 4 18th October 2011 14:24
Problem with ispconfig 3 staff007 Installation/Configuration 4 10th October 2011 21:17
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 13:22
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
php script injections Grizzly General 21 18th July 2006 08:55


All times are GMT +2. The time now is 10:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.