1. 环境安装:
nginx安装 nginx-1.5.7
php安装 PHP 5.4.10 (cli) (built: Jul 30 2014 16:45:08)
mysql安装 Ver 14.14 Distrib 5.5.30
icu安装 yum install icu
automake 安装 yum install automake
icu lib安装
wget http://download.icu-project.org/files/icu4c/53.1/icu4c-53_1-src.tgz
tar -zxvf icu4c-53_1-src.tgz
cd icu/source
./configure --prefix=/usr/local/icu
make && make install
 
yum install autoconf
pecl install intl
icu位置填 /usr/local/icu
 
2. 在php.ini中添加
extension=intl.so
 
 
 
3. 安装WYSIWYG
解压后,将WYSIWYG目录复制到/data/webroot/mediawiki/extensions/
 
4. 权限控制:LocalSettings.php
$wgGroupPermissions['*']['edit'] = false;#匿名用户不可写
$wgGroupPermissions['*']['read'] = false;#匿名用户不可读
$wgWhitelistRead = array( "Main Page", "Special:Userlogin" );#指定非登录用户可见页面
$wgGroupPermissions['*']['createaccount'] = false;#限制新用户注册

链接在新窗口中打开

LocalSettings.php中设置:
$wgExternalLinkTarget = ‘_blank’;
外链不包括interwiki链接
 
/mediawiki/includes/DefaultSetting.php
$wgEnableUserEmail = true;
$wgEnableEmail = true; /mediawiki/LocalSetting.php
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO $wgEmergencyContact = "forilen@dawx.com";
$wgPasswordSender = "cdn@dawx.com";
$wgSMTP = array(
'host' => 'smtp.qq.com',
'IDHost' => 'qq.com',
'port' => '25',
'auth' => true,
'username' => 'forilen@dawx.com',
'password' => 'mypassword',
);
root@192.168.100.252:/data/release/htdocs/mediawiki/includes# pear install MAIL Net_SMTP
WARNING: "pear/Auth_SASL" is deprecated in favor of "pear/Auth_SASL2"
Did not download optional dependencies: pear/Auth_SASL, use --alldeps to download automatically
pear/Net_SMTP can optionally use package "pear/Auth_SASL" (version >= 1.0.)
downloading Mail-1.2..tar ...
Starting to download Mail-1.2..tar (Unknown size)
..........................done: , bytes
downloading Net_SMTP-1.6..tar ...
Starting to download Net_SMTP-1.6..tar (Unknown size)
...done: , bytes
downloading Net_Socket-1.0..tar ...
Starting to download Net_Socket-1.0..tar (Unknown size)
...done: , bytes
install ok: channel://pear.php.net/Mail-1.2.0
install ok: channel://pear.php.net/Net_Socket-1.0.14
install ok: channel://pear.php.net/Net_SMTP-1.6.2
root@192.168.100.252:/data/release/htdocs/mediawiki/includes# pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3. stable
Console_Getopt 1.3. stable
Mail 1.2. stable
Net_SMTP 1.6. stable
Net_Socket 1.0. stable
PEAR 1.9. stable
Structures_Graph 1.0. stable
XML_Util 1.2. stable

nignx配置

#user  nobody ;
user root root;
#ALL=(ALL) NOPASSWD: /data/forilen/Kikyou/script/svn.sh;
worker_processes 1; #error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info; #pid logs/nginx.pid; events {
worker_connections 1024;
} http {
include mime.types;
default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on;
#tcp_nopush on; #keepalive_timeout 0;
keepalive_timeout 65; #gzip on; server {
listen 192.168.100.252:80;
server_name localhost;
location / {
root /data/release/htdocs;
index index.html index.htm;
} error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root /data/release/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /data/release/htdocs$fastcgi_script_name;
include fastcgi_params;
}
}
}
 
 

