Home » Tech » [图片博客折腾三部曲] 三、开源 简洁 强大 – Gallery 3

[图片博客折腾三部曲] 三、开源 简洁 强大 – Gallery 3

之前的两篇介绍了功能强大的Pixelpost和比较冷门的EZPX,这回推荐一下Gallery 3这个图博程序,同时也是我最推荐的一个。

先简单介绍一下,Gallery3是一款开源的图片管理程序,基于PHP+MYSQL,安装简单,功能强大而不泛滥,并且有多国语言支持(大约有近百种语言,包括中文)。这个图博程序是由一些开源项目(Open Source Project)爱好者们开发的,并且近些年保持持续更新,最新版3.0.1就是1月22号发布的,个人认为Gallery是知名度仅次于Pixel Post的图博管理程序。另外还有专门的Android端管理软件,并能够和Drupal完美契合。

不多说,先看官方安装的指南,很详细

Installation


Installing Gallery 3 is made easy through the included installer. Follow these instructions and you should have a working Gallery 3 installation within a few minutes. 

  1. Download Gallery 3 from here.
  2. Extract the archive and upload all files and folders to your web server (usually via FTP).
  3. In the same folder you have copied all the files and folders to (the folder that contains the index.php file) create a folder called “var” (without the quotes).
  4. Make sure that the var folder is writable. Unfortunately it is difficult to give a general instruction how to do this since it varies largely from hoster to hoster. If you get stuck here try changing the permission of the folder to 777 (via FTP client or by running the command “chmod 777 var” without the quotes via SSH access). (If you want to know more about the security off this folder and your data stored in it please go to Permissions and Security)
  5. Create a MySQL database for your Gallery 3 installation and note down the username and password for the Database (if required). Usually this is done in the control panel for your website.
  6. Open your preferred web browser and browse to the web address you have uploaded the Gallery 3 files to in step 2 (e.g.http://www.example.com/gallery3).
  7. You should see the installation screen which looks like this.
  8. If you get a warning at this point that no folder could be found to store your data or that the folder “var” is read-only please go back to step 3 and 4 and make sure that the folder was created at the right place and with the right permissions.
  9. On the installation screen enter the username and password for the database you have created in step 5. Here is an explanation of all fields
Field name Description
Database name The name of the database you have created in step 5
User The username for accessing the database you have created in step 5. This is not the user name you will be using to log on to you Gallery 3 installation
Password The password for accessing the database you have created in step 5. This is not the password you will be using to log on to you Gallery 3 installation
Host The IP address of the database server. In most cases this is localhost (meaning it is the same server you are installing your Gallery 3 on) so you don’t need to change this. If this fails please check the documentation provided by your webhoster.
Table prefix Gallery creates several tables in the database you select to use. This optional field allows you to add a prefix to all these tables.This can be useful if you want to use one database for more than one Gallery 3 installation or for Gallery 3 and any other software that requires a database. You should however only do this if you don’t have the possibility to create an own database for Gallery 3.Example: Gallery 3 creates a table called “items” which contains all information on the photos and videos you upload. If you specify “g3” as prefix this table will be called “g3_items” instead of only “items”.
If you are not sure what this all means, just leave this field empty.
  1. Click “Continue”. If you get an error screen at this point please read Troubleshooting and common errors
  2. You should get a “Success” screen presenting you with a user name and password to log on to your Gallery 3 installation and a link saying “Start using Gallery now”. Please make sure that you note down this user name and password
  3. If you click on the “Start using Gallery now” you should be redirected to your Gallery 3 main page and be presented with a popup allowing you to change your password and e-mail address. Please do this immediately

这个安装说明是我见过最强大一个,基本把所有你担心的问题都解释了一遍。比如我这样的小白安装完成,发现在主页地址栏里多了一个index.php,回头看了下UserGuide,发现在.htaccess文件里已经指明怎么去做了,将文件按要求修改好即可。

如果安装遇到困难,在楼下留言即可。注意一下第三步那个var文件夹,比如你把全部文件解压到了根目录下的“gallery3”文件夹,你需要在gallery3这个文件夹里建立一个名为var的文件夹,设置好777,把gallery3的内容全都copy进去。

这就是默认的主页,没有安装和设置任何主题,很简陋。。。

很棒的管理后台,最棒的是功能强大但是设置并不复杂。

超赞的模块管理界面,不需要像wp一样那么折腾,直接启用就是了~每一个模块都能兼容当前版本,必要的功能都能实现。

好有WP的感觉啊。。。你可以选择启用验证码和Akismet,留言评论样式和Wp大同小异。

更多的后台功能可以自己挖掘下,Gallery3虽然不及Pixelpost庞大,但是该有的功能一样不少。

我自己的demo就不放了,最近没啥功夫弄,很土鳖的- – 网上多的是,展示几个,有需要的可以参考一下。

好想旅游,好想收个便宜的2手单反。。。

哈,还有一个广州车展和车模的图集

呃,对棒纸女无爱,Logo和配色不错,官网DEMO一堆这种网站

官方DEMO网站:http://gallery.menalto.com/gallery/g3demosites/(约70个DEMO站)

官方网站地址:http://gallery.menalto.com/

另外,在官网的codex和forum里你能解决所有的问题,请善用codex的导航和官网的搜索栏。不得不佩服这些国外的开源开发者团队,把Q&A弄得和百科全书一样,Gallery3值得一试。

这样一来这个伪技术专题就结束了,整理一下:

[图片博客折腾三部曲] 一、弃用Pixelpost图片博客

[图片博客折腾三部曲] 二、Flickr好搭档 – EZPX

[图片博客折腾三部曲] 三、开源 简洁 强大 – Gallery 3

本站遵循 BY-NC-SA 3.0.0 (署名-非商业性使用-相同方式共享) 共享协议. 转载请注明转自 Weitian Zhao's Blog
Filed under Tech. Tags: , ,



83 responses to 《[图片博客折腾三部曲] 三、开源 简洁 强大 – Gallery 3》.

↓Click to reply
  1. 80后 80后

    批量更新图片时无法将标签插入到每一张图片里去,还有不支持中文目录

    #1
  2. 谭博的个人网站 谭博的个人网站

    批量有点问题,不过解决了 呵呵 中文bug麻烦 唉

    #2
  3. 狐狸乌鸦 狐狸乌鸦

    我读完你的几篇,动手放弃pixelpost,开始做gallery3,遇到你所说的问题:
    主页地址栏里多了一个index.php

    我看了一下文档,但仍然没有搞清楚怎么办,请赐教。

    #3
  4. 狐狸乌鸦 狐狸乌鸦

    博主上线了么?
    主页地址栏里多了一个index.php
    有时间麻烦告诉我怎么解决。

    #4
    • Veezy Veezy

      @狐狸乌鸦
      抱歉最近正好赶上期中考,忙晕了,博客什么的几乎快要荒废掉…
      哈哈,看来你解决了。再多交流 😆

Leave a Reply



* Press Ctrl + Enter to send | Design your own Gravatar

Trackbacks and Pingbacks: