質問編集履歴
20
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -116,17 +116,21 @@
|
|
116
116
|
|
117
117
|
php
|
118
118
|
|
119
|
+
```
|
120
|
+
|
119
121
|
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
|
120
122
|
|
121
123
|
sudo yum install --enablerepo=remi,remi-php74 php php-devel php-mbstring php-pdo php-xml php-zip1
|
122
124
|
|
123
|
-
|
125
|
+
```
|
124
126
|
|
125
127
|
apache
|
126
128
|
|
129
|
+
```
|
130
|
+
|
127
131
|
sudo yum install httpd
|
128
132
|
|
129
|
-
|
133
|
+
```
|
130
134
|
|
131
135
|
composer install -vvvすると以下のような見慣れないエラー文句がでていました。
|
132
136
|
|
@@ -154,6 +158,8 @@
|
|
154
158
|
|
155
159
|
.htaccessの中身
|
156
160
|
|
161
|
+
```
|
162
|
+
|
157
163
|
<IfModule mod_rewrite.c>
|
158
164
|
|
159
165
|
<IfModule mod_negotiation.c>
|
@@ -198,10 +204,12 @@
|
|
198
204
|
|
199
205
|
</IfModule>
|
200
206
|
|
201
|
-
|
207
|
+
```
|
202
208
|
|
203
209
|
/etc/httpd/conf/httpd.conf
|
204
210
|
|
211
|
+
```
|
212
|
+
|
205
213
|
<Directory "/var/www/html">
|
206
214
|
|
207
215
|
コメントアウト
|
@@ -255,3 +263,5 @@
|
|
255
263
|
Require all granted
|
256
264
|
|
257
265
|
</Directory>
|
266
|
+
|
267
|
+
```
|
19
/etc/httpd/conf/httpd.conf
test
CHANGED
File without changes
|
test
CHANGED
@@ -197,3 +197,61 @@
|
|
197
197
|
RewriteRule ^ index.php [L]
|
198
198
|
|
199
199
|
</IfModule>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
/etc/httpd/conf/httpd.conf
|
204
|
+
|
205
|
+
<Directory "/var/www/html">
|
206
|
+
|
207
|
+
コメントアウト
|
208
|
+
|
209
|
+
コメントアウト Possible values for the Options directive are "None", "All",
|
210
|
+
|
211
|
+
コメントアウト or any combination of:
|
212
|
+
|
213
|
+
コメントアウト Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
|
214
|
+
|
215
|
+
コメントアウト
|
216
|
+
|
217
|
+
コメントアウト Note that "MultiViews" must be named *explicitly* --- "Options All"
|
218
|
+
|
219
|
+
コメントアウト doesn't give it to you.
|
220
|
+
|
221
|
+
コメントアウト
|
222
|
+
|
223
|
+
コメントアウト The Options directive is both complicated and important. Please see
|
224
|
+
|
225
|
+
コメントアウト http://httpd.apache.org/docs/2.4/mod/core.html#options
|
226
|
+
|
227
|
+
コメントアウト for more information.
|
228
|
+
|
229
|
+
コメントアウト
|
230
|
+
|
231
|
+
Options Indexes FollowSymLinks
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
コメントアウト
|
236
|
+
|
237
|
+
コメントアウト AllowOverride controls what directives may be placed in .htaccess files.
|
238
|
+
|
239
|
+
コメントアウト It can be "All", "None", or any combination of the keywords:
|
240
|
+
|
241
|
+
コメントアウト Options FileInfo AuthConfig Limit
|
242
|
+
|
243
|
+
コメントアウト
|
244
|
+
|
245
|
+
AllowOverride None
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
コメントアウト
|
250
|
+
|
251
|
+
コメントアウト Controls who can get stuff from this server.
|
252
|
+
|
253
|
+
コメントアウト
|
254
|
+
|
255
|
+
Require all granted
|
256
|
+
|
257
|
+
</Directory>
|
18
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -156,11 +156,11 @@
|
|
156
156
|
|
157
157
|
<IfModule mod_rewrite.c>
|
158
158
|
|
159
|
-
|
159
|
+
<IfModule mod_negotiation.c>
|
160
160
|
|
161
|
-
|
161
|
+
コメントアウトOptions -MultiViews -Indexes
|
162
162
|
|
163
|
-
|
163
|
+
</IfModule>
|
164
164
|
|
165
165
|
|
166
166
|
|
@@ -170,7 +170,7 @@
|
|
170
170
|
|
171
171
|
|
172
172
|
|
173
|
-
|
173
|
+
コメントアウト Handle Authorization Header
|
174
174
|
|
175
175
|
RewriteCond %{HTTP:Authorization} .
|
176
176
|
|
@@ -178,7 +178,7 @@
|
|
178
178
|
|
179
179
|
|
180
180
|
|
181
|
-
|
181
|
+
コメントアウト Redirect Trailing Slashes If Not A Folder...
|
182
182
|
|
183
183
|
RewriteCond %{REQUEST_FILENAME} !-d
|
184
184
|
|
@@ -188,7 +188,7 @@
|
|
188
188
|
|
189
189
|
|
190
190
|
|
191
|
-
|
191
|
+
コメントアウト Handle Front Controller...
|
192
192
|
|
193
193
|
RewriteCond %{REQUEST_FILENAME} !-d
|
194
194
|
|
17
,htaccess
test
CHANGED
File without changes
|
test
CHANGED
@@ -152,16 +152,48 @@
|
|
152
152
|
|
153
153
|
|
154
154
|
|
155
|
-
c
|
155
|
+
.htaccessの中身
|
156
156
|
|
157
|
-
|
157
|
+
<IfModule mod_rewrite.c>
|
158
158
|
|
159
|
-
|
159
|
+
#<IfModule mod_negotiation.c>
|
160
160
|
|
161
|
-
|
161
|
+
# Options -MultiViews -Indexes
|
162
162
|
|
163
|
-
|
163
|
+
#</IfModule>
|
164
164
|
|
165
|
-
"laravel/tinker": "^1.0"
|
166
165
|
|
166
|
+
|
167
|
-
|
167
|
+
RewriteEngine On
|
168
|
+
|
169
|
+
RewriteBase /
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
# Handle Authorization Header
|
174
|
+
|
175
|
+
RewriteCond %{HTTP:Authorization} .
|
176
|
+
|
177
|
+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
# Redirect Trailing Slashes If Not A Folder...
|
182
|
+
|
183
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
184
|
+
|
185
|
+
RewriteCond %{REQUEST_URI} (.+)/$
|
186
|
+
|
187
|
+
RewriteRule ^ %1 [L,R=301]
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
# Handle Front Controller...
|
192
|
+
|
193
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
194
|
+
|
195
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
196
|
+
|
197
|
+
RewriteRule ^ index.php [L]
|
198
|
+
|
199
|
+
</IfModule>
|
16
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -69,18 +69,6 @@
|
|
69
69
|
|
70
70
|
|
71
71
|
### 試したこと
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
ディレクトリ構成が間違えている?
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
権限
|
80
|
-
|
81
|
-
/home/ユーザー/laravel/newpro(prioect名)
|
82
|
-
|
83
|
-
drwxr-xr-x 12 ユーザー名 ユーザー名 4096 Jun 13 16:19 newpro
|
84
72
|
|
85
73
|
|
86
74
|
|
15
composer.json
test
CHANGED
File without changes
|
test
CHANGED
@@ -161,3 +161,19 @@
|
|
161
161
|
Resolving dependencies through SAT
|
162
162
|
|
163
163
|
Looking at all rules.
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
composer.json さくらにインストールしたphpのバージョンが7.4であることが原因か?
|
168
|
+
|
169
|
+
"require": {
|
170
|
+
|
171
|
+
"php": "^7.2",
|
172
|
+
|
173
|
+
"fideloper/proxy": "^4.0",
|
174
|
+
|
175
|
+
"laravel/framework": "^6.2",
|
176
|
+
|
177
|
+
"laravel/tinker": "^1.0"
|
178
|
+
|
179
|
+
},
|
14
composer
test
CHANGED
File without changes
|
test
CHANGED
@@ -137,3 +137,27 @@
|
|
137
137
|
apache
|
138
138
|
|
139
139
|
sudo yum install httpd
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
composer install -vvvすると以下のような見慣れないエラー文句がでていました。
|
144
|
+
|
145
|
+
Failed to initialize global composer: Composer could not find the config file: /home/satoshi/.config/composer/composer.json
|
146
|
+
|
147
|
+
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
|
148
|
+
|
149
|
+
Reading /home/satoshi/laravel/newpro/vendor/composer/installed.json
|
150
|
+
|
151
|
+
Running 1.10.7 (2020-06-03 10:03:56) with PHP 7.4.7 on Linux / 3.10.0-1127.8.2.el7.x86_64
|
152
|
+
|
153
|
+
Reading ./composer.lock
|
154
|
+
|
155
|
+
Loading composer repositories with package information
|
156
|
+
|
157
|
+
Installing dependencies (including require-dev) from lock file
|
158
|
+
|
159
|
+
Reading ./composer.lock
|
160
|
+
|
161
|
+
Resolving dependencies through SAT
|
162
|
+
|
163
|
+
Looking at all rules.
|
13
composer
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
12
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
### 発生している問題・エラーメッセージ
|
22
22
|
|
23
|
-
http://ipアドレス/newpro
|
23
|
+
http://ipアドレス/newpro/index.php と検索しても以下のエラーがでる
|
24
24
|
|
25
25
|
```
|
26
26
|
|
11
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,23 +66,7 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
-
http://160.16.218.27/newpro/public/index.php
|
70
69
|
|
71
|
-
で検索したときのapacheのエラー
|
72
|
-
|
73
|
-
```
|
74
|
-
|
75
|
-
[Sun Jun 14 20:09:29.839451 2020] [mpm_prefork:notice] [pid 14640] AH00170: caught SIGWINCH, shutting down gracefully
|
76
|
-
|
77
|
-
[Sun Jun 14 20:09:30.935771 2020] [suexec:notice] [pid 16610] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
|
78
|
-
|
79
|
-
[Sun Jun 14 20:09:30.963726 2020] [lbmethod_heartbeat:notice] [pid 16610] AH02282: No slotmem from mod_heartmonitor
|
80
|
-
|
81
|
-
[Sun Jun 14 20:09:30.995879 2020] [mpm_prefork:notice] [pid 16610] AH00163: Apache/2.4.6 (CentOS) PHP/7.4.7 configured -- resuming normal operations
|
82
|
-
|
83
|
-
[Sun Jun 14 20:09:30.995914 2020] [core:notice] [pid 16610] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
|
84
|
-
|
85
|
-
```
|
86
70
|
|
87
71
|
### 試したこと
|
88
72
|
|
10
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,6 +70,8 @@
|
|
70
70
|
|
71
71
|
で検索したときのapacheのエラー
|
72
72
|
|
73
|
+
```
|
74
|
+
|
73
75
|
[Sun Jun 14 20:09:29.839451 2020] [mpm_prefork:notice] [pid 14640] AH00170: caught SIGWINCH, shutting down gracefully
|
74
76
|
|
75
77
|
[Sun Jun 14 20:09:30.935771 2020] [suexec:notice] [pid 16610] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
|
@@ -80,7 +82,7 @@
|
|
80
82
|
|
81
83
|
[Sun Jun 14 20:09:30.995914 2020] [core:notice] [pid 16610] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
|
82
84
|
|
83
|
-
|
85
|
+
```
|
84
86
|
|
85
87
|
### 試したこと
|
86
88
|
|
9
http://160.16.218.27/newpro/public/index.phpのエラー
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,7 +66,19 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
+
http://160.16.218.27/newpro/public/index.php
|
69
70
|
|
71
|
+
で検索したときのapacheのエラー
|
72
|
+
|
73
|
+
[Sun Jun 14 20:09:29.839451 2020] [mpm_prefork:notice] [pid 14640] AH00170: caught SIGWINCH, shutting down gracefully
|
74
|
+
|
75
|
+
[Sun Jun 14 20:09:30.935771 2020] [suexec:notice] [pid 16610] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
|
76
|
+
|
77
|
+
[Sun Jun 14 20:09:30.963726 2020] [lbmethod_heartbeat:notice] [pid 16610] AH02282: No slotmem from mod_heartmonitor
|
78
|
+
|
79
|
+
[Sun Jun 14 20:09:30.995879 2020] [mpm_prefork:notice] [pid 16610] AH00163: Apache/2.4.6 (CentOS) PHP/7.4.7 configured -- resuming normal operations
|
80
|
+
|
81
|
+
[Sun Jun 14 20:09:30.995914 2020] [core:notice] [pid 16610] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
|
70
82
|
|
71
83
|
|
72
84
|
|
8
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,6 +84,8 @@
|
|
84
84
|
|
85
85
|
drwxr-xr-x 12 ユーザー名 ユーザー名 4096 Jun 13 16:19 newpro
|
86
86
|
|
87
|
+
|
88
|
+
|
87
89
|
/var/www/html/newpro
|
88
90
|
|
89
91
|
drwxrwxr-x 5 apache webgroup 4096 Jun 13 17:08 .
|
7
php apacheのインストール方法
test
CHANGED
File without changes
|
test
CHANGED
@@ -122,7 +122,7 @@
|
|
122
122
|
|
123
123
|
### 補足情報(FW/ツールのバージョンなど)
|
124
124
|
|
125
|
-
centOS Apache php7.4
|
125
|
+
centOS7 Apache2.4 php7.4
|
126
126
|
|
127
127
|
|
128
128
|
|
@@ -131,3 +131,9 @@
|
|
131
131
|
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
|
132
132
|
|
133
133
|
sudo yum install --enablerepo=remi,remi-php74 php php-devel php-mbstring php-pdo php-xml php-zip1
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
apache
|
138
|
+
|
139
|
+
sudo yum install httpd
|
6
php
test
CHANGED
File without changes
|
test
CHANGED
@@ -123,3 +123,11 @@
|
|
123
123
|
### 補足情報(FW/ツールのバージョンなど)
|
124
124
|
|
125
125
|
centOS Apache php7.4
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
php
|
130
|
+
|
131
|
+
sudo yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
|
132
|
+
|
133
|
+
sudo yum install --enablerepo=remi,remi-php74 php php-devel php-mbstring php-pdo php-xml php-zip1
|
5
.envの情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,6 +106,20 @@
|
|
106
106
|
|
107
107
|
|
108
108
|
|
109
|
+
.env
|
110
|
+
|
111
|
+
APP_NAME=Laravel
|
112
|
+
|
113
|
+
APP_ENV=production
|
114
|
+
|
115
|
+
APP_KEY=base64:4ZdzcXWTRzssKtBKzF44uqLwvXG4fHVwX7JdDJ5RUI8=
|
116
|
+
|
117
|
+
APP_DEBUG=false
|
118
|
+
|
119
|
+
APP_URL=http://160.16.218.27
|
120
|
+
|
121
|
+
|
122
|
+
|
109
123
|
### 補足情報(FW/ツールのバージョンなど)
|
110
124
|
|
111
125
|
centOS Apache php7.4
|
4
a
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,10 @@
|
|
11
11
|
とりあえず、viewのn_user_log.blade.php
|
12
12
|
|
13
13
|
というログイン画面だけでも表示させたい。mysqlはまだ設定していない。
|
14
|
+
|
15
|
+
/home/ユーザー/laravel/newpro(prioect名)にプロジェクトがあり、
|
16
|
+
|
17
|
+
/var/www/html/newproにpublicの中身をコピーした。参考にしたQiitaどおりである。
|
14
18
|
|
15
19
|
|
16
20
|
|
@@ -36,15 +40,33 @@
|
|
36
40
|
|
37
41
|
/var/www/html/newpro/index.phpの24行目は以下です。
|
38
42
|
|
43
|
+
```
|
44
|
+
|
39
45
|
require __DIR__.'/../../laravel/newpro/vendor/autoload.php';
|
40
46
|
|
41
|
-
|
47
|
+
```
|
42
48
|
|
43
49
|
|
44
50
|
|
45
|
-
|
51
|
+
laravel/newpro/vendor/autoload.phpの中身は以下です。
|
46
52
|
|
53
|
+
```
|
54
|
+
|
55
|
+
// autoload.php @generated by Composer
|
56
|
+
|
57
|
+
|
58
|
+
|
47
|
-
/
|
59
|
+
require_once __DIR__ . '/composer/autoload_real.php';
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
return ComposerAutoloaderInit10a0efddbedf8959c8df19c82f98907d::getLoader();
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
48
70
|
|
49
71
|
|
50
72
|
|
@@ -53,6 +75,8 @@
|
|
53
75
|
|
54
76
|
|
55
77
|
ディレクトリ構成が間違えている?
|
78
|
+
|
79
|
+
|
56
80
|
|
57
81
|
権限
|
58
82
|
|
3
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,13 +32,11 @@
|
|
32
32
|
|
33
33
|
[Sat Jun 13 16:19:34.426516 2020] [php7:error] [pid 14648] [client 180.0.139.63:59861] PHP Fatal error: require(): Failed opening required '/var/www/html/newpro/../../laravel/newpro/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/newpro/index.php on line 24
|
34
34
|
|
35
|
-
|
35
|
+
```
|
36
36
|
|
37
37
|
/var/www/html/newpro/index.phpの24行目は以下です。
|
38
38
|
|
39
39
|
require __DIR__.'/../../laravel/newpro/vendor/autoload.php';
|
40
|
-
|
41
|
-
```
|
42
40
|
|
43
41
|
### 該当のソースコード
|
44
42
|
|
2
あ
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,6 +33,10 @@
|
|
33
33
|
[Sat Jun 13 16:19:34.426516 2020] [php7:error] [pid 14648] [client 180.0.139.63:59861] PHP Fatal error: require(): Failed opening required '/var/www/html/newpro/../../laravel/newpro/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/newpro/index.php on line 24
|
34
34
|
|
35
35
|
|
36
|
+
|
37
|
+
/var/www/html/newpro/index.phpの24行目は以下です。
|
38
|
+
|
39
|
+
require __DIR__.'/../../laravel/newpro/vendor/autoload.php';
|
36
40
|
|
37
41
|
```
|
38
42
|
|
1
kenngenn
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
/home/ユーザー/laravel/newpro(pri
|
43
|
+
/home/ユーザー/laravel/newpro(prioect名)にプロジェクトがあり、
|
44
44
|
|
45
45
|
/var/www/html/newproにpublicの中身をコピーした。参考にしたQiitaどおりである。
|
46
46
|
|
@@ -52,6 +52,32 @@
|
|
52
52
|
|
53
53
|
ディレクトリ構成が間違えている?
|
54
54
|
|
55
|
+
権限
|
56
|
+
|
57
|
+
/home/ユーザー/laravel/newpro(prioect名)
|
58
|
+
|
59
|
+
drwxr-xr-x 12 ユーザー名 ユーザー名 4096 Jun 13 16:19 newpro
|
60
|
+
|
61
|
+
/var/www/html/newpro
|
62
|
+
|
63
|
+
drwxrwxr-x 5 apache webgroup 4096 Jun 13 17:08 .
|
64
|
+
|
65
|
+
drwxrwxr-x 3 apache webgroup 4096 Jun 13 16:11 ..
|
66
|
+
|
67
|
+
-rwxrwxr-x 1 ユーザー名 ユーザー名 596 Jun 13 15:03 .htaccess
|
68
|
+
|
69
|
+
drwxrwxr-x 2 ユーザー名 ユーザー名 4096 Jun 13 14:39 css
|
70
|
+
|
71
|
+
-rwxrwxr-x 1 ユーザー名 ユーザー名 0 Jun 13 14:39 favicon.ico
|
72
|
+
|
73
|
+
-rwxrwxr-x 1 ユーザー名 ユーザー名 1859 Jun 13 14:41 index.php
|
74
|
+
|
75
|
+
drwxrwxr-x 2 ユーザー名 ユーザー名 4096 Jun 13 14:39 js
|
76
|
+
|
77
|
+
-rwxrwxr-x 1 ユーザー名 ユーザー名 24 Jun 13 14:39 robots.txt
|
78
|
+
|
79
|
+
drwxrwxr-x 2 ユーザー名 ユーザー名 4096 Jun 13 14:39 storage
|
80
|
+
|
55
81
|
|
56
82
|
|
57
83
|
### 補足情報(FW/ツールのバージョンなど)
|