安装环境
编辑nginx配置文件
[root@nginx conf.d]# vim /etc/nginx/conf.d/wecenter.conf
server {
listen 80;
server_name www.test-we.org;
root /code/we;
location / {
index index.html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
将wecenter压缩包解压到指定的目录
[root@nginx ~]# unzip download.zip -d /code/we
## 授权
[root@nginx ~]# chown -R www.www /code/we/
创建数据库
MariaDB [(none)]> create database wecenter;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> grant all on *.* to wecenter@'%' identified by '111';
Query OK, 0 rows affected (0.00 sec)
浏览器访问、安装