主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 15, 2005, 01:34:09 下午 我在window下試過了,一切都很正常,但是在linux下,
上傳任何資料都不成功,權限肯定沒有問題,我都設成是777 絕對路徑和相對路徑也都試過了,分別是 ./tmp /var/www/html/blog/tmp ./gallery /var/www/html/blog/gallery 但點擊上傳之後,就跳轉到 管理面板 各位有誰遇到過類似情況麽 主題: 新建資源 爲何在 linux下不能正常使用 作者: markwu 於 三月 15, 2005, 08:27:08 下午 完全搞不懂耶 :-( 有任何 error.log 嗎?
Mark 主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 01:24:25 下午 我一步步跟蹤運行下去,問題出在:
galleryresources.class.php 的 $metadata = $getId3->analyze($upload->getTmpName()); 主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 01:30:13 下午 这个是 httpd/logs/error_log
[Wed Mar 16 09:03:49 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Mar 16 09:03:49 2005] [notice] Digest: generating secret for digest authentication ... [Wed Mar 16 09:03:49 2005] [notice] Digest: done PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 [Wed Mar 16 09:03:51 2005] [notice] Apache/2.0.46 (Asianux) configured -- resuming normal operations [Wed Mar 16 09:40:23 2005] [error] [client 192.168.0.200] Directory index forbidden by rule: /var/www/html/ [Wed Mar 16 10:23:43 2005] [warn] child process 886 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 887 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 888 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 889 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 890 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 891 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 892 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [warn] child process 893 still did not exit, sending a SIGTERM [Wed Mar 16 10:23:43 2005] [notice] caught SIGTERM, shutting down [Wed Mar 16 10:28:17 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Mar 16 10:28:17 2005] [notice] Digest: generating secret for digest authentication ... [Wed Mar 16 10:28:17 2005] [notice] Digest: done PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 [Wed Mar 16 10:28:19 2005] [notice] Apache/2.0.46 (Asianux) configured -- resuming normal operations [Wed Mar 16 10:38:11 2005] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/ [Wed Mar 16 10:38:19 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/plog/wizard.phjp [Thu Mar 17 10:01:56 2005] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/ [Thu Mar 17 10:07:30 2005] [warn] child process 719 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 720 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 721 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 722 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 723 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 724 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 725 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 727 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 719 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 720 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 721 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 722 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 723 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 724 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 725 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:30 2005] [warn] child process 727 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 719 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 720 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 721 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 722 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 723 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 724 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 725 still did not exit, sending a SIGTERM [Thu Mar 17 10:07:31 2005] [warn] child process 727 still did not exit, sending a SIGTERM [Thu Mar 17 10:22:12 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Mar 17 10:22:12 2005] [notice] Digest: generating secret for digest authentication ... [Thu Mar 17 10:22:12 2005] [notice] Digest: done PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 [Thu Mar 17 10:22:15 2005] [notice] Apache/2.0.46 (Asianux) configured -- resuming normal operations [Thu Mar 17 13:02:38 2005] [error] [client 192.168.0.23] File does not exist: /var/www/html/favicon.ico [Thu Mar 17 13:02:38 2005] [error] [client 192.168.0.23] File does not exist: /var/www/html/favicon.ico [Thu Mar 17 13:02:42 2005] [error] [client 192.168.0.23] File does not exist: /var/www/html/favicon.ico [Thu Mar 17 13:02:42 2005] [error] [client 192.168.0.23] File does not exist: /var/www/html/favicon.ico [Thu Mar 17 13:07:11 2005] [notice] child pid 722 exit signal Segmentation fault (11) [Thu Mar 17 13:11:35 2005] [error] [client 192.168.0.23] Directory index forbidden by rule: /var/www/html/ [Thu Mar 17 13:14:28 2005] [error] [client 192.168.0.23] Directory index forbidden by rule: /var/www/html/ [Thu Mar 17 13:15:22 2005] [warn] child process 721 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 1239 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 723 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 724 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 725 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 726 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 727 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 728 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 721 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 1239 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 723 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 724 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 725 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 726 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 727 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:22 2005] [warn] child process 728 still did not exit, sending a SIGTERM [Thu Mar 17 13:15:23 2005] [notice] caught SIGTERM, shutting down [Thu Mar 17 13:16:30 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Mar 17 13:16:30 2005] [notice] Digest: generating secret for digest authentication ... [Thu Mar 17 13:16:30 2005] [notice] Digest: done PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 [Thu Mar 17 13:16:31 2005] [notice] Apache/2.0.46 (Asianux) configured -- resuming normal operations [Thu Mar 17 13:16:33 2005] [notice] caught SIGTERM, shutting down [Thu Mar 17 13:16:35 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Thu Mar 17 13:16:35 2005] [notice] Digest: generating secret for digest authentication ... [Thu Mar 17 13:16:35 2005] [notice] Digest: done PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 [Thu Mar 17 13:16:36 2005] [notice] Apache/2.0.46 (Asianux) configured -- resuming normal operations [Thu Mar 17 13:18:19 2005] [error] [client 192.168.0.23] Directory index forbidden by rule: /var/www/html/ [Thu Mar 17 13:18:42 2005] [notice] child pid 1712 exit signal Segmentation fault (11) [Thu Mar 17 13:28:04 2005] [notice] child pid 1705 exit signal Segmentation fault (11) [Thu Mar 17 13:35:27 2005] [notice] child pid 1711 exit signal Segmentation fault (11) [Thu Mar 17 13:38:47 2005] [notice] child pid 1708 exit signal Segmentation fault (11) [Thu Mar 17 13:39:09 2005] [notice] child pid 1710 exit signal Segmentation fault (11) [Thu Mar 17 13:40:00 2005] [notice] child pid 1707 exit signal Segmentation fault (11) [Thu Mar 17 13:42:04 2005] [notice] child pid 1709 exit signal Segmentation fault (11) [Thu Mar 17 13:48:12 2005] [notice] child pid 1850 exit signal Segmentation fault (11) [Thu Mar 17 13:48:32 2005] [notice] child pid 1851 exit signal Segmentation fault (11) [Thu Mar 17 14:19:03 2005] [notice] child pid 1706 exit signal Segmentation fault (11) 主題: 新建資源 爲何在 linux下不能正常使用 作者: markwu 於 三月 17, 2005, 01:48:51 下午 我還是看不出來出什麼錯 :(
你說錯在這一行,你是怎麼追蹤的呢?error.log 上我看不到耶! 程式碼: $metadata = $getId3->analyze($upload->getTmpName()); Mark 主題: 新建資源 爲何在 linux下不能正常使用 作者: andywang 於 三月 17, 2005, 02:04:09 下午 你是不是装了oracle,看到oci8相关信息,如果是装了,那么在./oracle/product/9.2.0/rdbms/demo下放入ociheaders.jar并且解包,然后重新编译php,我感觉你的php编译可能有问题哦 :-)
主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 02:08:48 下午 如果:
echo 'aaaaaaa';exit; $metadata = $getId3->analyze($upload->getTmpName()); echo 'bbbbbb';exit; 則結果爲 aaaaaaa 如果: echo 'aaaaaaa'; $metadata = $getId3->analyze($upload->getTmpName()); echo 'bbbbbb';exit; 則跳轉到管理面板,無任何提升, 主題: 新建資源 爲何在 linux下不能正常使用 作者: andywang 於 三月 17, 2005, 02:10:53 下午 把temp_folder
pLog系统执行某些操作时要用到的临时文件夹路径。 设置为绝对路径,例如/www/blog/tmp resources_folder 存储资源文件的文件夹 设置为绝对路径,例如/www/blog/gallery 我也曾经遇见不能上传问题这么解决的。 主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 02:22:06 下午 引用自: andywang 把temp_folder pLog系統執行某些操作時要用到的臨時文件夾路徑。 設置爲絕對路徑,例如/www/blog/tmp resources_folder 存儲資源文件的文件夾 設置爲絕對路徑,例如/www/blog/gallery 我也曾經遇見不能上傳問題這麽解決的。 更改過了,問題沒有解決, 而且未安裝Orcle 我的是Red-Hat 9.0 主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 02:38:23 下午 找到了,最終跟蹤到的問題語句:
getid3.lib.php的1089行 if (@include_once($filename)) $filename=/var/www/html/blog/class/gallery/getid3/module.tag.id3v2.php 但不知爲何出錯,不明白, 該PHP環境下運行其它程式都正常,應該不會有問題的 主題: 新建資源 爲何在 linux下不能正常使用 作者: markwu 於 三月 17, 2005, 03:20:07 下午 引用 /var/www/html/blog/class/gallery/getid3/module.tag.id3v2.php 這個檔案存在嗎? Mark 主題: 新建資源 爲何在 linux下不能正常使用 作者: csbird 於 三月 17, 2005, 03:24:15 下午 存在的
主題: 新建資源 爲何在 linux下不能正常使用 作者: Randy 於 三月 28, 2005, 08:50:36 下午 我也是一樣的情況!
請大大幫幫忙! :'( 主題: 新建資源 爲何在 linux下不能正常使用 作者: lss 於 三月 28, 2005, 09:47:58 下午 雖然我對你的問題是如何發生的沒什麼概念,但是你的 error.log 裡的 [error] 倒是可以幫個忙:
程式碼: PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/oci8.so' - /usr/lib/php4/oci8.so: undefined symbol: OCINlsCharSetNameToId in Unknown on line 0 據你之前的描述,並未安裝 oci8 extension,那可能是你在 php.ini 裡有啟動 oci8,請檢查 php.ini ,看看是否有 程式碼: extension=oci8.so 程式碼: [error] [client 192.168.0.200] Directory index forbidden by rule: /var/www/html/ 這個部份,看起來跟 httpd.conf 裡的 程式碼: <Directory /var/www/html> ..... </Directory> 區塊設定有關,能請你將它 post 出來好讓大家幫忙嗎? 主題: Re: 新建資源 爲何在 linux下不能正常使用 作者: blowfish 於 三月 30, 2005, 07:40:21 上午 我也有同樣的問題說, 本來以為是產生縮圖的問題, 取消後還是一樣的結果.
而且都沒有錯誤訊息. 但卻可以正常建立資料匣. 主題: 新建資源 爲何在 linux下不能正常使用 作者: markwu 於 四月 01, 2005, 01:58:01 下午 通常縮圖無法產生是因為
1. 目錄權限不對 2. 轉換程式不對 (GD2 and ImageMagick) 假設這兩轉換程式都設定了,還不能產生縮圖,那就是目錄權限不對。可是、也得要有相關的錯誤訊息才能幫大家除錯。 如果錯誤訊息都沒有,那真的很難查 :( ... 傷腦筋。 Mark |