media wiki run on nginx的更多相关文章

  1. linux vue项目+npm run build + nginx

    系统 环境 vue   nginx 步骤 1.打包vue项目 2.配置nginx 打包vue项目 1.项目配置   我们使用服务器的8000端口 2.打包 # npm run build 打包成功会创 ...

  2. Media Wiki

    https://www.mediawiki.org/wiki/Help:Images/zh https://www.mediawiki.org/wiki/Manual_talk:Image_admin ...

  3. Nginx中文手册

    Nginx 常见应用技术指南[Nginx Tips] 第二版 作者:NetSeek http://www.linuxtone.org (IT运维专家网|集群架构|性能调优) 目 录 一. Nginx ...

  4. Nginx中文手冊

    下载 : Nginx 中文手冊 Nginx 常见应用技术指南[Nginx Tips] 第二版 作者:NetSeek http://www.linuxtone.org (IT运维专家网|集群架构|性能调 ...

  5. nginx目录学习

    目录 一. Nginx 基础知识 二. Nginx 安装及调试 三. Nginx Rewrite 四. Nginx Redirect 五. Nginx 目录自动加斜线: 六. Nginx Locati ...

  6. (备忘)Nginx中文手册(技术指南第二版)

    Nginx 常见应用技术指南[Nginx Tips] 第二版 目 录 一. Nginx 基础知识二. Nginx 安装及调试三. Nginx Rewrite四. Nginx Redirect五. Ng ...

  7. [Redmine] Centos5上安装Redmine3.0+nginx+thin部署

    项目管理的需要所以安装Redmine,其实wiki放在上面也不错的. 首先是安装,ruby应用第一次装,把坑记住. nginx, mysql是已经安装好的,只需要配置, 结合nginx的部署方式很多, ...

  8. Cubieboard A10 安装Nand系统,配置nginx,php,mysql,samba详细教程

    安装前置条件 1.下载win32diskimager-v0.7-binary.zip 2.下载debian_wheezy_armhf_v1_mele.zip 3.下载cubie_nand_uboot_ ...

  9. [security][modsecurity][nginx] nginx 与 modsecurity

    参考文档: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#installation-for-nginx nginx不支 ...

随机推荐

  1. 转:sock_ev——linux平台socket事件框架(logTrace) .

    写代码要有调试log,采用syslog的输出:一般会输出到"/var/log/messages" /**************************************** ...

  2. HDU 5005(Compromise-双人目标为最大化不同值的博弈)

    Compromise Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total ...

  3. Python 以指定的概率选取元素

    Python 以指定的概率选取元素 Problem You want to pick an item at random from a list, just about as random.choic ...

  4. 如何使用T-SQL备份还原数据库及c#如何调用执行? C#中索引器的作用和实现。 jquery控制元素的隐藏和显示的几种方法。 localStorage、sessionStorage用法总结 在AspNetCore中扩展Log系列 - 介绍开源类库的使用(一) span<T>之高性能字符串操作实测

    如何使用T-SQL备份还原数据库及c#如何调用执行? 准备材料:Microsoft SQL Server一部.需要还原的bak文件一只 一.备份 数据库备份语句:user master backup ...

  5. C#:DataGridView控件操作

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.W ...

  6. 摘:"error LNK2019: 无法解析的外部符号 该符号在函数 中被引用" 错误原因

    例如“error LNK2019: 无法解析的外部符号error LNK2001: 无法解析的外部符号“private: static struct _OVERLAPPED CUsbCom::g_Wr ...

  7. windows上通过secureCRT和putty创建密钥登录

    前面介绍了linux的ssh远程登录协议和ssh无password登录方式.这里在windows下通过secureCRT和putty登录linux来看一下详细的密钥创建,配置和登录.也算做个备忘录吧. ...

  8. C#四舍五入保留一位小数

    DateTime d1 = hrStaff.DateJoin; DateTime d2 = DateTime.Now; TimeSpan d3 = d2.Subtract(d1); ; //int i ...

  9. max_int和-1

    #include <stdio.h> int main(int argc, char *argv[]) { unsigned ; ) printf("umax:%u == -1\ ...

  10. Netty的ByteBuf

    https://blog.csdn.net/thinking_fioa/article/details/80795673  netty的ByteBuf知识点