回答編集履歴
2
細部の修正
test
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
$ make
|
60
60
|
|
61
|
-
$ make test
|
61
|
+
$ make test
|
62
62
|
|
63
63
|
$ sudo make install
|
64
64
|
|
@@ -100,8 +100,6 @@
|
|
100
100
|
|
101
101
|
apachectl checkgid envvars fcgistarter htdbm htpasswd httxt2dbm rotatelogs
|
102
102
|
|
103
|
-
$ sudo chmod 777 /usr/local/apache-2.4.29/logs
|
104
|
-
|
105
103
|
$ sudo /usr/local/apache-2.4.29/bin/apachectl start
|
106
104
|
|
107
105
|
$ curl -I http://localhost:80/
|
1
追記
test
CHANGED
@@ -1 +1,125 @@
|
|
1
1
|
`/usr/local/apache-2.4.29/bin/apachectl`が存在するのではないかと思います。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
追記:
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
試しに導入してみましたが、やはりパスは`/usr/local/apache-2.4.29/bin/apachectl`であるようです。
|
12
|
+
|
13
|
+
インストール手順の記載がありませんので、何をしたかを記載されると回答があるのではないかと思います。
|
14
|
+
|
15
|
+
ディストリビューションにより前提となるパッケージが変わるかと思いますので、事前の手順は記載を省略しています。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```text
|
20
|
+
|
21
|
+
$ cat /etc/lsb-release
|
22
|
+
|
23
|
+
DISTRIB_ID=Ubuntu
|
24
|
+
|
25
|
+
DISTRIB_RELEASE=17.04
|
26
|
+
|
27
|
+
DISTRIB_CODENAME=zesty
|
28
|
+
|
29
|
+
DISTRIB_DESCRIPTION="Ubuntu 17.04
|
30
|
+
|
31
|
+
$ uname -r
|
32
|
+
|
33
|
+
4.10.0-30-generic
|
34
|
+
|
35
|
+
$ wget http://ftp.tsukuba.wide.ad.jp/software/apache//apr/apr-1.6.3.tar.bz2
|
36
|
+
|
37
|
+
$ tar jxf apr-1.6.3.tar.bz2
|
38
|
+
|
39
|
+
$ cd apr-1.6.3/
|
40
|
+
|
41
|
+
$ ./configure --prefix=/usr/local/apr-1.6.3
|
42
|
+
|
43
|
+
$ make
|
44
|
+
|
45
|
+
$ make test
|
46
|
+
|
47
|
+
$ sudo make install
|
48
|
+
|
49
|
+
$ cd ..
|
50
|
+
|
51
|
+
$ wget http://ftp.yz.yamagata-u.ac.jp/pub/network/apache//apr/apr-util-1.6.1.tar.bz2
|
52
|
+
|
53
|
+
$ tar jxf apr-util-1.6.1.tar.bz2
|
54
|
+
|
55
|
+
$ cd apr-util-1.6.1/
|
56
|
+
|
57
|
+
$ ./configure --prefix=/usr/local/apr-util-1.6.1 --with-apr=/usr/local/apr-1.6.3
|
58
|
+
|
59
|
+
$ make
|
60
|
+
|
61
|
+
$ make test # failed
|
62
|
+
|
63
|
+
$ sudo make install
|
64
|
+
|
65
|
+
$ cd ..
|
66
|
+
|
67
|
+
$ wget https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.bz2
|
68
|
+
|
69
|
+
$ tar jxf pcre-8.41.tar.bz2
|
70
|
+
|
71
|
+
$ cd
|
72
|
+
|
73
|
+
$ make
|
74
|
+
|
75
|
+
$ make test
|
76
|
+
|
77
|
+
$ sudo make install
|
78
|
+
|
79
|
+
$ cd ..
|
80
|
+
|
81
|
+
$ wget http://ftp.riken.jp/net/apache//httpd/httpd-2.4.29.tar.bz2
|
82
|
+
|
83
|
+
$ tar jxf httpd-2.4.29.tar.bz2
|
84
|
+
|
85
|
+
$ cd httpd-2.4.29/
|
86
|
+
|
87
|
+
$ ./configure --prefix=/usr/local/apache-2.4.29 -with-apr=/usr/local/apr-1.6.3 --with-apr-util=/usr/local/apr-util-1.6.1 --with-pcre=/usr/local/pcre-8.41
|
88
|
+
|
89
|
+
$ make
|
90
|
+
|
91
|
+
$ sudo make install
|
92
|
+
|
93
|
+
$ ls /usr/local/apache-2.4.29
|
94
|
+
|
95
|
+
bin build cgi-bin conf error htdocs icons include logs man manual modules
|
96
|
+
|
97
|
+
$ ls /usr/local/apache-2.4.29/bin
|
98
|
+
|
99
|
+
ab apxs dbmmanage envvars-std htcacheclean htdigest httpd logresolve
|
100
|
+
|
101
|
+
apachectl checkgid envvars fcgistarter htdbm htpasswd httxt2dbm rotatelogs
|
102
|
+
|
103
|
+
$ sudo chmod 777 /usr/local/apache-2.4.29/logs
|
104
|
+
|
105
|
+
$ sudo /usr/local/apache-2.4.29/bin/apachectl start
|
106
|
+
|
107
|
+
$ curl -I http://localhost:80/
|
108
|
+
|
109
|
+
HTTP/1.1 200 OK
|
110
|
+
|
111
|
+
Date: Mon, 04 Dec 2017 01:39:19 GMT
|
112
|
+
|
113
|
+
Server: Apache/2.4.29 (Unix)
|
114
|
+
|
115
|
+
Last-Modified: Mon, 11 Jun 2007 18:53:14 GMT
|
116
|
+
|
117
|
+
ETag: "2d-432a5e4a73a80"
|
118
|
+
|
119
|
+
Accept-Ranges: bytes
|
120
|
+
|
121
|
+
Content-Length: 45
|
122
|
+
|
123
|
+
Content-Type: text/html
|
124
|
+
|
125
|
+
```
|