アーカイブ

‘apache’ タグのついている投稿

WordPressをリストア

2009 年 4 月 26 日 コメントはありません

Slicehostに乗り換えるにあたり,このblogもリストア.
先にプラグインを全部インストールし,
エクスポートしていた記事xmlをインポート.
# Kill WPTexturizeのダウンロードリンクが死んでるんだが…
80件程度で300kBになるんだね.

その後,iNove周りの細かいリストア.
Notice欄にfortuneを表示させる改造も移植.
ついでにArchivesに各月投稿件数を表示するようにしたり.
パーマリンクも日付と投稿タイトルを使うように再設定.
# Ubuntu 8.10にaptitudeでApache2入れたときの000-defaultは
 AllowOverride Noneだったりする.
SEOとか全然気にしてないんだけどね.

Redmine on Ubuntu

2009 年 1 月 3 日 コメントはありません

何カ所か戸惑った.
まずはRedmineのインストールを参考に,Redmine 0.8をダウンロードして展開.
database.ymlを見てみると,MySQL向けの記述だったから,さっき頑張ってsqlite3-rubyをインストールしたのも忘れてMySQLで運用することにした.
Migrateするまえに


production:
adapter: mysql
database: redmine
host: localhost
username: hoge
password: piyo
encoding: utf8
socket: /var/run/mysqld/mysqld.sock

と書き換えて,redmineという名のデータベースを作っておく.
# ソケットファイル名がわからないときは”mysqladmin -u root -p variable | grep socket”で.
db:migrateもload_default_dataも順調に完了.
この時点でWEBrickからアクセスできることを確認.

次,Apache上でRedmineを動かすを参考に,”gem install passenger”.
問題なし.
# Synapticでもlibapache2-mod-passengerってのがあるからインストールできそうなんだけど,
 mpm-workerだと依存関係を解決できないらしいので,gemから入れた.
問題は”passenger-install-apache2-module”が見つからないこと.
しかし,これもfindしたらすぐ解決.
PATHが通ってなかっただけなので,”/var/lib/gems/1.8/bin/passenger-install-apache2-module”と直接指定.
apache2-devが足りないと怒られたので,今度はSynapticからインストール.
再度実行して,無事にインストール完了.
/etc/apache2/httpd.confに以下を記述後,Apache再起動で…
キタ━━━( ゚∀゚ )━(∀゚ )━(゚  )━(  )━(  ゚)━( ゚∀)━( ゚∀゚ )━━━!!!!


LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.0.6
PassengerRuby /usr/bin/ruby1.8
<VirtualHost *:80>
ServerName bellonieta.net
DocumentRoot /var/www
</VirtualHost>
<VirtualHost *:80>
ServerName redmine.bellonieta.net
DocumentRoot /var/www/redmine/public
</VirtualHost>

Subversion

2009 年 1 月 3 日 コメントはありません

Mercurialも使ってみたんだけど,日本語含むファイル名とか考え出すとあまりに面倒で…
VersioningはまだしばらくSubversionにお世話になります.
今回は,WebDAVでアクセス,Digestで認証と行きましょう.
例によってSynapticからインストール.
a2enmodでauth_digestを有効にして,dav_svn.confはこんな感じ?


<Location /svn>

# Uncomment this to enable the repository
DAV svn

# Alternatively, use SVNParentPath if you have multiple repositories under
# under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
# You need either SVNPath and SVNParentPath, but not both.
SVNParentPath /var/www/svn

# Basic Authentication is repository-wide. It is not secure unless
# you are using https. See the 'htpasswd' command to create and
# manage the password file - and the documentation for the
# 'auth_basic' and 'authn_file' modules, which you will need for this
# (enable them with 'a2enmod').
#AuthType Basic
AuthType Digest
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

# The following three lines allow anonymous read, but make
# committers authenticate themselves. It requires the 'authz_user'
# module (enable it with 'a2enmod').
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Location>

続きを読む…

Fresh Reader on Ubuntu

2009 年 1 月 2 日 コメントはありません

自作RSS Aggregatorが完成するまではFresh Readerのお世話になることにしてる.
新鯖にも早速導入してみた.
しかし,cronがうまく回ってくれない.
んー,chown的な話では無さそうだし,sudoか?
結局はcrontabに”/usr/bin/php -f /var/www/freshreader/crawler.php -c /etc/php5/apache2/php.ini”と書いて解決.

カテゴリー: Uncategorized タグ: , , , , , ,