虛擬主機下裝Gallery

Gallery相簿程式安裝於虛擬主機之下。

只需要php + Netpbm (or ImageMagick) 就可以運作。建議用netpbm。

1. 下載原始程式1.4pl2。解壓上傳於/gallery/

2. 下載適用於gallery的netpbm程式。解壓上傳於/gallery/netpbm/ 用ftp程式,把檔案匣下面的檔案都設為權限755 (chmod 755 *.*)

3. 建.htaccess 和 config.php檔(空白)(chmod 666),並放在gallery/目錄之下

4. 建/gallery/albums/和/gallery/tmp/兩個檔案匣。設權限為777.

5. 把/gallery/setup/檔案匣設權限為755.

6. 執行http://ip/gallery/setup/index.php

7. 注意把相關路徑設對(虛擬主機的實體路徑要知道)。如albums及netpbm和tmp都要設對。netpbm的轉換jpeg的程式是ppmtojpg。

8. 安裝完後:
使用 FTP 程式,更新權限:
chmod 644 .htaccess
chmod 644 config.php
chmod 400 setup
(各大ftp程式均有這個功能,windows下的話,就試試右鍵吧。)

9. 觀看:http://ip/gallery/

10. 再更改設定的步驟:
 (1) chmod 666 .htaccess
   chmod 666 config.php
   chmod 755 setup
 (2) 進入http://ip/gallery/setup/index.php 並重新設定相關值。
 (3) 設定完後使用 FTP 程式,更新權限:
   chmod 644 .htaccess
   chmod 644 config.php
   chmod 400 setup

謝謝JC啦。我想之前裝不成gallery是我的RedHat 9的問題。猜想可能是netpbm的版本與gallery版本1.4pl2 不相容。

又,十一月二十六日的新版1.41版是更好的選擇。請下載。請看相關說明

Related Posts with Thumbnails

151 thoughts on “虛擬主機下裝Gallery

  1. Your webserver does not support localization. Please instruct your system administrator to reconfigure PHP with the gettext option enabled.

    這是小弟在Language Settings項目裡看到的訊息,不管是在Linux虛擬主機或是自己的WindowsXP都是這種情形

    網路上關於gettext的說明都相當艱深,只能求助站長了~~@@
    感激不盡!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">