Discuz System Error

属组文件问题.

网页一级面能打开,二级页面打不开.

打开二级页面报错。


进入 网站目录下

# cd /data/www/





查看 # ls -ld /data/www/   的用户时 是root

[root@aminglinux ~]# ps aux |grep php

发现php运行的用户是 nobody

却是 nobody



 discuz是需要php运用的,所以它的项目目录要对应php的运行用户

改成对应你环境的php的运行用户

# chown -R nobody /data/www/   所有网站下的目录都改成nobody属组。





执行 更改属组后,查看。 ok了,可以访问二级页面了。

[root@aminglinux data]# ls /data/www/ -l
总用量 116
-rw-r--r--.  1 nobody root 2739 12月 26 2014 admin.php
drwxr-xr-x.  11 nobody root 4096 12月 26 2014 api
-rw-r--r--.  1 nobody root  727 12月 26 2014 api.php
drwxr-xr-x.  2 nobody root 4096 12月 26 2014 archiver
drwxr-xr-x.  2 nobody root 4096 3月  29 03:28 config
-rw-r--r--.  1 nobody root  922 12月 26 2014 connect.php
-rw-r--r--.  1 nobody root  253 12月 26 2014 cp.php
-rw-r--r--.  1 nobody root  106 12月 26 2014 crossdomain.xml
drwxr-xr-x.  15 nobody root 4096 3月  29 03:29 data
-rw-r--r--.  1 nobody root 5558 12月 26 2014 favicon.ico
-rw-r--r--.  1 nobody root 2242 12月 26 2014 forum.php
-rw-r--r--.  1 nobody root  821 12月 26 2014 group.php
-rw-r--r--.  1 nobody root 1290 12月 26 2014 home.php
-rw-r--r--.  1 nobody root 5669 12月 26 2014 index.php
drwxr-xr-x.  5 nobody root 4096 12月 26 2014 install
-rw-r--r--.  1 nobody root 1025 12月 26 2014 member.php
-rw-r--r--.  1 nobody root 2462 12月 26 2014 misc.php
-rw-r--r--.  1 nobody root 1757 12月 26 2014 plugin.php
-rw-r--r--.  1 nobody root  988 12月 26 2014 portal.php
-rw-r--r--.  1 nobody root  582 12月 26 2014 robots.txt
-rw-r--r--.  1 nobody root 1161 12月 26 2014 search.php
drwxr-xr-x.  10 nobody root 4096 12月 26 2014 source
drwxr-xr-x.  6 nobody root 4096 12月 26 2014 static
drwxr-xr-x.  3 nobody root 4096 12月 26 2014 template
drwxr-xr-x.  6 nobody root 4096 12月 26 2014 uc_client
drwxr-xr-x.  13 nobody root 4096 12月 26 2014 uc_server
-rw-r--r--.  1 nobody root 1682 12月 26 2014 userapp.php






ps -aux|grep mysql   查看进程

netstat -lnp|grep mysql  查看端口 是否存在

发现有mysql程序都在,

因为系统自身就自带一个数据库,mysql启动错了

数据库没有开启

/etc/init.d/mysqld start





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值