q3029609 发表于 2015-4-29 15:29:45

cacti页面打不开

求大神指教,第一次装cacti就出问题
打开http://192.168.186.129/cacti/ 页面为空白
按照刚日志安装的:https://www.centos.bz/2012/01/cacti-install-tutorials/#二、安装rrdtool
查看http日志报错:PHP Fatal error:Call to undefined function read_disabled() in /var/www/html/cacti/include/global_form.php on line 690
系统是虚拟机的centos5.8
网上查了好多 还是没解决

sky 发表于 2015-4-29 15:47:38

php.ini 贴出来我看看,lamp环境没问题吧?

q3029609 发表于 2015-4-29 16:39:51

php.ini 里面东西太多了我上传的,phpinfo(),是能打开的

q3029609 发表于 2015-4-29 16:50:24

sky 发表于 2015-4-29 15:47
php.ini 贴出来我看看,lamp环境没问题吧?

这是我的php.ini文件 您帮忙看下

cheng029 发表于 2015-4-29 16:50:30

找到这一行把他注释掉重启php试试,disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server

cheng029 发表于 2015-4-29 16:54:19

php最好编译安装不然很多函数都不支持,默认没开启。

cheng029 发表于 2015-4-29 16:55:58

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
fi

cheng029 发表于 2015-4-29 16:57:09

yum -y remove php*

q3029609 发表于 2015-4-29 16:59:53

admin 发表于 2015-4-29 16:54
php最好编译安装不然很多函数都不支持,默认没开启。

哦哦我注释掉了,重启httpd还是不行

cheng029 发表于 2015-4-29 17:03:46

卸载php
yum -y remove php*
编译安装:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic

q3029609 发表于 2015-4-29 17:08:51

admin 发表于 2015-4-29 17:03
卸载php
yum -y remove php*
编译安装:


好的 我试试谢谢哦

q3029609 发表于 2015-4-30 13:38:55

admin 发表于 2015-4-29 17:03
卸载php
yum -y remove php*
编译安装:


HI 今天来公司,按照你的方法重新安装了,页面还是空白 的,但是日志文件没有报错,我贴出来,你看下哦,,谢谢
/var/log/httpd/access_log:
192.168.186.1 - - "GET /cacti/ HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36"

/var/log/httpd/error_log
caught SIGTERM, shutting down
suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Digest: generating secret for digest authentication ...
Digest: done
Apache/2.2.3 (CentOS) configured -- resuming normal operations

cheng029 发表于 2015-4-30 16:03:59

# getenforce
Disabled
如果不是Disabled执行一下
setenforce 0
然后再试。

cheng029 发表于 2015-4-30 16:04:22

上面的修改是临时生效永久生效需要改配置文件。

q3029609 发表于 2015-4-30 16:16:56

admin 发表于 2015-4-30 16:04
上面的修改是临时生效永久生效需要改配置文件。

是disabled的,这个 没问题的

q3029609 发表于 2015-5-14 13:21:59

后来重新安装该教程装 没问题了 谢谢你们的帮助
页: [1]
查看完整版本: cacti页面打不开