2016年3月29日火曜日

rlogin

WindowsのSSHクライアント

新しいバージョンから
「別のRloginにも送信」という便利な機能が付きました。

これで別々のサーバにいっぺんに設定できる!!

本当は構成管理ツールに書いたほうがいいんだけどね。


blog.ybbo.net/2014/01/22/【シンプル】centos6にmysql5-5をyumで簡単にインストールする/

以下メモ書き
CentOS 6.7

yum -y install fail2ban
yum -y install nginx

##yum install -y http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum install -y mysql mysql-devel mysql-server mysql-utilities
###yum -y install phpmyadmin
yum -y --enablerepo=remi-php56,remi,epel install php-fpm php-mbstring php-xml php-mysql
yum -y install php-mysqli
yum install -y --enablerepo=remi,remi-php56 php php-devel php-pear php-mbstring php-xml php-mcrypt php-gd php-pecl-xdebug php-opcache php-pecl-apcu php-fpm php-phpunit-PHPUnit php-mysqlnd php-mysql php-cli php-devel

php-pdo php-mcrypt php-pecl-memcached php-pecl-msgpack

service fail2ban start
service nginx start
service mysqld start
service php-fpm start

chkconfig fail2ban on
chkconfig nginx on
chkconfig mysqld on
chkconfig php-fpm on

mysql_secure_installation

iptables -I INPUT 5 -p tcp --dport 80 -j ACCEPT
iptables-save > /etc/sysconfig/iptables

chkconfig ip6tables off

【検証】vagrant + chef for さくらVPS by Windows

メモ書き
結論から言うと、Windows環境でやるのはいろいろめんどくさいので辞めた方がいい。

<環境>
・CentOS 6.7


<インスコ>
・VirtualBox
・vagrant for windows
・chef for windows
・git for windows
・Ruby MSI Packages


<環境変数>
C:\HashiCorp\Vagrant\embedded\bin\ruby.exe
c:\users\user\appdata\local\chefdk\gem\ruby\2.1.0\bin


<vargrant 設定>

vagrant plugin install vagrant-omnibus


<chef 設定>
chef gem install knife-solo

knife solo init .
netSSH関連のエラーが出る。gemのバージョンとかも関係してくるので、knife soloは使わないで、人様のgitからcloneしてくる。

git clone https://github.com/YusukeHigaki/sakura_chef.git


2016年2月12日金曜日

2015年12月10日木曜日

SoftEther VPNオープンソース版を触ってみた。

訳あって中国からの攻撃がほにゃらら~
SoftEther VPN Server(Ver 4.19, Build 9599, beta)オープンソース版は、オレオレ認証できない。
ちょっとしたことでコストかけたくないから、結局OpenVPNしかないんか・・・

ところでblog spotってどうやって記事にタグ貼るの?

<tag>
open vpn, SoftEther VPN, vpnux Client, Windows10

おもちゃ置いておきます。要html src確認
JPEG Direct Annexが応答なしで動かんwww

2015年12月7日月曜日

さくらインターネットでペイジェントを使う

<メモ書き>

☆さくらインターネット
OpenSSL 0.9.8zf

☆ペイジェント
OpenSSL 0.9.8o 以上で使える


☆OpenSSL verup history

Major changes between OpenSSL 0.9.8ze and OpenSSL 0.9.8zf [19 Mar 2015]


Major changes between OpenSSL 0.9.8o and OpenSSL 0.9.8p [16 Nov 2010]:

OK使える様子。

2015年9月13日日曜日

eccube2.13.3からeccube2.12.6へ下げた。

colori山下さま。
大変お世話になっております。
追加報告です。
ちょっと長いですが・・・

<さくらインターネットでの導入結果>
プラグインを導入しカテゴリ表示すると、Internal Server Errorが出ました。
eccubeでログが取れないので、httpdのログを参照しました。


<httpd log>
[Sun Sep 13 01:29:01 2015] [error] [client 118.240.244.237] suexec policy violation: see suexec log for more details, referer: http://firemio.sakura.ne.jp/test/eccube-2.13.3/html/products/list.php?category_id=1
[Sun Sep 13 01:29:01 2015] [error] [client 118.240.244.237] Premature end of script headers: index.php, referer: http://firemio.sakura.ne.jp/test/eccube-2.13.3/html/products/list.php?category_id=1


<上記を修正>
suEXECがうるさいのでパーミッションを正しく設定し、eccubeでログを取れる状態にしました。
Directory : 755
.php : 604

<eccube2.13.3のエラーログ>
2015/09/13 01:49:48 [/test/eccube-2.13.3/html/category/index.php] Fatal error(E_USER_ERROR): 不整合 on [/home/firemio/www/test/eccube-2.13.3/data/class/pages/LC_Page.php(347)] from 118.240.244.237
customer_id = 
/home/firemio/www/test/eccube-2.13.3/html/category/index.php(32): plg_OptimizeCategoryUrl_LC_Page_Category_Ex->process
/home/firemio/www/test/eccube-2.13.3/data/downloads/plugin/OptimizeCategoryUrl/plg_OptimizeCategoryUrl_LC_Page_Category_Ex.php(52): plg_OptimizeCategoryUrl_LC_Page_Category->process
/home/firemio/www/test/eccube-2.13.3/data/downloads/plugin/OptimizeCategoryUrl/plg_OptimizeCategoryUrl_LC_Page_Category.php(58): plg_OptimizeCategoryUrl_LC_Page_Category->action
/home/firemio/www/test/eccube-2.13.3/data/downloads/plugin/OptimizeCategoryUrl/plg_OptimizeCategoryUrl_LC_Page_Category.php(94): LC_Page->getLocation
/home/firemio/www/test/eccube-2.13.3/data/class/pages/LC_Page.php(278): LC_Page->getRootPath
/home/firemio/www/test/eccube-2.13.3/data/class/pages/LC_Page.php(347): trigger_error


<真面目に上記ログを見てみる>
eccube 2.12系と2.13系のカラムの不一致な気がするので、2.12系を入れてみる。
※ちなみに下記の購入先サイトには2.13.3対応と書いてある。


<eccube2.12.6のエラーログ>
2015/09/13 02:29:24 [/test/eccube-2.12.6/html/category/index.php] Warning(E_WARNING): file_get_contents(http://firemio.sakura.ne.jp/test/eccube-2.12.6/html/home/firemio/www/test/eccube-2.12.6/html?category_id=1&amp;plg_optimizecategoryurl_rewrite_access=1): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
 on [/home/firemio/www/test/eccube-2.12.6/data/downloads/plugin/OptimizeCategoryUrl/plg_OptimizeCategoryUrl_LC_Page_Category.php(112)] from 118.240.244.237


<上記ログを見ると>
1行目、file_get_contentsで読みに行くURLがおかしい。
http://firemio.sakura.ne.jp/test/eccube-2.12.6/html/home/firemio/www/test/eccube-2.12.6/html?category_id=1&amp;plg_optimizecategoryurl_rewrite_access=1

ん?無理矢理mod_rewriteで修正するとか?
とりあえずちょっとの修正で2.12.6で動作しそうな予感がします。
なんとかなりませんか?

よろしくお願い致します。

2015年8月29日土曜日

あいうえお