Gallery3 修改記錄

  • Gallery3 升級到 Gallery 3.0.7

0.備份

1.下載新的 gallery3 檔,並於 /tmp 下解開兩次檔案。 gallery3 gallery31

2.將原本使用自訂 modules 複製到 /tmp/gallery3

rsync -av /var/www/html/gallery3/modules/* /tmp/gallery3/modules/

3.再將新修正的 modules 檔案壓回 /tmp/gallery3/modules (確定是新的檔案)

rsync -av /tmp/gallery31/modules/* /tmp/gallery3/modules/

4.將原本 gallery3/var 搬到新的 gallery3/var

5.mv /tmp/gallery3 -> /var/www/html/gallery3

6.執行升級 /var/www/html/gallery3/php index.php upgrade

7.收工。

  • Gallery3 新增帳號步驟 2013/05/02

1.新增使用者。
2.新增群組。(Gallery3 使用群組作權限設定)
3.新增相本。
4.對新相本編輯權限。(拒絕和鎖定上層設定)
5.測試。

一、編輯權限

vi /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    #AllowOverride None
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>