关于centos7.5部署oelinker_php版本的问题点汇总 Web程序

1.下载开源版本https://github.com/eolinker/eoLinker-AMS-Lite-For-PHP到本地,将release文件夹内容copy到apache的/var/www/html 目录

2.问题点:

1.文件读写权限报错:

1.对项目的所在目录使用读写权限:chmod 777 -R /var/www/html

2.如果步骤一不能解决,需要修改selunix ,使用setenforce 0(无需重启设备) 或者 修改/etc/selinux/config 文件,将SELINUX=enforcing改为SELINUX=disabled ,重启机器即可

2.Mysql 连接报错:

连接mysql时候如果出现SQLSTATE[HY000] [2003] Can‘t connect to MySQL server on ‘XXX‘ (13)报错

这是很可能是由于SELinux 不让 httpd 访问外网。

1.使用getsebool -a | grep httpd查看是否httpd_can_network_connect --> off

2.修改httpd服务: setsebool httpd_can_network_connect 1

3. 使用 getsebool -a | grep httpd查看是否httpd_can_network_connect --> on

 3.安装完仍跳转回安装页面?

请检查“项目目录/server/RTP/config”文件夹下是否已经生成config.php配置文件;

如配置文件已存在,请打开浏览器F12检查网络请求是否出现以下错误:

Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set ‘always_populate_raw_post_data‘ to ‘-1‘ in php.ini and use the php://input stream instead. in Unknown on line 0”

如有,请将php的配置文件中的 ;always_populate_raw_post_data = -1 中的“;”删除即可。
  
转载:http://www.tofacebook.com/post/16281

发布了14 篇原创文章 · 获赞 9 · 访问量 1328

猜你喜欢

转载自blog.csdn.net/cyhlili100/article/details/104022138