31

[Tue Oct 07 22:59:37 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/video, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/news.php

32 (07.10.2014 23:14:10 отредактировано Marley)

Ошибки уже не с сервером с а кодом сайта.
При желании их можно скрыть, если они некритические, но обычно лучше их исправить.

Я думал, что ошибки выводятся из-за содержимого в файле .htaccess, где явно прописывается их выводить на экран.
Сам он не мог удалиться.

Настроить уровень вывода сообщений можно также в файле php.ini.

No Woman No Cry...

33

Подскажешь, где почитать про настройку php под Centos? Страно, что в коде дело, на IIS все сейчас работает и вроде даже не скачет. Код один в один, кроме конфига:

Был такой:
<?php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors','1');
setlocale(LC_ALL, "RU");
$cfg_global['db']['type'] = 'mysql';
$cfg_global['db']['login'] = 'u28950_it';
$cfg_global['db']['password'] = '';
$cfg_global['db']['host'] = 'u28950.mysql.masterhost.ru';
$cfg_global['db']['database'] = 'u28950_videoserv';
$path_site = "/home/u28950/videoserv.ru/www/";
require_once $path_site . 'DbSimple/Generic.php';
//require_once $path_site . 'www/class/Usersession.php';
require_once $path_site . 'Smarty/Smarty.class.php';
?>

Стал такой:
<?php
error_reporting(E_ALL & ~E_NOTICE);
ini_set('display_errors','1');
setlocale(LC_ALL, "RU");
date_default_timezone_set('UTC');
$cfg_global['db']['type'] = 'mysql';
$cfg_global['db']['login'] = 'root';
$cfg_global['db']['password'] = '';
$cfg_global['db']['host'] = 'localhost';
$cfg_global['db']['database'] = 'video';
$path_site = "/var/www/html/";
require_once $path_site . 'DbSimple/Generic.php';
require_once $path_site . 'Smarty/Smarty.class.php';
?>

Может чего то не хватает? Какой ни будь библиотеки? Как выяснить?

34

Блин, удалил бд что бы загрузит её в нужной кодировке, а теперь не получается импортировать. Попробую через ребут.

35

milienko пишет:

Страно, что в коде дело, на IIS все сейчас работает и вроде даже не скачет. Код один в один, кроме конфига:

Ну вы же видите в сообщении об ошибке:

milienko пишет:

[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:02:19 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/news.php

воспользуйтесь online переводчиком, если не знаете как это переводится.

36

может кто знает, почему перестал работать импорт базы муйэскль?

37

milienko пишет:

Подскажешь, где почитать про настройку php под Centos? Страно, что в коде дело, на IIS все сейчас работает и вроде даже не скачет.

А какая версия php использовалась ранее?
Какая сейчас?

Думаю дело в этом.

No Woman No Cry...

38

+ открыть спойлер

[Tue Oct 07 23:06:52 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:06:52 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:06:52 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:06:52 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: http://10.0.1.113/index.php
[Tue Oct 07 23:08:23 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:23 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:23 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:23 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:23 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:08:25 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:25 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:25 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:25 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:25 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:08:26 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:26 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:26 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:26 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:26 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:08:28 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:28 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:28 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:28 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:08:28 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:21:56 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:21:56 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:21:56 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:21:56 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:21:56 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:22:00 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:00 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:00 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:00 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:01 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:05 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:22:06 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:24:47 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20, referer: Переход с IIS на Centos
[Tue Oct 07 23:24:47 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89, referer: Переход с IIS на Centos
[Tue Oct 07 23:24:47 2014] [error] [client 10.0.1.113] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35, referer: Переход с IIS на Centos
[Tue Oct 07 23:24:47 2014] [error] [client 10.0.1.113] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25, referer: Переход с IIS на Centos
[Tue Oct 07 23:24:47 2014] [error] [client 10.0.1.113] File does not exist: /var/www/html/data, referer: http://10.0.1.113/
[Tue Oct 07 23:25:16 2014] [notice] caught SIGTERM, shutting down
[Tue Oct 07 23:25:16 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 07 23:25:17 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 07 23:25:17 2014] [notice] Digest: done
[Tue Oct 07 23:25:17 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.33 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Oct 07 23:26:47 2014] [error] [client 10.0.1.103] File does not exist: /var/www/html/pma/pmadb, referer: http://10.0.1.113/pma/
[Tue Oct 07 23:26:53 2014] [error] [client 10.0.1.103] File does not exist: /var/www/html/pma/pmadb, referer: http://10.0.1.113/pma/
[Tue Oct 07 23:30:08 2014] [notice] caught SIGTERM, shutting down
[Tue Oct 07 23:30:45 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 07 23:30:45 2014] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 07 23:30:45 2014] [notice] Digest: done
[Tue Oct 07 23:30:45 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.4.33 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Oct 07 23:31:08 2014] [error] [client 10.0.1.103] PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible context in /var/www/html/class/RootAction.php on line 20
[Tue Oct 07 23:31:08 2014] [error] [client 10.0.1.103] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Generic.php on line 89
[Tue Oct 07 23:31:08 2014] [error] [client 10.0.1.103] PHP Strict Standards:  Non-static method DbSimple_Generic::parseDSN() should not be called statically, assuming $this from incompatible context in /var/www/html/DbSimple/Mysql.php on line 35
[Tue Oct 07 23:31:08 2014] [error] [client 10.0.1.103] PHP Warning:  Creating default object from empty value in /var/www/html/class/RootAction.php on line 25
[Tue Oct 07 23:31:08 2014] [error] [client 10.0.1.103] File does not exist: /var/www/html/data, referer: http://10.0.1.113/index.php

39

milienko пишет:

может кто знает, почему перестал работать импорт базы муйэскль?

Я так понимаю, что должны быть какие-нибудь сообщения. Если не на экране, то по крайней мере в логах.

No Woman No Cry...

40 (07.10.2014 23:43:37 отредактировано kostik87)

milienko пишет:

может кто знает, почему перестал работать импорт базы муйэскль?

Скорее всего, сейчас подключение к Mysql написано с использованием модуля mysql, в то время как сейчас в php рекомендуется использовать модуль mysqli, а mysql объявлен устаревшим и неподдерживаемым.

Так что ставьте либо точно такуюже версию PHP, что у вас в Windows, а в Windows, скорее всего у вас версия 5.3.*, ну либо переписывайте работу с Mysql через Mysqli.

http://php.net/manual/ru/book.mysqli.php

41

kostik87 пишет:
milienko пишет:

может кто знает, почему перестал работать импорт базы муйэскль?

Скорее всего, сейчас подключение к Mysql написано с использованием модуля mysql, в то время как сейчас в php рекомендуется использовать модуль mysqli, а mysql объявлен устаревшим и неподдерживаемым.

Так что ставьте либо точно такуюже версию PHP, что у вас в Windows, а в Windows, скорее всего у вас версия 5.3.*, ну либо переписывайте работу с Mysql через Mysqli.

http://php.net/manual/ru/book.mysqli.php


Тогда бы в логах это было бы явно написано.

No Woman No Cry...

42

Еще раз я удалил базу из маскл, так как при импорте не поставил кодировку 1251, теперь опять создаю в PMA и пытаюсь импортировать из файла, который сегодня уже импортировал. В ответ пустая база. Еще раз выгрузил, повторил - опять пусто, ошибок не выдает, но и таблиц нет. PMA лежит в каталоге WWW

43

До этого база же импортировалась. или строчка^

[root@localhost ~]# chown -R apache:apache /var/www/html привела в чувство MySQL?

44

+ открыть спойлер

41007 23:30:09 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141007 23:30:42 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141007 23:30:42 [Note] Plugin 'FEDERATED' is disabled.
141007 23:30:42 InnoDB: The InnoDB memory heap is disabled
141007 23:30:42 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141007 23:30:42 InnoDB: Compressed tables use zlib 1.2.3
141007 23:30:42 InnoDB: Using Linux native AIO
141007 23:30:42 InnoDB: Initializing buffer pool, size = 128.0M
141007 23:30:42 InnoDB: Completed initialization of buffer pool
141007 23:30:42 InnoDB: highest supported file format is Barracuda.
141007 23:30:43  InnoDB: Waiting for the background threads to start
141007 23:30:44 InnoDB: 5.5.40 started; log sequence number 5409724
141007 23:30:44 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141007 23:30:44 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141007 23:30:44 [Note] Server socket created on IP: '0.0.0.0'.
141007 23:30:44 [ERROR] Missing system table mysql.proxies_priv; please run mysql_upgrade to create it
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_current' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_history' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_history_long' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'setup_consumers' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'setup_instruments' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'setup_timers' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'performance_timers' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'threads' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_thread_by_event_name' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_summary_by_instance' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'events_waits_summary_global_by_event_name' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
141007 23:30:44 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
141007 23:30:44 [Note] Event Scheduler: Loaded 0 events
141007 23:30:44 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.40'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
141007 23:33:20 [ERROR] Incorrect definition of table mysql.proc: expected column 'comment' at position 15 to have type text, found type char(64).

45

Марлей помоги настроить, скажи сколько и способ оплаты...

46

А какая версия php использовалась ранее?
Какая сейчас?

======================

Некоторые старые сайты и форумы, написанные под 4.x версию php, не всегда работают как нужно в версиях 5.x.
Собственно поэтому и рекомедуется установить php той версии, что и на сервере, где все работает.

Сообщение

PHP Strict Standards:  Non-static method DbSimple_Generic::connect() should not be called statically, assuming $this from incompatible

говорит о том, что так писать неправильно. И для вызова нестатических методов нужно использовать $this->myMethod();

Даже если вы это поправите, то это не значит, что еще какие-нибудь ошибки не придется исправлять в дальнейшем.

Вообщем рекомедую для начала уточнить, какая версия php используется на сервере, где сайт работает как нужно и установить именно ее.

No Woman No Cry...

47

5.3

48

сейчас точно скажу

49

5,3,27

50

На обоих серверах стоит 5.3.*?
На centos я это конечно ожидал. Но вот на другом сервере.

No Woman No Cry...

51

Нет, на Centos стоит PHP Version 5.4.33

52

Сайт изначально писался под ИИС, я легко там все меняю и обновляю. + за несколько лет уже знаю куда лезть в случае чего...

53 (08.10.2014 00:42:07 отредактировано Marley)

Вот здесь написано, что такая же ошибка возникала при обновлении php на версию 5.4.*


И вот чем закончилось:

I have already downgraded back to PHP 5.3, so the error is no longer appearing. Everything works just fine.
No Woman No Cry...

54

рекомендуешь удалить php и поставить 5.3?

55

а команды подскажешь? долго искать буду...

56

yum remove php

57

cd /usr && wget us2.php.net/get/php-5.3.27.tar.gz/from/de1.php.net/mirror && tar -xzf php-5.3.27.tar.gz && cd php-5.3.27

58

Закачал, а что дальше ума не приложу...

59

ни фига не выходит. Наверное потому что я не удалил компоненты php

60 (08.10.2014 01:38:53 отредактировано Marley)

Мне не приходилось делать downgrade php.

Возможно, вот в этой статье написно как это лучше сделать с помощью yum.

  ---------------------------------------
            Downgrading using YUM
  ---------------------------------------

+--------------------------------------
| How to

1. check the actual version and packages

    php -version
    rpm -qa | grep php

2. if necessary install yum-allowdowngrade plugin

    yum install yum-allowdowngrade

3. downgrade rpm packages of the php

    yum downgrade php php-*

    or

    yum downgrade [list of packages derived from rpm -qa | grep php]

4. check version and packages after downgrade

    php -version
    rpm -qa | grep php

Лучше не пробовать на каком-либо важном сервере.

А вообще, в centos 6.5 последняя версия php как раз была 5.3.3-27

No Woman No Cry...