Mediawiki

Материал из First-Leon
Перейти к: навигация, поиск
CREATE TABLE ldap_domains (domain_id int not null primary key auto_increment,domain varchar(255) binary not null,user_id int not null);
sudo apt-key advanced --keyserver keys.gnupg.net --recv-keys 90E9F83F22250DD7
sudo apt-add-repository "deb https://releases.wikimedia.org/debian jessie-mediawiki main"
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get update && sudo apt-get install parsoid

Render

Ubuntu 14.04

sudo apt install -y gcc g++ make python python-pip python-dev\
python-virtualenv libjpeg-dev libz-dev libfreetype6-dev liblcms-dev\
libxml2-dev libxslt-dev ocaml-nox git-core python-imaging python-lxml\
texlive-latex-recommended ploticus dvipng imagemagick pdftk
pip install -i http://pypi.pediapress.com/simple/ mwlib
pip install -i https://pypi.python.org/simple/  mwlib.rl
pip install gevent==1.0
apt install mediawiki-math
mkdir /data
mkdir /data/mwcache
chown -R www-data:www-data /data/mwcache

Start:

nserve & mw-qserve & nslave --cachedir /data/mwcache
|| nserve & mw-qserve & nslave --cachedir /data/mwcache & postman --cachedir /data/mwcache
#mcedit /usr/local/lib/python2.7/dist-packages/gevent/ssl.py
# def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv23, ca_certs=None):

Ссылки