- View the diff.
- View the source.
- Go to Apache/Install-2.4.
3: 2012-05-20 (Sun) 10:33:05 iseki | Cur: 2017-02-18 (Sat) 13:06:46 macsatou | ||
---|---|---|---|
Line 1: | Line 1: | ||
** Install of Apache-2.4 [#x4fe4530] | ** Install of Apache-2.4 [#x4fe4530] | ||
- [[OpenSSL 0.9.x>OpenSSL]] 以上が必要 | - [[OpenSSL 0.9.x>OpenSSL]] 以上が必要 | ||
+ | - OpenSSL1.1.0系は未対応なので注意(20170217現在) | ||
- APR-1.3.0, APR-util-1.3.0 以上が必要 | - APR-1.3.0, APR-util-1.3.0 以上が必要 | ||
- | - | + | - 参考: http://www.netp.tuis.ac.jp/moodle21/course/view.php?id=7&page=Apache2.4 |
#br | #br | ||
Line 20: | Line 21: | ||
# make install | # make install | ||
#br | #br | ||
+ | |||
+ | ***pcre [#rce43e82] | ||
+ | # ./configure --prefix=/usr/local/pcre | ||
+ | # make | ||
+ | # make install | ||
+ | # vi /etc/ld.so.conf | ||
+ | /usr/local/pcre/lib | ||
*** Apache [#j0ccfd74] | *** Apache [#j0ccfd74] | ||
- | # ./configure --enable-ssl --with-ssl=/usr/local/ssl \ | + | # ./configure --prefix=/usr/local/apache --enable-ssl --with-ssl=/usr/local/ssl \ |
- | --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr \ | + | --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr \ |
- | --enable-suexec --enable-auth-digest --enable-rewrite \ | + | --enable-suexec --enable-auth-digest --enable-rewrite \ |
- | --enable-dav --enable-so --prefix=/usr/local/apache | + | --enable-dav --enable-so --with-mpm=prefork |
# make | # make | ||
# make install | # 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 | ||
+ | |||
#br | #br |
- Backup list of Apache/Install-2.4
- Backup diff of Apache/Install-2.4 vs current(No. All)
- 1: 2012-03-27 (Tue) 14:28:54 iseki
- 2: 2012-03-27 (Tue) 14:42:01 iseki
- 3: 2012-05-20 (Sun) 10:33:05 iseki
- 4: 2012-05-27 (Sun) 21:02:33 iseki
- 5: 2016-03-22 (Tue) 16:51:00 iseki