1. 程式人生 > >關於centos7.5部署oelinker_php版本的問題點匯總

關於centos7.5部署oelinker_php版本的問題點匯總

linker ini tomat war isa num force 連接mysql 無需

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檢查網絡請求是否出現以下錯誤:

  1. 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 中的“;”刪除即可。

關於centos7.5部署oelinker_php版本的問題點匯總