Инструменты пользователя

Инструменты сайта


freebsd:dokuwiki

Различия

Здесь показаны различия между двумя версиями данной страницы.

Ссылка на это сравнение

Следующая версия
Предыдущая версия
freebsd:dokuwiki [2016/10/17 20:47]
127.0.0.1 внешнее изменение
freebsd:dokuwiki [2020/01/03 22:42] (текущий)
alex
Строка 1: Строка 1:
-====================================================================== +==== Установка DokuWiki на FreeBSD ​====
-                          INSTALLATION NOTES+
  
-The wiki program have been installed to /​usr/​local/​www/​dokuwiki.+Для работы DokuWiki устанавливаю 
 +  * [[freebsd:​nginx|nginx]] 
 +  * php72 
 +  * php72-session 
 +  * php72-xml 
 +  * spawn-fcgi
  
-Please configure your web server to allow running PHP scripts there.+=== Установка:​ php72 === 
 +  cd /​usr/​ports/​lang/​php72 
 +  make install clean 
 +Проверяю,​ что выбраны следующие параметры 
 +  [X] CLI        Build CLI version 
 +  [X] CGI        Build CGI version
  
-Please create dedicated data directory outside the installation directory +=== Установка:​ php72-xml === 
-and make it owned by the process running these PHP scripts. ​ It is important +  ​cd /​usr/​ports/​textproc/​php72-xml 
-to make sure that your PHP intepreter does not allow running PHP scripts +  make install clean
-there.+
  
-For first install, you may have to manually copy the contents from +=== Установка:​ php72-session === 
-/usr/local/www/dokuwiki/​data into the newly created data directory and change +  ​cd ​/usr/ports/www/php72-session 
-the owner of /​usr/​local/​www/​dokuwiki/​conf to the web server.+  make install clean
  
-Please go to http://www.your.host/dokuwiki/​install.php to finish the +=== Установкаspawn-fcgi === 
-installation. ​ For FULL configuration instructions,​ see +  cd /usr/ports/www/spawn-fcgi 
-http://​wiki.splitbrain.org/​wiki:​config+  ​make install clean
  
-After installation please change the permissions of +Для автоматического старта spawn-fcgi во время загрузки ОС в конфигурационный файл **/etc/rc.conf** добавляю 
-/usr/​local/​www/​dokuwiki/conf back to root:wheel.+  spawn_fcgi_enable="​YES"​
  
-======================================================================+Для ручного запуска spawn_fcgi использую команду 
 +  /​usr/​local/​etc/​rc.d/​spawn-fcgi start 
 + 
 +Для автоматического старта nginx во время загрузки ОС в конфигурационный файл **/​etc/​rc.conf** добавляю 
 +  nginx_enable="​YES"​ 
 + 
 +Для ручного запуска nginx использую команду 
 +  /​usr/​local/​etc/​rc.d/​nginx start 
 + 
 +Остановка соответственно 
 +  /​usr/​local/​etc/​rc.d/​nginx stop 
 +  /​usr/​local/​etc/​rc.d/​spawn-fcgi stop 
 + 
 +Конфигурационный файл с основной настройкой /​usr/​local/​etc/​nginx/​nginx.conf 
 +  cat /​usr/​local/​etc/​nginx/​nginx.conf 
 +   
 +  user  www; 
 +  worker_processes ​ 1; 
 +   
 +  events { 
 +      worker_connections ​ 1024; 
 +  } 
 +   
 +  http { 
 +      include ​      ​mime.types;​ 
 +      default_type ​ application/​octet-stream;​ 
 +      sendfile ​       on; 
 +      keepalive_timeout ​ 65; 
 +      gzip  on; 
 +   
 +      server { 
 +          listen ​      ​10.215.130.20:​80;​ 
 +          server_name ​ wiki.klotik.ru;​ 
 +              root   /​usr/​local/​www/​dokuwiki;​ 
 +              index  doku.php; 
 +          location ~ \.php$ { 
 +          #    root           ​html;​ 
 +              fastcgi_pass ​  ​10.215.130.20:​9000;​ 
 +              fastcgi_index ​ doku.php; 
 +              fastcgi_param ​ SCRIPT_FILENAME ​ $document_root$fastcgi_script_name;​ 
 +              include ​       fastcgi_params;​ 
 +          } 
 +      } 
 +  } 
 + 
 + 
 +=== Установка:​ dokuwiki ​=== 
 +  cd /​usr/​ports/​www/​dokuwiki 
 +  make install clean 
 +   
 +  ​====================================================================== 
 +                            INSTALLATION NOTES 
 +   
 +  The wiki program have been installed to /​usr/​local/​www/​dokuwiki. 
 +   
 +  Please configure your web server to allow running PHP scripts there. 
 +   
 +  Please create dedicated data directory outside the installation directory 
 +  and make it owned by the process running these PHP scripts. ​ It is important 
 +  to make sure that your PHP intepreter does not allow running PHP scripts 
 +  there. 
 +   
 +  For first install, you may have to manually copy the contents from 
 +  /​usr/​local/​www/​dokuwiki/​data into the newly created data directory and change 
 +  the owner of /​usr/​local/​www/​dokuwiki/​conf to the web server. 
 +   
 +  Please go to http://​www.your.host/​dokuwiki/​install.php to finish the 
 +  installation. ​ For FULL configuration instructions,​ see 
 +  http://​wiki.splitbrain.org/​wiki:​config 
 +   
 +  After installation please change the permissions of 
 +  /​usr/​local/​www/​dokuwiki/​conf back to root:​wheel. 
 +   
 +  ====================================================================== 
 + 
 +После установки меняю владельцев и права каталогов 
 +  chmod -R 775 /​usr/​local/​www/​dokuwiki/​data 
 +  chown -R www:www /​usr/​local/​www/​dokuwiki/​data 
 +  chown -R www:www /​usr/​local/​www/​dokuwiki/​conf/​ 
 + 
 +Изменяю расположение файла данных. Для этого копирую папку data 
 +  cp /​usr/​local/​www/​dokuwiki/​data /​usr/​local/​data_wiki 
 + 
 +=== Запуск === 
 +  /​usr/​local/​etc/​rc.d/​spawn-fcgi start 
 +  /​usr/​local/​etc/​rc.d/​nginx start 
 + 
 +При первом запуске использую адрес: http://​wiki.klotik.ru/​install.php. В настройках wiki указываю расположение каталога с данными /​usr/​local/​data_wiki. 
 + 
 +После окончания настройки изменяю владельца каталога conf 
 +  chown -R root:wheel /​usr/​local/​www/​dokuwiki/​conf/​
  
  
 https://​www.dokuwiki.org/​install:​freebsd\\ https://​www.dokuwiki.org/​install:​freebsd\\
 http://​microsin.net/​adminstuff/​xnix/​dokuwiki-freebsd-install.html http://​microsin.net/​adminstuff/​xnix/​dokuwiki-freebsd-install.html
freebsd/dokuwiki.1476737220.txt.gz · Последние изменения: 2016/10/17 20:47 — 127.0.0.1