列出文章
|
頁: [1] 2
|
3
|
支援 / 使用與操作 / PHP5 + Mysql5 會出錯
|
於: 二月 27, 2006, 12:48:21 上午
|
我是安裝在 PHP5 + Mysql 5 上 OS 是 Solaris 10 使用起來怪怪的 ! ex : 當我在後做任何修改完要更新時會出現入下訊息 Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: md5() expects parameter 1 to be string, object given in /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php on line 586
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php:586) in /usr/local/apache2/htdocs/plog/class/view/view.class.php on line 317
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/plog/class/cache/Cache_Lite/Lite.php:586) in /usr/local/apache2/htdocs/plog/class/view/view.class.php on line 175
不知要如何解決呢 ?
|
|
|
5
|
建議 / 要求與建議 / Re: plog可以整合的程序有?
|
於: 一月 27, 2006, 02:18:03 上午
|
可以整合的話 ~
那麼一方面 ~ phpbb2 可以 和 cpg 整合 !
而 plog 可以和 phpbb2 整合 !
這樣不算是 三個可以互通嗎 ?
還是 ?
不太懂 ~ 抱歉 . ..
|
|
|
6
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 18, 2005, 05:40:51 下午
|
唉 ~ 這幾天我前前後後試了 PHP5 和 PHP4 甚至多找了一臺新的 SPARC 的機器安裝了全新的 Solaris 10 結論是 一樣是無法顯示網頁 . . .
|
|
|
7
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 14, 2005, 05:49:20 下午
|
. . 我安慰一下自己啦 ! 我挺不甘願就這樣放棄的 ! 不過學校資訊組的老師也說不知道是啥原因 ! 但補了一句 ~ 因為 函式庫的關係有很多東西在 Solaris 上是不能 Run 的 繼續努力試 !
|
|
|
9
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 13, 2005, 03:11:59 上午
|
最重要的還是 error.log ,一邊裝一邊看 apache 給你什麼 error.log。
我只看過你第一次的 error.log,他是找錯了目錄。之後呢?當你改設定,後有再檢查 error.log 有給任何的訊息嗎?如果 Apache 沒有那些訊息,那很難幫你找到問題。
你說你在 RHEL 與 Feodora 都有安裝成功,能請你作個對照組嗎: 1. PHP Extension 有沒有不一樣 2. PHP.ini 設定 有沒有不一樣 3. Apache httpd.conf 有沒有不一樣
這樣一步一步抽絲剝繭才能找到原因。
Mark
已經重新上傳了 .zip 的和 .gz 的檔案 ! 然後分別執行其中的 wizard.php Apache 的 log 檔如以下 ! [Tue Sep 13 02:49:24 2005] [notice] child pid 763 exit signal Segmentation Fault (11) [Tue Sep 13 02:49:32 2005] [notice] child pid 568 exit signal Segmentation Fault (11) [Tue Sep 13 02:50:32 2005] [notice] child pid 569 exit signal Segmentation Fault (11) [Tue Sep 13 02:50:34 2005] [notice] child pid 760 exit signal Segmentation Fault (11) [Tue Sep 13 02:50:36 2005] [notice] child pid 761 exit signal Segmentation Fault (11) [Tue Sep 13 02:50:42 2005] [notice] child pid 762 exit signal Segmentation Fault (11)
至於 php的資料分別是 http://www.csie.leader.edu.tw/test.php <= 可以正常安裝 plog 的 RHCE http://dark-circles.us/test.php <= 一直無法顯示網頁的 Sun Solaris 10 一看發現差很多 ~ 但不知怎改善 ! 另外像在編譯如果加上 gd 時一直出現 有點怪怪的 如果我是按照小紅帽技術論壇裡 安裝完 Solaris 後的下一步做的 ./configure --prefix=/usr/local/php \ --with-apxs=/usr/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-gd=/usr/local/gd1.3 \ --enable-track-vars \ --enable-memory-limit=yes \ --enable-debug=no
make 時會出現如下的錯誤 /bin/sh libtool --silent --mode=compile gcc -I/usr/local/gd1.3/ - Iext/gd/ -I/usr/local/php-4.3.0/ext/gd/ -DPHP_ATOM_INC - I/usr/local/php-4.3.0/include -I/usr/local/php-4.3.0/main - I/usr/local/php-4.3.0 -I/usr/local/php-4.3.0/Zend - I/usr/local/gd1.3/ -I/usr/local/mysql/include -I/usr/local/php- 4.3.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=2100 - DMOD_SSL=208122 -DMOD_PERL -DUSE_HSREGEX -DEAPI -DUSE_EXPAT - D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_SO_LINGER - DHARD_SERVER_LIMIT=2048 -DSSL_EXPERIMENTAL_PERDIRCA_IGNORE - DSSL_EXPERIMENTAL_PROXY_IGNORE -I/usr/local/php-4.3.0/TSRM -g -O2 - prefer-pic -c /usr/local/php-4.3.0/ext/gd/gd.c -o ext/gd/gd.lo In file included from /usr/include/sys/wait.h:24, from /usr/local/php-4.3.0/ext/gd/gd.c:40: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc' /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc' /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault' /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault' /usr/include/sys/siginfo.h:404: error: conflicting types for `__file' /usr/include/sys/siginfo.h:273: error: previous declaration of `__file' /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof' /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof' /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/sys/procset.h:24, from /usr/include/sys/wait.h:25, from /usr/local/php-4.3.0/ext/gd/gd.c:40: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from /usr/local/php-4.3.0/ext/gd/gd.c:40: /usr/include/sys/wait.h:86: error: parse error before "siginfo_t" make: *** [ext/gd/gd.lo] Error 1
但是改成 ./configure --prefix=/usr/local/php \ --with-apxs=/usr/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --enable-track-vars \ --enable-memory-limit=yes \ --enable-debug=no
就又可以成功編譯 不過我真的有照上面所說的先 make gd1.3 也有出現跟文章內所說的訊息一樣 有可能是什麼原因呢 ? 謝謝
|
|
|
10
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 11, 2005, 10:23:53 下午
|
這下真的搞笑嘞 我已經把兩位說的都照著改嘞 結果又從 ./tmp 問題變成
無法顯示網頁
看樣子是我少編了啥進去 ~ Solaris 實在是很難用 . . . 唉 . . . 搞不懂的是怎會只有 plog 不能跑呢 ? CPG 和 Discuz 都挺順利的 ~ 唉 . . . 但意外又發現在 Solaris 上不止 Plog 裝不上去 連縮圖用得到的 ImageMagick 和 GD 都上不去 唉 ~ ...
|
|
|
12
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 11, 2005, 07:04:00 下午
|
tmp 的 mode 是 777 ,但是又不能讓 apache 寫入,好熟悉…
莫非又是 safe mode 的問題?
您是指這個嗎 ? 剛剛去 php.ini 中改成下列的值了 ! safe_mode On On safe_mode_exec_dir no value no value safe_mode_gid On On safe_mode_include_dir no value no value
但一樣是 Error
This wizard needs the ./tmp folder to be writable by the web server user.
Please correct that and try again.
會是我 php.ini 裡有東西還未開啟嗎 ?
|
|
|
13
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 11, 2005, 04:56:25 下午
|
重新再上傳 .zip 內的檔案 變成這樣嘞 Error
This wizard needs the ./tmp folder to be writable by the web server user.
Please correct that and try again.
但有 tmp 啦 ~ 也是 777 嘞 ~ 真怪 ~ 尚在摸索中
|
|
|
14
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 11, 2005, 03:49:30 上午
|
你的問題有點詭異:
1. Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration
有可能是你的 mod_rewrite 沒裝,或是沒有開啟 allowoverride。如果你懶得找問題,先把 .htaccess 刪除了。
AcceptPathInfo <= 這東西是我爬文時試著加上去的 ! 發現不行又改掉 您說的 mod_rewrite 和 allowoverride 是不是 apache 中的下面這幾行 ? <Directory "/var/apache/htdocs">
# # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # Options Indexes FollowSymLinks MultiViews
# # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" # AllowOverride All
# # Controls who can get stuff from this server. # Order allow,deny Allow from all </Directory>
照上面看起來好像是開了 ! 至於 .htaccess 這個存不存在是一樣的結果 傷腦筋 ! 是 php.ini 裡面的某個東西沒開啟嗎 ? 小弟尚在研究怎樣在 Solaris 10 上修改 php.ini 唉 ~ 因為除了 plog 以外其它都可以安裝 我試著把資料夾改名為 plog-1.0.1.tar 一樣是無法顯示網頁 . . .是否可以指點一下怎麼查呢 ?
|
|
|
15
|
支援 / 安裝與設定 / Re: wizard.php 無法顯示網頁
|
於: 九月 10, 2005, 04:24:11 上午
|
嗯 ! 陸續的 Google 和修改一些東西 ex : .htaccess這檔的存在與否 ! 還有挺多的 ! 中間有變成全部頁面空白過 ! 但現在又變回無法顯示網頁了 至於 log 檔的內容則如下 [Sat Sep 10 04:50:22 2005] [notice] Apache/1.3.33 (Unix) PHP/4.3.0 mod_perl/1.29 configured -- resuming normal operations [Sat Sep 10 04:50:22 2005] [notice] Accept mutex: fcntl (Default: fcntl) [Sat Sep 10 04:50:32 2005] [notice] child pid 812 exit signal Segmentation Fault (11) [Sat Sep 10 04:50:33 2005] [notice] child pid 811 exit signal Segmentation Fault (11) [Sat Sep 10 04:50:34 2005] [notice] child pid 813 exit signal Segmentation Fault (11) [Sat Sep 10 04:50:36 2005] [notice] child pid 814 exit signal Segmentation Fault (11) [Sat Sep 10 04:51:57 2005] [notice] child pid 815 exit signal Segmentation Fault (11) [Sat Sep 10 04:52:02 2005] [notice] child pid 816 exit signal Segmentation Fault (11) [Sat Sep 10 04:52:31 2005] [notice] child pid 817 exit signal Segmentation Fault (11) [Sat Sep 10 04:52:37 2005] [notice] child pid 818 exit signal Segmentation Fault (11) [Sat Sep 10 04:59:57 2005] [alert] [client 220.134.172.18] /var/apache/htdocs/plog/.htaccess: Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration [Sat Sep 10 05:00:03 2005] [alert] [client 220.134.172.18] /var/apache/htdocs/plog/.htaccess: Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration [Sat Sep 10 05:00:12 2005] [error] [client 82.234.18.54] script not found or unable to stat: /var/apache/cgi-bin/openwebmail [Sat Sep 10 05:00:14 2005] [alert] [client 220.134.172.18] /var/apache/htdocs/plog/.htaccess: Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration [Sat Sep 10 05:00:15 2005] [alert] [client 220.134.172.18] /var/apache/htdocs/plog/.htaccess: Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration [Sat Sep 10 05:10:52 2005] [notice] child pid 820 exit signal Segmentation Fault (11) [Sat Sep 10 05:10:53 2005] [notice] child pid 821 exit signal Segmentation Fault (11) [Sat Sep 10 05:10:59 2005] [notice] child pid 824 exit signal Segmentation Fault (11) [Sat Sep 10 05:11:11 2005] [alert] [client 220.134.172.18] /var/apache/htdocs/plog/.htaccess: Invalid command 'AcceptPathInfo', perhaps mis-spelled or defined by a module not included in the server configuration [Sat Sep 10 05:14:14 2005] [notice] child pid 829 exit signal Segmentation Fault (11) [Sat Sep 10 05:14:15 2005] [notice] child pid 830 exit signal Segmentation Fault (11) [Sat Sep 10 05:14:19 2005] [notice] child pid 819 exit signal Segmentation Fault (11) [Sat Sep 10 05:14:22 2005] [notice] child pid 828 exit signal Segmentation Fault (11) [Sat Sep 10 05:16:25 2005] [notice] child pid 825 exit signal Segmentation Fault (11) [Sat Sep 10 05:17:48 2005] [notice] child pid 855 exit signal Segmentation Fault (11) [Sat Sep 10 05:18:02 2005] [error] [client 220.134.172.18] File does not exist: /var/apache/htdocs/plog-1.0.1.tar/debug.php [Sat Sep 10 05:18:03 2005] [notice] child pid 856 exit signal Segmentation Fault (11) [Sat Sep 10 05:18:03 2005] [error] [client 220.134.172.18] File does not exist: /var/apache/htdocs/plog-1.0.1.tar/error.php [Sat Sep 10 05:18:14 2005] [error] [client 220.134.172.18] File does not exist: /var/apache/htdocs/plog-1.0.1.tar/wizard.php [Sat Sep 10 05:18:15 2005] [error] [client 220.134.172.18] File does not exist: /var/apache/htdocs/plog-1.0.1.tar/wizard.php [Sat Sep 10 05:18:26 2005] [notice] child pid 857 exit signal Segmentation Fault (11) [Sat Sep 10 05:18:27 2005] [notice] child pid 858 exit signal Segmentation Fault (11) [Sat Sep 10 05:18:42 2005] [notice] child pid 863 exit signal Segmentation Fault (11) [Sat Sep 10 05:18:45 2005] [notice] child pid 864 exit signal Segmentation Fault (11)
|
|
|
|
|
|