Pages

2014年6月2日月曜日

[Ubuntu]14.04 serverをもう一度[webmin virtualmin usermin]

結果、ISPConfigは一旦おいといて、やっぱりwebminとvirtualminで
の運用を目指してみます。

ubuntuにwebminをインストールするのは簡単でした。

userminもvirtualminも簡単にインストールできました。

それぞれ.debをダウンロードしてきて、インストールするだけです。


userminは問題なく動いているようですが、virtualminはvirtualminモジュールの部分を覗いてみると

Virtualmin's configuration has not been checked since it was last updated. Click the button below to verify it now.
とかなってしまい、 Re-check and refresh configurationボタンを押すように促されます。

で押してみると…チェックしてくれます。現在の状況は、


  • メモリは十分足りている。
  • 127.0.0.1をDNSに足してくださいと言っている
そんな状況なので、 NetworkConfigurationのHostname and DNS clientに127.0.0.1を足してあげます。ファイルで言えば /etc/network/interfaceのdns-nameserversに127.0.0.1を足してあげるってことでしょうか。

もう一度チェックしてみます。

  • the default master DNS server "exsample.domain" is not a fully qualified domain name
  •  A problem was found with your Postfix virtual maps : No map sources were found in the Postfix configuration
ドメイン名はいいとして、今度はposfixのvirtual mapsが問題だということです。postfix mail serverのvirtual domainsのmain mapping lookup tablesに hash:/etc/postfix/virtualを追加して、再度チェック。

  • Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so


と言われるので今度はpostfix mail serverのsender dependent transport mappingのmap specificationsにvirtual_alias_maps = hash:/etc/postfix/virtualを入力しました。

ファイルで言うと/etc/postfix/main.cfの部分でしょうか。

更に再チェック。

  • Suexec is enabled in the default template, but the Apache module mod_suexec is not installed or not enabled

apahceのmod_suexecを有効にしないといけないみたいなのでapache webserverのglobal configurationのconfigure apache modulesでsuexecを有効に。mod_actionsも必要なので同様に有効に。

簡単に言えば/etc/apache2/mods-enabled/に/etc/apache2/mods-availableにあるファイルにそれぞれシンボリックリンクを作ります。

もう一度再チェック。

  • Apache configuration file /etc/apache2/mods-enabled/php5.conf contains SetHandler lines that prevent PHP from running with domain owner permissions. These lines must be removed.

これは/etc/apache2/mods-enabled/php5.confの


#    SetHandler application/x-httpd-php ←コメントアウト


#    SetHandler application/x-httpd-php-source ←コメントアウト


で華麗に切り抜けました。webminで言えばapache webserverのexisting virtual hostsのdefault serverのpre-directory optionsの当該部分(Files regexp .+\.phps$)のmime typesのpass all files to handlerをnoneにするなどして対応できると思います。

再々チェック。
  • Suexec is enabled in the default template, but the suexec command was not found on your system
どうした、なんででしょ?

# apt-get install apache2-suexec をして足りないものをインストール。すると今度は、

  • The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin virtual server home directory is /home. CGI and PHP scripts run as domain owners will not be executed
ですって。

http://blog.johnso.org/2010/04/suexec-command-on-your-system-is.html

上記のサイトを見つけて説明通りに進めました。

Enjoy!で終わっているのでたぶん大丈夫なのでしょう。。。


最後に、virtualminの設定で何にも出てこない様になってしまったので、言語設定で日本語にしてテーマを適当なものにしたらなんとかなりました。

0 件のコメント: