CONTENTS


Lastmodified 2023-11-02 (木) 10:38:43


FAMPサーバ・スクラッチインストール

本家サイトなどからインストールデータをダウンロード。

インストールメディア作成

FreeBSD をインストールする

ssh 接続

リモートから操作できる様に、/etc/ssh/ssh_config /etc/ssh/sshd_config の設定を変更・確認 以後の操作は、WinSCP と Putty で。

hosts.allow を設定変更する。

ports collection の更新

portupgrade のインストール

screenのインストール

起動メニュー待ち時間の短縮

コンソール上のログを採取

Apache

# portinstall apache24

mpm は、worker を選択

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

MariaDB

いつも悩むバージョン選び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

phpmyadmin5 をインストール

phpmyadmin の方は、Ver 4.9 と一個古いんだそうな。


Total access 282:本日 1:昨日 1

Counter: 282, today: 1, yesterday: 1

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS