看板 FreeBSD 關於我們 聯絡資訊
不知道有沒有人有解決的方法? 以下以 gallery 簡稱 gallery.sf.net 所製作的相簿程式 version 1.x 敘述: 當 OpenBSD 在 chroot'd apache 於 /var/www 下面時, gallery 在進行檔案 上傳,透過 netpbm or ImageMagick 製作縮圖時,會出現以下的狀況: - Adding img_1102.jpg Resizing/compressing original image No resizing required File /htdocs/albums/album01/img_1102_001.jpg type 2. Executing: '/usr/local/bin/convert' -quality 90 -size 150x150 +profile '*' \ '/htdocs/albums/album01/img_1102_001.jpg' -geometry 150x150 \ '/htdocs/albums/album01/img_1102_001.thumb.jpg' Results: none Error messages:: Status: 127 (expected 0) Error: Unable to make thumbnail (0)! 但是如果取消 jail (httpd_flags="-u" in /etc/rc.conf.local),即可順利的上傳 製作縮圖。 我安裝 netpbm 及 ImageMagick 是透過 ports 安裝,將必要的檔案複製 到 /var/www 中,並且透過 ldd(1) 列出必須的 library 複製到 /var/www 下 [此步驟參考下方(2)]。 (1) http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=17270 &highlight=openbsd (2) http://www.openbsd.org/faq/faq10.html#httpdchroot openbsd 3.5 / Apache 1.3.29 / gallery 1.4.3pl2 / netpbm-9.24p1 / ImageMagick 5.2.9p0 不知道有沒有人有這樣的經驗?在 (1) 之中有人有提出問題,但目前似乎為無解狀 態中 謝謝~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.250.151