- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2023-10-16T14:10:10+09:00","default:kuji","kuji")
#author("2023-10-17T08:38:16+09:00","default:kuji","kuji")
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*FAMPサーバ・スクラッチインストール [#nc2be2b5]
**[[本家サイト:https://www.freebsd.org/ja/where/]]などからインストールデータをダウンロード。 [#f99becdc]
**インストールメディア作成 [#bac55614]
**FreeBSD をインストールする [#w88a3cc0]
* ssh 接続 [#j4f510aa]
リモートから操作できる様に、/etc/ssh/ssh_config /etc/ssh/sshd_config の設定を変更・確認 以後の操作は、WinSCP と Putty で。
hosts.allow を設定変更する。
**[[ports collection の更新]] [#n0e43ab6]
**[[portupgrade のインストール]] [#u1546846]
**[[screen]]のインストール [#x242bbcf]
***[[起動メニュー待ち時間]]の短縮 [#dbbe3ff8]
***[[コンソール上のログを採取]] [#a322298a]
* Apache [#t27f2dc4]
# portinstall apache24
mpm は、worker を選択~
&ref(Apache_mpm.PNG);
依存関係の ftp/curl インストールでエラー
# portinstall apache24
: :
: :
===> curl-8.4.0 has known vulnerabilities:
curl-8.4.0 is vulnerable:
curl -- SOCKS5 heap buffer overflow
CVE: CVE-2023-38545
WWW: https://vuxml.FreeBSD.org/freebsd/d6c19e8c-6806-11ee-9464-b42e991fc52e.html
1 problem(s) in 1 installed package(s) found.
=> Please update your ports tree and try again.
=> Note: Vulnerable ports are marked as such even if there is no update available.
=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/ftp/curl
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/ftp/curl
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/www/apache24
*** Error code 1
Stop.
make: stopped in /usr/ports/www/apache24
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20231012-25064-pczfy5 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/apache24 (new compiler error)
という事の様なので、
root@k214:~ # portinstall -m "DISABLE_VULNERABILITIES=yes" ftp/curl
[Reading data from pkg(8) ... - 92 packages found - done]
の後、再び
# portinstall apache24
した。
Apache24 起動用コマンドを書き込む
echo apache24_enable=\"yes\" >> /etc/rc.conf
**[[SSL]]サーバー証明書 [#ia497be3]
portinstall security/py-certbot
* MariaDB [#j3956ed2]
いつも悩むバージョン選びw
drwxr-xr-x 2 root wheel 512 Oct 10 15:57 mariadb-connector-odbc/
drwxr-xr-x 2 root wheel 512 Oct 10 15:57 mariadb1011-client/
drwxr-xr-x 3 root wheel 512 Oct 12 03:25 mariadb1011-server/
drwxr-xr-x 2 root wheel 512 Oct 10 15:57 mariadb105-client/
drwxr-xr-x 3 root wheel 512 Oct 10 15:57 mariadb105-server/
drwxr-xr-x 2 root wheel 512 Oct 10 15:57 mariadb106-client/
drwxr-xr-x 3 root wheel 512 Oct 10 15:57 mariadb106-server/
今回はこれで↓
# portinstall mariadb106-client
# portinstall mariadb106-server
コレですが、 mariadb106-server のほうから先に入れると、client は自動的に入るんだそうなw
[[mariadb105]]
**[[phpmyadmin]]5 をインストール [#q4883813]
phpmyadmin の方は、Ver 4.9 と一個古いんだそうな。Ports で入れるも佳し、本家 https://www.phpmyadmin.net/ からダウンロードするも佳し。
*[[Postfix]] install [#mea3b547]
*Mailman [#w66d2ace]
[[Mailman-2.1.14+j7スクラッチインストール]]
189 16:15 cd /usr/ports/mail/mailman
190 16:15 make install clean
196 16:26 chown -R mailman:mailman /usr/local/mailman/
199 16:27 /usr/local/mailman/bin/check_perms -f
200 16:27 chown www /usr/local/mailman/archives/private
201 16:27 chmod o-x /usr/local/mailman/archives/private
202 16:27 bin/check_perms -f
No problems found
** /usr/local/mailman/Mailman/mm_cfg.py を設定 [#ydfed54d]
# Put YOUR site-specific settings below this line.
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_EMAIL_HOST="k214.kuji-clinic.net"
DEFAULT_URL_HOST="k214.kuji-clinic.net"
MTA = 'Postfix'
USE_MAILMAN_MESSAGE_ID = Yes
"SMTPHOST = k214.kuji-clinic.net"
MTA = 'Postfix'
DEFAULT_SUBJECT_PREFIX = '[%(real_name)s:%%d]'
# This and the next three lines added by FreeBSD's post-install script
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = yes
203 16:29 /usr/local/etc/rc.d/mailman start
210 16:45 bin/newlist mailman
230 17:38 bin/mmsitepass サイトパスワードを変更する
231 17:39 service mailman restart
----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);