WordPressを動かすにはhttpdが必要。
https://seesaawiki.jp/lifewithslackarmzaurus_15_0/d/HTML/CSS/JavaScript%a4%ce%ce%fd%bd%ac%20%bc%c2%c1%a9%20%bb%a8%c2%bf%a4%ca%b5%ad%cf%bf%a3%b4
PC/AT機にApacheをinstallして、まずはlocalhost接続することを考える。
今回はSlackのバイナリをそのまま使うのでページを割く必要はなさそうだが、その内やっぱ
makeするかとなるかもしれないのでここにメモっておく。
参考:https://seesaawiki.jp/lifewithslackzaurus/d/HTML/CSS/JavaScript%a4%ce%ce%fd%bd%ac%20local%20Web%a5%b5%a1%bc%a5%d0
$ sudo installpkg /mnt/card/slackware-14.2/slackware/l/db44-4.4.20-i486-3.txz
$ sudo installpkg /mnt/card/slackware-14.2/slackware/l/apr-1.5.2-i586-1.txz
$ sudo installpkg /mnt/card/slackware-14.2/slackware/l/apr-util-1.5.4-i586-2.txz
$ elvis http://ftp.kddilabs.jp/Linux/distributions/Slackware/slackware-14.2/source/l/apr-util/apr-util.SlackBuild
\CFLAGS=”$SLKCFLAGS” \
\./configure \
\ –prefix=/usr –libdir=/usr/lib${LIBDIRSUFFIX} –with-apr=/usr \
\ –with-dbm=db44 –with-berkeley-db –disable-util-dso –without-gdbm \
\ –with-ldap –disable-static –without-sqlite2 \
\ –build=$ARCH-slackware-linux
こりゃあ、makeし直しが必要か?
mariadbはmysqlコンパチAPIのようだから、–with-mysql=/usr が必要な気がするのだが。自動認識
するようになった?まあいいかとりあえずこのまま行く。
$ sudo installpkg /mnt/card/slackware-14.2/slackware/n/httpd-2.4.20-i586-1.txz
httpd(Apache)起動:
FC2の設定を予想してマネる:
localhostからローカルIPアドに変更し、グローバルIPアドにアクセスしてみる:
これは大分後からやってみる予定。念のために解約されても痛くないSIMでやってみるか。
参考情報:
berkeleydb apache、でググった:
berkeleydb を利用している apli、でググった:
https://ja.wikipedia.org/wiki/Berkeley_DB
アプリケーション組み込み型のデータベースライブラリである。
数多くのソフトウェアがBerkeley DBをバックエンドデータベース・ストレージとして現在または過去に採用している。
Bogofilter
GlusterFS
KDevelop
OpenLDAP
Spamassassin
Apache Subversion
RPM Package Manager
MySQL
\ バージョン5.1からはBerkeley DBのサポートを廃止した。
Movable Type
\ バージョン4.0からはBerkeley DBのサポートを廃止した。
https://www.oracle.com/jp/database/technologies/products/berkeleydb.html
Berkeley DBは、携帯電話からE-Commerceまで、さまざまな本番環境で17年以上にわたって使用されてきた信頼性の高いソリューションです。
(昔からあって古いが、SlackのApacheでは使いたい場合は使えるように、今でもdefで有効にして
\いる?と思ったら今でも使っているのか)
berkeleydb vs sqlite、でググった:
省略。
\
apr-utilのcurrent
http://ftp.kddilabs.jp/Linux/distributions/Slackware/slackware-current/source/l/apr-util/apr-util.SlackBuild
\./configure \
\ –prefix=/usr \
\ –libdir=/usr/lib${LIBDIRSUFFIX} \
\ –with-apr=/usr \
\ –with-dbm=db44 \
\ –with-berkeley-db \
\ –with-mysql=/usr \
\ –disable-util-dso \
\ –without-gdbm \
\ –with-ldap \
\ –without-sqlite2 \
\ –build=$ARCH-slackware-linux || exit 1
install時のメッセージ:
\# db4 (Berkeley database library version 4.4.x)
\# The Berkeley Database (Berkeley DB) library provides embedded database
\# support for both traditional and client/server applications.
\# This package should be installed if compatibility is needed with
\# databases created with the Berkeley DB version 4.4.x.
\
\# apr (Apache Portable Runtime)
\# The mission of the Apache Portable Runtime (APR) is to provide a
\# free library of C data structures and routines, forming a system
\# portability layer to as many operating systems as possible.
\
\# httpd (The Apache HTTP Server)
\# Apache is an HTTP server designed as a plug-in replacement for the
\# NCSA HTTP server. It fixes numerous bugs in the NCSA server and
\# includes many frequently requested new features, and has an API which
\# allows it to be extended to meet users’ needs more easily.
\# Apache is the most popular web server in the known universe; over
\# half of the servers on the Internet are running Apache or one of
\# its variants.