|
|
|
快適画像管理!Coppermineを入れてみる!! |
|
Writte by Administrator
|
|
2008/04/30 水曜日 17:15 |
デジカメで撮った写真は、今まで自分のパソコンだけで管理していたが、 友達と共有したりしたいとき、はたまた自宅以外でも写真を見たい時がある。
そんなときに、インターネット上に自分専用のアルバムがあったら便利!! ということで、それを実現する「Coppermine」というソフトを今回、 インストールしてみることにする。
まずは、以下のURLから本体をダウンロードする。 [Coppermine Gallery] http://coppermine-gallery.net/ ダウンロード
# wget http://downloads.sourceforge.net/coppermine/cpg1.4.18.tar.gz ?modtime=1208334676&big_mirror=0
|
解凍 # tar xvfz cpg1.4.18.tar.gz
|
とりあえず、READMEを読んでみる。
# cd cpg1418 # vim README.txt
|
READMEよ読む限り、動作させるには以下のソフトが必要だそうだ。 PHP 4.2.0以降(PHP5 についてもサポート) MySQL 3.23.23以降(MySQL 4.1を推薦、MySQL 5についてもサポート) GD 1.xx もしくは GD 2.xx(GD 2.xxを推薦)もしくはImageMagick ということで、PHPの設定を確認してみる。
# php -i | grep -i gd (以下出力) # GD Support => enabled # GD Version => bundled (2.0.34 compatible)
|
ということで、どうやらGDをサポートしているようなのでOK。 サポートしていなかった場合は、別途インストールする必要がある。 解凍したファイルを公開ディレクトリにコピーする。 今回は、仮に"$HOME/public_html"とする。
# mv * $HOME/public_html # cd $HOME/public_html
|
ということで、とりあえず開いてみる。 (ブラウザから)
 なんだか、Permissionを変更しないといけないようだ。 # chmod 777 include # chmod 777 albums # chmod 777 albums/userpics # chmod 777 edit # chmod 777 albums/edit
|
以上を設定して、「Try Again」をクリックしてみると。 次のような画面に遷移した。
 ここで、どうやらデータベースの設定が必要なようなので設定を行う。 今回は、新しくユーザと、データベースを作成する。 # mysql -u root -p (パスワード入力) # create database photo (今回データベース「photo」で作成) # GRANT ALL PRIVILEGES ON *.* TO photo@localhost IDENTIFIED BY 'password' WITH GRANT OPTION ということで、データベースの設定は終わり。 あとは、これを上記の画面に入力してやる。 ※注意 ImageMagickのパスを設定する欄(最下部)があるが、 自分の環境では既にImageMagickがインストールされていたので、 次のように入力をしておいた。
あとは、ボタンを押していくだけで、設定が完了する。 設定完了後はこのような画面が表示される。
 Add as favourites (36) | Quote this article on your site | Views: 2255
|
|
|
|
|
|
|
|
|
|
|
- Please keep the topic of messages relevant to the subject of the article.
- Personal verbal attacks will be deleted.
- Please don't use comments to plug your web site. Such material will be removed.
- Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
- Keep in mind that the above process only applies if you simply entered the wrong security code.
|
Powered by AkoComment Tweaked Special Edition v.1.4.6 AkoComment © Copyright 2004 by Arthur Konze - www.mamboportal.com All right reserved |
|
Update ( 2008/04/30 水曜日 17:17 )
|
|