Salve, spero sia la sezione adatta. La situazione è questa: ho un server con installato solo Joomla e null'altro. Da qualche giorno a questa parte, apache produce 1-2giga di log di errori.
Capite da voi qual è il problema...
Ho installato diversi componenti di Joomla, non saprei dire se il problema si è venuto a creare dopo uno di questi, né ho la possibilità di disattivarne uno alla volta per trovare quello che dà problemi (almeno, la tengo come ultima possibilità).
Mi scuso sin da ora se posterò questo messaggio su più di un forum, ma la situazione è critica, mi capita di non essere sempre presente e di trovare spesso il server in down per troppi log creati.
Purtroppo il file di log è molto grande... mi limito a riportare un po' delle righe finali.
[Wed Jan 21 03:56:43 2009] [error] [client 208.50.101.151] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 88
[Wed Jan 21 03:56:43 2009] [error] [client 208.50.101.151] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 89
[Wed Jan 21 04:00:34 2009] [error] [client 81.115.165.133] PHP Notice: Undefined variable: Itemid in /var/www/vhosts/diebrucke.it/httpdocs/components/com_sh404sef/sef_ext/com_content.php on line 92, referer: http://diebrucke.it/feed/rss.html
[Wed Jan 21 04:05:37 2009] [error] [client 208.50.101.151] PHP Warning: fopen() [<a href='function.fopen'>function.fopen</a>]: Unable to access /httpdocs/index.php?option=com_content&Itemid=2&catid=7&id=72&lang=it&layout=default&page=0&print=1&tmpl=component&view=article in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 87
[Wed Jan 21 04:05:37 2009] [error] [client 208.50.101.151] PHP Warning: fopen(/httpdocs/index.php?option=com_content&Itemid=2&catid=7&id=72&lang=it&layout=default&page=0&print=1&tmpl=component&view=article) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 87
[Wed Jan 21 04:05:37 2009] [error] [client 208.50.101.151] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 88
[Wed Jan 21 04:05:37 2009] [error] [client 208.50.101.151] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 89
[Wed Jan 21 04:10:07 2009] [error] [client 69.63.178.247] PHP Notice: Undefined variable: Itemid in /var/www/vhosts/diebrucke.it/httpdocs/components/com_sh404sef/sef_ext/com_content.php on line 92
[Wed Jan 21 04:18:38 2009] [error] [client 66.249.70.156] PHP Notice: Undefined variable: Itemid in /var/www/vhosts/diebrucke.it/httpdocs/components/com_sh404sef/sef_ext/com_content.php on line 92
[Wed Jan 21 04:19:06 2009] [error] [client 209.85.238.25] PHP Notice: Undefined variable: Itemid in /var/www/vhosts/diebrucke.it/httpdocs/components/com_sh404sef/sef_ext/com_content.php on line 92
Guardando pezzo per pezzo:
[Wed Jan 21 03:56:43 2009] [error] [client 208.50.101.151] PHP Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 88
[Wed Jan 21 03:56:43 2009] [error] [client 208.50.101.151] PHP Warning: fclose(): supplied argument is not a valid stream resource in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 89
Problemi con il plugin contentstatic, chiaramente.
Ma che significa? Non riesce a scrivere il file e a chiuderlo. Potrebbe essere un problema di permessi?
[Wed Jan 21 04:00:34 2009] [error] [client 81.115.165.133] PHP Notice: Undefined variable: Itemid in /var/www/vhosts/diebrucke.it/httpdocs/components/com_sh404sef/sef_ext/com_content.php on line 92, referer: http://diebrucke.it/feed/rss.html
Problemi con sh404sef... variabile non definita... già, ma che significa?
[Wed Jan 21 04:05:37 2009] [error] [client 208.50.101.151] PHP Warning: fopen() [<a href='function.fopen'>function.fopen</a>]: Unable to access /httpdocs/index.php?option=com_content&Itemid=2&catid=7&id=72&lang=it&layout=default&page=0&print=1&tmpl=component&view=article in /var/www/vhosts/diebrucke.it/httpdocs/plugins/system/contentstatic.php on line 87
Anche qui, problemi con fopen... ma non capisco nulla di più.
Domanda: per le funzioni di modifica del file c'è bisogno di qualche estensione di php in particolare? Può essere un problema di permessi, forse?