KUSANAGIをアップグレードしてWEXALを有効化

IT/インターネット
スポンサーリンク

このサイトのホストにはConoHaを利用していて、KUSANAGI on ConoHaで構築しています

KUSANAGIやWorsPress自体は自動でバージョンアップするように設定しているんだけど、しばらく前にKUSANAGIのライセンス体系が少し変わり、使える機能も増えていたけど、放置してたので対応させてみることにした

ConoHaのコンソールにアクセスするとKUSANAGIをアップグレードするかどうか聞かれるので、それに従って処理を進めていく

処理の流れとして以下

  1. KUSANAGIのサブスクリプションキー取得
  2. KUSANAGIにキー登録
  3. KUSANAGIアップグレード

手順は、ConoHaとKUSANAGIが提供しているので、そちら見れば良い

KUSANAGIの方には手順はなかったw

ライセンス適用までは手順通りで問題なかったんだけど、KUSANAGIのアップグレードさせる時に以下のコマンド実行したら、Python3がインストールできなくてコケた

yum install kusanagi-prem

大昔に、CentOS7がまだPython3をサポートしていない時に、IUSっているリポジトリから手動でPython3を入れていたのを忘れていたので、以下のコマンドで削除したら、kusanagi-prem が上手く入った

yum remove python36u python36u-libs python36u-devel python36u-pip python36u-setuptools python36u-tools

サイトごとに設定が必要っぽいので、指定の以下のコマンドを実行したらエラー表示

# pst init
You are using pip version 10.0.0, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Package scikit-learn installing...
Package scikit-learn installed.
You are using pip version 10.0.0, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Package imagehash installing...
Package imagehash installed.
Package php-pecl-yaml installing...
Package php-pecl-yaml installed.
Package php-tidy installing...
Package php-tidy installed.
Built nginx conf.
Error: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/ssl.conf:
Cannot define multiple Listeners on the same IP:port

Target dir = /home/kusanagi/totonote/DocumentRoot
pst watch started.
Info: open WEXAL manager form http://000.000.000.000:61000

ウェブサーバーは、nginxを利用しているので、そのまま放置でも良さそうだけど、KUSANAGIのドキュメントに対処法が記載されていた

WEXAL® Page Speed Technology モジュール更新情報 | KUSANAGI

# mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.bak
# pst init --rebuildconf

configの記述が古いからエラーになるので再構築しろということ

サイトのディレクトリに戻って再実行したら正常に処理された模様

# pst init --rebuildconf
You are using pip version 10.0.0, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
You are using pip version 10.0.0, however version 21.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Built nginx conf.
Built httpd conf.
kill -KILL 15818
Target dir = /home/kusanagi/totonote/DocumentRoot
pst watch started.
Info: open WEXAL manager form http://000.000.000.000:61000

WAXALを有効化して、終了

コメント

タイトルとURLをコピーしました