2016年2月4日 星期四

安裝學務系統代理程式 agent


  1. 到網頁目錄解壓縮代理程式
    tar zxvf agent.tar.gz
  2. 編輯設定檔設定三個變數
    vi config.php
    1. $Sfs3_IP="http://000.000.000.000"; //學務系統IP
    2. $Sfs3_IP2="https://xxx.xxx.xxx.xxx"; //學務系統URL
    3. $key="*********"; //自訂英數字

  3. 測試
    http://學校網址/cnes/agent/board/
  4. 出現 http 500 錯誤
    在 config.php 前加 ini_set("display_errors", "On");
    出現錯誤訊息
    Fatal error: Call to undefined function mb_convert_encoding() in /var/www/html/cnes/agent/common/simple_html_dom.php on line 79
  5. 發問後得到解答,少裝了 php-mbstring。
    1. 安裝 php-mbstring
      yum install php-mbstring
    2. 重啟 httpd
      service httpd restart
    3. 成功看到佈告欄了
  6. 修改學校網頁開始使用代理程式

3 則留言: