Hello
Pls help me.
unfortunately i don't know in which section post this topic, because my hoster told me, that problem is in my code (php+mysql), and script depeloper think in another way :looks like something you need to address on the server side.
the problem is:
I use VPS account, with guaranteed 256mb RAM (as they told (512MB max) on Dual Xeon 3.0GHz linux server.
i have 2500-3000 uniq visitors per day, and use ~30-40GB traff/month
one fact else, this last month my traffic and unique visitors stats are decreased (for example in jan, feb. i have 3500-4500 uniqs/pay) and haven't any problem (no error log file)
I use this hosting 4-5 months and this last month i got 6-7 times apache fails, and very interesting error log files in my root dir.
it's very interesting, because this error log file apears not every day, but only 1-2 days in week.
need to tell. that i don't change anything in my code.
don't know anythink about server updates, know only that besides apaches fails, there was some other problems on server (dns error(s), mailserver, httpd, etc )
so don't know did my hoster change anything in his server configuration.
one of the error log file, which i check 2 days ago
[14-Mar-2005 00:19:56] PHP Warning: main(): Failed opening 'inc/header_top.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my-site/public_html/more.php on line 1
[14-Mar-2005 00:19:56] PHP Fatal error: Call to undefined function: weblog_entry_alt1() in /home/my-site/public_html/more.php on line 47
[14-Mar-2005 00:20:32] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:21:21] PHP Warning: main(): Failed opening './pm/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my-site/public_html/pm/inc.lib.php on line 97
[14-Mar-2005 00:21:23] PHP Warning: main(inc/header_top.php): failed to open stream: Too many open files in system in /home/my-site/public_html/more.php on line 1
[14-Mar-2005 00:21:24] PHP Warning: main(): Failed opening 'inc/header_top.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my-site/public_html/more.php on line 1
[14-Mar-2005 00:21:24] PHP Warning: main(inc/header.php): failed to open stream: Cannot allocate memory in /home/my-site/public_html/more.php on line 3
[14-Mar-2005 00:21:24] PHP Warning: main(inc/header.php): failed to open stream: Cannot allocate memory in /home/my-site/public_html/more.php on line 3
[14-Mar-2005 00:21:24] PHP Warning: main(): Failed opening 'inc/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my-site/public_html/more.php on line 3
[14-Mar-2005 00:21:24] PHP Warning: main(inc/new_arrivals.php): failed to open stream: Cannot allocate memory in /home/my-site/public_html/more.php on line 42
[14-Mar-2005 00:21:24] PHP Warning: main(inc/new_arrivals.php): failed to open stream: Cannot allocate memory in /home/my-site/public_html/more.php on line 42
[14-Mar-2005 00:21:24] PHP Warning: main(): Failed opening 'inc/new_arrivals.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/my-site/public_html/more.php on line 42
[14-Mar-2005 00:21:24] PHP Fatal error: Call to undefined function: weblog_entry_alt1() in /home/my-site/public_html/more.php on line 47
[14-Mar-2005 00:21:25] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:21:27] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:21:29] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:21:47] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:21:57] PHP Fatal error: Cannot instantiate non-existent class: db in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2495
[14-Mar-2005 00:22:03] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:22:12] PHP Fatal error: Call to undefined function: get_offset_time() in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2498
[14-Mar-2005 00:22:15] PHP Fatal error: Call to undefined function: get_offset_time() in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2498
[14-Mar-2005 00:22:27] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:22:33] PHP Warning: Zend Optimizer for PHP 4.3.x cannot be found (expected at '/usr/local/Zend/lib/Optimizer-2.5.7/php-4.3.x/ZendOptimizer.so') - try reinstalling the Zend Optimizer in Unknown on line 0
[14-Mar-2005 00:22:42] PHP Fatal error: Call to undefined function: get_offset_time() in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2498
[14-Mar-2005 00:22:43] PHP Fatal error: Call to undefined function: get_offset_time() in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2498
[14-Mar-2005 00:22:55] PHP Warning: main(inc/header_top.php): failed to open stream: Too many open files in system in /home/my-site/public_html/more.php on line 1
[14-Mar-2005 00:23:17] PHP Fatal error: Call to undefined function: weblog_categories() in /home/my-site/public_html/inc/header.php on line 57
[14-Mar-2005 00:23:28] PHP Fatal error: Call to undefined function: show_field() in /home/my-site/public_html/inc/header_top.php on line 5
[14-Mar-2005 00:38:09] PHP Fatal error: Call to undefined function: get_offset_time() in /home/my-site/public_html/pm/lib/weblog.fns.php on line 2498
when i ask my hoster about it, he told , that the problem is in my script side ... hmm :-(
for example, i cann't understand how, my script can work without any problem 3-4 months and other days of march, and only few days , he cann't Call this function: weblog_entry_alt1() in /home/my-site/public_html/more.php on line 47
script developer have another opinion. he told that problem is on server side and recommend to increase PHP value
indicate that you don't have enough memory allocated to PHP. The default PHP value is set to 8MB, so you might want to see about getting that increased.
"Too many open files in system" looks like something you need to address on the server side.