Apache-2.2

PHP 連結目錄腳本

  • October 29, 2013

我拿了.zip,解壓縮並點擊我的域/

==> error_log <==
[Sun Sep 27 22:54:25 2009] [error] [client 24.185.130.236] PHP Warning:  require_once(../include/config.php): failed to open stream: No such file or directory in /usr/home/alexus/xxxshow.biz/PhpLD/install/index.php on line 48
[Sun Sep 27 22:54:25 2009] [error] [client 24.185.130.236] PHP Fatal error:  require_once(): Failed opening required '../include/config.php' (include_path='.:/usr/local/lib/php') in /usr/home/alexus/xxxshow.biz/PhpLD/install/index.php on line 48

==> access_log <==
24.185.130.236 - - [27/Sep/2009:22:54:25 -0400] "GET /install/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9"

所以我做了

-bash-3.2# cd PhpLD/include/
-bash-3.2# cp config.php.new config.php
-bash-3.2#

現在我開始了

==> error_log <==
[Sun Sep 27 22:58:37 2009] [error] [client 24.185.130.236] PHP Fatal error:  Cannot redeclare date_add() in /usr/home/alexus/xxxshow.biz/PhpLD/include/functions.php on line 2185

==> access_log <==
24.185.130.236 - - [27/Sep/2009:22:58:37 -0400] "GET /install/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9"

所以問題是我如何讓它工作?也許有人有同樣的問題?

date_add() 是在 PHP 5.3 中添加的。也許您正在嘗試使用尚未在 PHP 5.3 上測試過的東西。要麼安裝舊版本的 php,要麼檢查是否有您要安裝的任何新版本。

引用自:https://serverfault.com/questions/69175