Travel

Categories

Migrate gallery2 photo album

今天打算將我個gallery2 photo album由我部linux搬落個central web server到行, 順便將個gallery2 version 由原本2.2.5 upgrade 到 2.3. 其實做落都幾複雜, 又係試咗好幾次同用咗成個下晏先至整到.

  • 首先就係 Linux到 export 個 gallery2 database 出嚟先 : mysqldump -p gallery2 > gallery2.sql. 然後就import 番佢入去個central mysql server到
  • tar 個g2data directory, 然後scp落去個central data server 我個homedir到. 我個g2data directory成6GB幾, 所以剩係呢到都成個鐘.
  • untar個clean gallery2.3, 佢會有個installation procedure, 跟住會叫你行個upgrade procedure
  • 最後upgrade完, 個gallery2就瓜咗. 我重頭做咗兩次先整到, 首先我用咗個Xtreme theme. 但係呢個theme唔係跟gallery2就有. 所以係migrate前要改番用classic theme先得.
  • 個新gallery2行到後, 又要重新download番D額外嘅plugin, 如果唔係, 又不時會有error.

而家我個gallery2 album條新link就係呢個 :http://staff.ie.cuhk.edu.hk/~sfluk/gallery2/, 咁就唔駛驚我upgrade自己部linux機時會整瓜個gallery2 album.

個gallery2.3嘅slideshow功能勁咗好多, 有番D state of art 嘅feel.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>