CentOS 5 に Plone 3.1 をインストールしたのでその手順

Python の有名な CMS である Plone を入れてみることにしました。現在の最新リリースは 3.1.7 のようです。 Plone 4 : パワフルで高速なCMS — Plone - エンタープライズ・オープンソースCMS Plone Users Group Japan に日本語の情報があります。 ダウンロード http://plone.org/products/plone の Get Plone for Linux/BSD/Unix (33MB) Unified Installer - for Linux/BSD/OS X/UNIX/Solaris (compiles and installs) を使います。 % wget http://launchpad.net/plone/3.1/3.1.7/+download/Plone-3.1.7ex-UnifiedInstaller.tgz % tar zxvf Plone-3.1.7ex-UnifiedInstaller.tgz % cd Plone-3.1.7ex-UnifiedInstaller インストール README.txt によると、install.sh をたたくだけでインストールできるようです。 Python は /usr のものを使いたいので –with-Python オプションで指定しました。–target でインストールディレクトリを指定します。デフォルトは /opt/Plone-3.1 になるみたいです。私は、/proj に何か試すときはいつも入れているので、そちらを指定しました。サービスユーザーとしてデフォルトで plone が追加されます。これはそのままにしました。 % sudo ./install.sh --target=/proj/Plone-3.1 --with-python=/usr/bin/python standalone Stand-Alone Zope Instance selected Detailed installation log being written to /home/tosshi/plone/Plone-3.1.7ex-UnifiedInstaller/install.log \\nTesting /usr/bin/python for Zope/Plone requirements.... Warning: the Python Imaging Library is missing. We'll try to build it, but watch for problems. /usr/bin/python looks OK. We'll try to use it. Root install method chosen Installing Plone 3.1.6 at /proj/Plone-3.1 Creating python virtual environment... New python executable in /proj/Plone-3.1/Python-2.4/bin/python Installing setuptools.............done. Skipping zlib compile and install Skipping libjpeg compile/install Skipping readline compile/install Python found at /proj/Plone-3.1/Python-2.4/bin/python; Skipping Python install. Installing PIL Installing Cheetah template engine Unpacking buildout cache to /proj/Plone-3.1/buildout-cache Compiling .py files in egg cache id: plone: そのようなユーザは存在しません Adding user account 'plone' to system ... Generating random password ... Copying standalone buildout template Running buildout Creating directory '/proj/Plone-3.1/zinstance/parts'. Creating directory '/proj/Plone-3.1/zinstance/develop-eggs'. Installing plone. Installing zope2. running build_ext creating zope.proxy copying zope/proxy/proxy.h -> zope.proxy building 'AccessControl.cAccessControl' extension creating build creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/AccessControl (省略) running build_ext Installing productdistros. Installing instance. Generated script '/proj/Plone-3.1/zinstance/bin/instance'. Generated script '/proj/Plone-3.1/zinstance/bin/repozo'. Installing zopepy. Generated interpreter '/proj/Plone-3.1/zinstance/bin/zopepy'. Installing zopeskel. Generated script '/proj/Plone-3.1/zinstance/bin/paster'. Installing chown. chown: Running chmod 600 .installed.cfg find /proj/Plone-3.1/zinstance -type d -name var -exec chown -R plone \\{\\} \\; find /proj/Plone-3.1/zinstance -type d -name LC_MESSAGES -exec chown -R plone \\{\\} \\; find /proj/Plone-3.1/zinstance -name runzope -exec chown plone \\{\\} \\; Unused options for chown: 'update-command'. Installing unifiedinstaller. Generated script '/proj/Plone-3.1/zinstance/bin/plonectl'. Installing precompile. precompiling python scripts in /proj/Plone-3.1/zinstance/products precompiling python scripts in /proj/Plone-3.1/zinstance/parts/productdistros precompiling python scripts in /proj/Plone-3.1/zinstance/parts/plone Creating Plone site... This is the first start of this instance. Creating Data.fs and a Plone site. We only need to do this once, but it takes some time. Creating Plone site at /Plone in ZODB... Installed Plone standard content Finished adding Plone site ##################################################################### ###################### Installation Complete ###################### Plone successfully installed at /proj/Plone-3.1 See /proj/Plone-3.1/zinstance/README.txt for startup instructions Use the account information below to log into the Zope Management Interface The account has full 'Manager' privileges. Username: admin Password: xxxxxxxxx This account is created when the object database is initialized. If you change the password later, you'll need to use the new password. Ask for help on plone-users list or #plone Submit feedback and report errors at http://dev.plone.org/plone . For install problems, specify component "Installer (Unified)." 上記のとおり、Zope の初期アカウントの Username と Password が表示されます。/proj/Plone-3.1/zinstance/adminPassword.txt にあるのでメモし忘れても平気です。 /proj/Plone-3.1/zinstance/README.txt を見ろとある。 ...

2009年1月12日 · Toshimitsu Takahashi

WordPress でトラックバックURLを載せる

WordPressはそのままだと(テキトーだが…)、トラックバック URL が出ない。 パーマネントリンクに /trackback/ が付いたものになるらしいが表示したかった。調べたら trackback_url という関数が見つかった。 自分のテーマの functions.php に下記を追記した。my_trackback_link を呼び出すと、クリップボードにコピーしてくれるリンクを作って表示する。ただ、IEでしか効かない。 1 2 3 4 5 6 7 <?php function my\_trackback\_link() { echo "<a title=\\"クリックすると、トラックバック URL をクリップボードにコピーします。\\" href=\\""; echo trackback_url(); echo "\\" onClick=\\"window.clipboardData.setData('text', this.href); return false;\\">trackback URL</a>"; } ?>

2007年6月1日 · Toshimitsu Takahashi