<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    心有多大舞臺便有多大

    Embrace changes, pursue excellence, share niceness.

    耶魯cas單點登錄系統(tǒng)的php客戶端使用注意事項

    以前用CAS一直是用java的客戶端,今天想把自己的phpMyAdmin集成到中心認(rèn)證系統(tǒng)中,這樣就不需要到apache的目錄中用access文件去控制了.
    在集成phpCAS的時候,系統(tǒng)報出一些錯誤:
    Warning: include_once(DB.php) [function.include-once]: failed to open stream: No such file or directory in /opt/httproot/phpMyAdmin/cas/PGTStorage/pgt-db.php on line 11

    Warning: include_once() [function.include]: Failed opening 'DB.php' for inclusion (include_path='.:/usr/local/php-5.2.5/lib/php') in /opt/httproot/phpMyAdmin/cas/PGTStorage/pgt-db.php on line 11

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /opt/httproot/phpMyAdmin/cas/PGTStorage/pgt-db.php:11) in /opt/httproot/phpMyAdmin/cas/client.php on line 489

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /opt/httproot/phpMyAdmin/cas/PGTStorage/pgt-db.php:11) in /opt/httproot/phpMyAdmin/cas/client.php on line 489

    Warning: Cannot modify header information - headers already sent by (output started at /opt/httproot/phpMyAdmin/cas/PGTStorage/pgt-db.php:11) in /opt/httproot/phpMyAdmin/cas/client.php on line 880
    查了些資料,重新安裝了php后問題解決:
    1.在編譯php的時候,要加上--with-curl, --with-openssl, --with-dom, --with-zlib這些選項
    如果系統(tǒng)中還沒有安裝curl包:
    wget http://curl.haxx.se/download/curl-7.18.1.tar.gz
    tar -zxvf curl-7.18.1.tar.gz
    ./configure --prefix=/usr/local/curl
    make
    sudo make install
    編譯安裝php:
    ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs  --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml-2.6.30/ --with-gd=/usr/local/gd-2.0.35/ --with-curl=/usr/local/curl/ --with-openssl --with-zlib --with-pear=/usr/local/php_pear
    make
    make test
    sudo make install
    注意,有可能pear安裝不成功,要看你下載的php包,安裝完后到php源代碼目錄下的pear下看看是有有錯,否則,要現(xiàn)下載一個pear的安裝包:
    wget http://pear.php.net/install-pear.phar
    再執(zhí)行make,make install

    2.安裝PEAR:DB
    cd /usr/local/php/bin
    pear install DB

    3.測試phpCAS
    把phpCAS包里的example_simple.php以及source目錄里的所有文件拷貝到一個可以從apapche執(zhí)行php文件的目錄中
    然后訪問http://host/dir/example_simeple.php
    結(jié)果頁面轉(zhuǎn)向到https://sso-cas.univ-rennes1.fr的中心認(rèn)證地址,說明phpCAS安裝成功。

    posted on 2008-05-07 14:00 pony 閱讀(2608) 評論(3)  編輯  收藏 所屬分類: linux

    評論

    # re: 耶魯cas單點登錄系統(tǒng)的php客戶端使用注意事項 2008-05-07 14:05 pony

    在安裝curl包的時候,突然想到,現(xiàn)在java的http connection編程一般都是使用apache上的httpclient包,雖然這個包做的不錯,但能否改為通過jni調(diào)用curl接口呢?因為curl所支持的協(xié)議要比httpclient多,支持更多的功能。  回復(fù)  更多評論   

    # re: 耶魯cas單點登錄系統(tǒng)的php客戶端使用注意事項 2009-11-25 22:08 ly3551

    如果是在windows下,php是解壓包,怎么修改  回復(fù)  更多評論   

    # re: 耶魯cas單點登錄系統(tǒng)的php客戶端使用注意事項 2009-11-25 22:12 ly3551

    如果可以的話能否聯(lián)系我ly@huat.edu.cn  回復(fù)  更多評論   

    主站蜘蛛池模板: 亚洲国产另类久久久精品小说| 国产人成免费视频| 国产亚洲成AV人片在线观黄桃| 成人特级毛片69免费观看| 亚洲日本国产综合高清| 222www在线观看免费| 中文字幕亚洲综合精品一区| 日韩免费电影网站| 亚洲免费视频在线观看| 暖暖在线视频免费视频| 亚洲高清免费在线观看| 免费在线视频你懂的| 亚洲中文字幕在线无码一区二区| 69天堂人成无码麻豆免费视频| 亚洲精品自拍视频| 久久综合AV免费观看| 亚洲AV性色在线观看| 亚洲高清免费视频| 中文字幕的电影免费网站| 国精无码欧精品亚洲一区| 99视频免费播放| 亚洲爽爽一区二区三区| 一级毛片视频免费观看| 国产亚洲一区二区三区在线| 华人在线精品免费观看| 日韩精品亚洲专区在线观看| 日韩成人毛片高清视频免费看| 亚洲情XO亚洲色XO无码| 久热中文字幕在线精品免费| 久久国产亚洲精品| 亚洲精品tv久久久久| 国产麻豆一精品一AV一免费| 亚洲乱码无限2021芒果| 国产精品免费福利久久| 亚洲国产精品综合福利专区| 国产福利免费在线观看| 日本在线免费观看| 亚洲日韩精品无码AV海量| 精品亚洲一区二区三区在线观看 | 久久精品中文字幕免费| 亚洲福利视频网站|