5 moodle 設定 <情報>本家 moodle https://moodle.org/?lang=ja    場所 /var/www/html/edu/moodle URL http://mars.sonoda-u.ac.jp 0)パーミッション設定 chown -R www-data:www-data /var/www 1)CURLインストール apt install php-curl systemctl restart apache2 2)パス確認 ウェブアドレス http://mars/edu/moodle Moodleディレクトリ /var/www/html/edu/moodle データディレクトリ /var/www/moodledata 3)データベースドライバを選択する タイプ MariaDB 4)データベース設定 データベースホスト :localhost データベース名 :moodle データベースユーザ :maria データベースパスワード :Sonoda@00 テーブル接頭辞 mdl_ データベースポート Unixソケット 5)インストレーション  確認 6)サーバチェック    xmlrpc soap が不足 apt install php-xmlrpc apt install php-soap systemctl restart apache2 6 rubyインストール 1)ツールインストール apt install build-essential git libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev 2)rbenvのインストール $ git clone https://github.com/rbenv/rbenv.git ~/.rbenv $ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile $ ~/.rbenv/bin/rbenv init # 出力される指示に従う $ source ~/.bash_profile cd $(dirname `which rbenv`) && git pull 3)rubyインストール rbenv install 2.6.5 7 Rocket.Chatのインストール(Snap) sudo snap install rocketchat-server 起動 http://mars.sonoda-u.ac.jp:3000 管理者 admin Sonoda@00 8 メールサーバ構築 1)postfixインストール sudo apt-get install -y postfix メール設定の一般形式: 設定なし <設定> cd /etc/postfix cp main.cf.proto main.cf main.cf を編集 78行目 コメント解除 #mail_owner = postfix  →  mail_owner = postfix 94行目 コメント解除 #myhostname = host.domain.tld  → myhostname = mail.mars.sonoda-u.ac.jp 102行目 #mydomain = domain.tld  →  mydomain = mars.sonoda-u.ac.jp 121行目 #myorigin = $myhostname  →  myorigin = $myhostname 136行目 #inet_interfaces = all  →  inet_interfaces = all 184行目 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain   →  mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain 227行目 #local_recipient_maps = unix:passwd.byname $alias_maps  →  local_recipient_maps = unix:passwd.byname $alias_maps 286行目 mynetworks = 127.0.0.0/8  →  mynetworks = 127.0.0.0/8,172.17.140.0/23 406行目 #alias_maps = hash:/etc/aliases  →  alias_maps = hash:/etc/aliases 417行目 #alias_database = hash:/etc/aliases  →  alias_database = hash:/etc/aliases 439行目 #home_mailbox = Maildir/  →  home_mailbox = Maildir/ 575行目 smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)  →  #smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_banner = $myhostname ESMTP 649行目 sendmail_path =  →  sendmail_path =/usr/sbin/postfix 654行目 newaliases_path =  →  newaliases_path =/usr/bin/newaliases 659行目 mailq_path =  →  mailq_path = /usr/bin/mailq 665行目 setgid_group =  →  setgid_group = postdrop 669行目 html_directory =  →  #html_directory = 673行目 manpage_directory =  →  #manpage_directory = 678行目 sample_directory =  →  #sample_directory = 682行目 readme_directory =  →  #readme_directory = # 最終行へ追記:送受信メールサイズを10Mに制限 message_size_limit = 10485760 # メールボックスサイズを1Gに制限 mailbox_size_limit = 1073741824 # 以下SMTP-Auth用 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject メールエイリアスのデータベースを再構築するために書きコマンドを実行します。 $ newaliases postfixを再起動 systemctl restart postfix mailコマンド設定 apt install mailutils