#author("2023-10-13T09:35:57+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

* 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]]

*phpmyadmin5 をインストール [#q4883813]

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


----
Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);

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