ページ内コンテンツ
Install of Apache-2.4
- OpenSSL 0.9.x 以上が必要
- OpenSSL1.1.0系は未対応なので注意(20170217現在)
- APR-1.3.0, APR-util-1.3.0 以上が必要
- 参考: http://www.netp.tuis.ac.jp/moodle21/course/view.php?id=7&page=Apache2.4
APR
- APR (Apache Portable Runtime): http://apr.apache.org/download.cgi
# ./configure --prefix=/usr/local/apr # make # make test # make install
pcre
# ./configure --prefix=/usr/local/pcre # make # make install # vi /etc/ld.so.conf /usr/local/pcre/lib
Apache
# ./configure --prefix=/usr/local/apache --enable-ssl --with-ssl=/usr/local/ssl \ --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr \ --enable-suexec --enable-auth-digest --enable-rewrite \ --enable-dav --enable-so --with-mpm=prefork # make # make install
- --enable-mods-shared=all でコンパイルした方がいい?
・起動スクリプト
# vi /usr/lib/systemd/system/apache.service [Unit] Description=httpd-2.4.25 daemon [Service] Type=forking ExecStart=/usr/local/apache/bin/apachectl start [Install] WantedBy=multi-user.target
・起動関連
起動・停止・自動起動 # systemctl start apache # systemctl stop apache # systemctl enable apache
Counter: 1465,
today: 1,
yesterday: 1
最終更新: 2017-02-18 (土) 13:06:46 (JST) (2794d) by macsatou