LNMP环境
[root@lzn ~]# cd /opt/
[root@lzn opt]wget http://sourceforge.net/projects/zentao/files/latest/download?source=dlp
[root@lzn opt]# ll
总计 29012
-rw-r--r-- 1 root root 5510171 08-27 15:13 ZenTaoPMS.5.0.beta2.zip
[root@lzn opt]# unzip ZenTaoPMS.5.0.beta2.zip
[root@lzn opt]# ll zentaopms/
总计 80
drwxr-xr-x 3 root root 4096 08-27 14:10 bin
drwxrwxrwx 2 root root 4096 09-13 18:46 config
drwxr-xr-x 2 root root 4096 08-27 14:10 db
drwxr-xr-x 2 root root 4096 08-27 14:10 doc
drwxr-xr-x 2 root root 4096 08-27 14:11 framework
drwxr-xr-x 17 root root 4096 08-27 14:10 lib
drwxrwxrwx 43 root root 4096 08-27 14:10 module
drwxrwxrwx 6 root root 4096 08-27 14:11 tmp
-rw-r--r-- 1 root root 10 08-27 14:11 VERSION
drwxr-xr-x 6 root root 4096 09-13 18:51 www
配置nginx文件 root /opt/zentaopms/www 文件所读位置
01
02
03
04
05
06
07
08
09
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
|
[root@lzn opt]# cat /usr/local/nginx/conf/vhosts/zentao.conf
server
{
listen 80;
server_name linzhennan.cn;
index index.php;
root /opt/zentaopms/www;
location ~ .*.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location /config/config.ini
{
deny all;
}
location /config/license
{
deny all;
}
error_page 404 /error.php;
location ~ .*.(gif|jpg|jpeg|png|bmp|swf|ico)$
{
expires 30d;
}
location ~ .*.(js|css)?$
{
expires 7d;
}
location / {
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
}
access_log /data/log/access1.log logs;
}
|
配置mysql 创建数据库,授权2步。
1
2
3
4
5
6
7
8
9
|
[root@lzn opt]# mysql -uroot -p
Enter password:
mysql> create database zentao;
Query OK, 1 row affected (0.01 sec)
mysql> grant all on zentao.* to zentao@"%" identified by 'gnctz9ME';
Query OK, 0 rows affected (0.04 sec)
|
如下图
点击“组织”添加成员
本人虚拟机上有安装,测试成功