-
Notifications
You must be signed in to change notification settings - Fork 1
/
UPDATING
76 lines (51 loc) · 2.84 KB
/
UPDATING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Обновление скрипта видео-каталога с версии 1.0 до 1.1
1. Скачать дистрибутив версии 1.1
2. Выполнить в БД скрипт обновления update-001.sql
3. Распаковать файлы подкаталога video/ поверх рабочей версии.
4. Переименовать файл /app/local.settings.dist.php в local.settings.php
5. Если в рабочей версии используется logon.php с шифрованием cookies, то
шифрование также нужно настроить в файле local.settings.php
6. Добавить в config.php:
/**
* Настройки отображения ссылок в шаблоне modern
*/
//какие ссылки пользователь может включать/отключать:
$config['download']['selectable'] = array('smb'=>true, 'dcpp'=>true, 'ed2k'=>true);
//установки по-умолчанию
$config['download']['defaults'] = array('smb'=>true, 'dcpp'=>true, 'ed2k'=>true);
//какие плейлисты может выбирать пользователь:
$config['download']['players']['selectable'] = array('la'=>false, 'mp'=>true, 'mpcpl'=>true, 'bsl'=>true, 'crp'=>true, 'tox'=>true, 'kaf'=>true, 'pls'=>true, 'xspf'=>true);
//плейлист по-умолчанию:
$config['download']['players']['default'] = 'xspf';
7. Изменить канал обновлений в config.php
$config['customer']['products']['lms_video'] = "./";
на
$config['customer']['products']['lms_video_1_1'] = "./";
8. Изменить шаблон в config.php:
$config['template'] = 'modern';
9. Для большей безопасности убедиться, что каталог http://mysite.com/video/app/
не доступен через браузер.
10. Удалить каталог install/
11. Убедится, что скрипт периодического обслуживания индекса поиска, отбора бестселлеров работает:
/app/tasks/batch-daily.sh или /app/tasks/batch-daily.bat
и добавить его в crontab (Unix):
0 5 * * * /path/to/video/app/tasks/batch-daily.sh 2>&1 >/dev/null
или в планировщик Windows (запуск 1 раз в сутки или по желанию):
c:\www\video\app\tasks\batch-daily.bat
Примечание: для Windows в файле php.bat необходимо прописать полный путь к php.exe
12. Для того, чтобы фото персоналий выглядели лучше (в шаблоне modern они
увеличены с 60 до 90 пикселей), необходимо перезакачать все персоналии.
Для этого нужно выполнить в БД запрос:
UPDATE `persones` SET `LastUpdate`='0000-00-00 00:00:00' WHERE `OzonUrl`!='';
и на вкладке "Закачка дополнений" нажать "Закачать все" (при очень большом
количестве персоналий процесс может занять около суток).
Частые проблемы после обновления:
1. В IE 8/9 выдается ошибка "Не удалось завершить действие. Ошибка c00ce56e.".
Причина: необходимо на сервере указать кодировку. Для Apache:
AddDefaultCharset windows-1251
Для nginx:
charset windows-1251;
2. Не отображаются бестселлеры. Живой поиск не работает.
Причина: Не выполнен п.11 данной инструкции.
3. Содержание вкладки "Бестселлеры" не меняется, хотя п.11 анной инструкции выполнен (и скрипт запускается по расписанию).
Причина: параметр config.php $config['hitmethod'] установлен в 1 или 3 (в этих режимах бестселлеры не обновляются)