====== メモ ======
ここに書かれている内容は**Parallelsが正式に保証・公開していない**情報が多くあります。
参考にして作業をされる場合は自己責任でお願いします。
===== MySQLへの接続 =====
Pleskを使ってる限りSSHなどでコンソールに接続して設定をいじる事はないし、phpMyAdminも使えるから必要無いのかもしれないが…
独自PHPなんかでPleskのデータベースにアクセスしてデータを抜いちゃったりしたいなぁ~って場合は以下のファイルを確認
cat /etc/psa/.pas.shadow
そんな訳で接続するには
mysql -u admin -p `cat /etc/psa/.psa.shadow`
もし、うまく接続出来ない場合は-Dオプションで**psa**(データベース名)を指定して試してみよう。
===== CentOS6.7にPlesk12.5.30をインストールしたらDovecotが起動しない =====
必ずコケるかと言うとそうではない
なので、Pleskが悪い訳じゃないのだけど、IPv6を無効にしてるとlisten出来なくて落ちるようだ
# /etc/init.d/dovecot start
Dovecot Imap を起動中: Error: socket() failed: Address family not supported by protocol
Error: service(managesieve-login): listen(::, 4190) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(pop3-login): listen(::, 995) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol
Error: socket() failed: Address family not supported by protocol
Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol
Fatal: Failed to start listeners
こんな感じのエラーがでる。なので、dovecot.confを修正する。
vi /etc/dovecot/dovecot.conf
listen = *
この1行を追加するだけで良いはず
===== CentOS7でproftpdの接続が遅い場合 =====
proftpdはIP逆引きとかで接続がすごい遅い場合があるようなんだけど、Pleskではその対応は既にしてある。
こういうやつね。
IdentLookups off
UseReverseDNS off
設定するのは/etc/proftpd.confにですよw
それでも接続が遅い場合、タイムアウトを26秒くらいにすれば繋がるんだけど、あまりにも遅すぎる(--;)
イロイロと試した結果、proftpd.confに以下の1行を追加する。
UseIPv6 off
んでもって、xinetdを再起動する
systemctl restart xinetd
Pleskを使ってて遅いって感じる人は少ないのだろうか?googleで検索してもこんな情報を書いてるサイトが無かった。