質問編集履歴

2

2020/06/07 10:30

投稿

panp
panp

スコア12

test CHANGED
File without changes
test CHANGED
@@ -66,7 +66,7 @@
66
66
 
67
67
  - Installing laravel/laravel (v6.4.0): Downloading (100%)
68
68
 
69
- Created project in /home/satoshi/laravel
69
+ Created project in /home/ユーザー名/laravel
70
70
 
71
71
  > @php -r "file_exists('.env') || copy('.env.example', '.env');"
72
72
 

1

a

2020/06/07 10:30

投稿

panp
panp

スコア12

test CHANGED
File without changes
test CHANGED
@@ -4,42 +4,212 @@
4
4
 
5
5
  さくらVPSでにlocalからsftp通信でプロジェクトファイルを一旦/var/www/html下にもってきました。
6
6
 
7
- このプロジェクトをさくらVPSで動かしたいのですが、ネットで調べても方針が分かりませんでした
7
+ このプロジェクトをさくらVPSで動かしたい。
8
8
 
9
9
  ネットではcomposerをダウンロード→Laravelをインストール→プロジェクトを作成
10
10
 
11
- の流れをよく目にしますが、私の場合すでにプロジェクトファイルを移動できているので、viewを表示するためにはどのようなステップをふめばよいのかご教授ください
11
+ の流れをよく目にしますが、私の場合すでにプロジェクトファイルを移動できている。
12
+
12
-
13
+ viewを表示するためにはどのようなステップをふめばよいのかご教授ください。
14
+
13
-
15
+ composerをダウンロード→Laravelをインストールの過程でエラーがでる。
16
+
17
+
18
+
14
-
19
+ ### 現状
20
+
15
-
21
+ http://ipアドレス/プロジェクト名/resources/views/ファイル名.blade.php
22
+
23
+ で調べるとコードがむきだしで表示されています。
24
+
25
+
26
+
27
+ ```ここに言語名を入力
28
+
29
+ @extends('layouts.reglog') @section('content') @if(count($errors)>0)
30
+
31
+ @foreach ($errors->all() as $error)
32
+
33
+ {{$error}}
34
+
35
+ @endforeach
36
+
37
+ @endif {{empty($e)?'':$e}}
38
+
39
+ @csrf
40
+
41
+ ```
16
42
 
17
43
  ### 発生している問題・エラーメッセージ
18
44
 
19
-
20
-
21
- http://ipアドレス/プロジェクト名/resources/views/ファイル名.blade.php
22
-
23
- で調べるとコードがむきだしで表示されています。
24
-
25
-
26
-
27
- ```ここに言語名を入力
28
-
29
- @extends('layouts.reglog') @section('content') @if(count($errors)>0)
30
-
31
- @foreach ($errors->all() as $error)
32
-
33
- {{$error}}
34
-
35
- @endforeach
36
-
37
- @endif {{empty($e)?'':$e}}
38
-
39
- @csrf
40
-
41
45
  ```
42
46
 
47
+ $ curl -sS https://getcomposer.org/installer | php
48
+
49
+ All settings correct for using Composer
50
+
51
+ Downloading...
52
+
53
+
54
+
55
+ Composer (version 1.10.7) successfully installed to: /home/ユーザー名/composer.phar
56
+
57
+ Use it: php composer.phar
58
+
59
+
60
+
61
+ $ php composer.phar create-project "laravel/laravel=6.4.*"
62
+
63
+ Creating a "laravel/laravel=6.4.*" project at "./laravel"
64
+
65
+ Installing laravel/laravel (v6.4.0)
66
+
67
+ - Installing laravel/laravel (v6.4.0): Downloading (100%)
68
+
69
+ Created project in /home/satoshi/laravel
70
+
71
+ > @php -r "file_exists('.env') || copy('.env.example', '.env');"
72
+
73
+ Loading composer repositories with package information
74
+
75
+ Updating dependencies (including require-dev)
76
+
77
+ Your requirements could not be resolved to an installable set of packages.
78
+
79
+
80
+
81
+ Problem 1
82
+
83
+ - phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
84
+
85
+ - phpunit/phpunit 8.5.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
86
+
87
+ - phpunit/phpunit 8.5.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
88
+
89
+ - phpunit/phpunit 8.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
90
+
91
+ - phpunit/phpunit 8.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
92
+
93
+ - phpunit/phpunit 8.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
94
+
95
+ - phpunit/phpunit 8.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
96
+
97
+ - phpunit/phpunit 8.4.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
98
+
99
+ - phpunit/phpunit 8.4.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
100
+
101
+ - phpunit/phpunit 8.4.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
102
+
103
+ - phpunit/phpunit 8.4.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
104
+
105
+ - phpunit/phpunit 8.3.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
106
+
107
+ - phpunit/phpunit 8.3.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
108
+
109
+ - phpunit/phpunit 8.3.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
110
+
111
+ - phpunit/phpunit 8.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
112
+
113
+ - phpunit/phpunit 8.3.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
114
+
115
+ - phpunit/phpunit 8.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
116
+
117
+ - phpunit/phpunit 8.2.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
118
+
119
+ - phpunit/phpunit 8.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
120
+
121
+ - phpunit/phpunit 8.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
122
+
123
+ - phpunit/phpunit 8.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
124
+
125
+ - phpunit/phpunit 8.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
126
+
127
+ - phpunit/phpunit 8.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
128
+
129
+ - phpunit/phpunit 8.1.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
130
+
131
+ - phpunit/phpunit 8.1.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
132
+
133
+ - phpunit/phpunit 8.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
134
+
135
+ - phpunit/phpunit 8.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
136
+
137
+ - phpunit/phpunit 8.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
138
+
139
+ - phpunit/phpunit 8.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
140
+
141
+ - phpunit/phpunit 8.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
142
+
143
+ - phpunit/phpunit 8.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.
144
+
145
+ - phpunit/phpunit 8.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.
146
+
147
+ - phpunit/phpunit 8.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.
148
+
149
+ - phpunit/phpunit 8.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
150
+
151
+ - phpunit/phpunit 8.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
152
+
153
+ - phpunit/phpunit 8.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
154
+
155
+ - phpunit/phpunit 8.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
156
+
157
+ - Installation request for phpunit/phpunit ^8.0 -> satisfiable by phpunit/phpunit[8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.1.0, 8.1.1, 8.1.2, 8.1.3, 8.1.4, 8.1.5, 8.1.6, 8.2.0, 8.2.1, 8.2.2, 8.2.3, 8.2.4, 8.2.5, 8.3.0, 8.3.1, 8.3.2, 8.3.3, 8.3.4, 8.3.5, 8.4.0, 8.4.1, 8.4.2, 8.4.3, 8.5.0, 8.5.1, 8.5.2, 8.5.3, 8.5.4, 8.5.5, 8.5.x-dev].
158
+
159
+
160
+
161
+ To enable extensions, verify that they are enabled in your .ini files:
162
+
163
+ - /etc/php.ini
164
+
165
+ - /etc/php.d/20-bz2.ini
166
+
167
+ - /etc/php.d/20-calendar.ini
168
+
169
+ - /etc/php.d/20-ctype.ini
170
+
171
+ - /etc/php.d/20-curl.ini
172
+
173
+ - /etc/php.d/20-exif.ini
174
+
175
+ - /etc/php.d/20-fileinfo.ini
176
+
177
+ - /etc/php.d/20-ftp.ini
178
+
179
+ - /etc/php.d/20-gd.ini
180
+
181
+ - /etc/php.d/20-gettext.ini
182
+
183
+ - /etc/php.d/20-iconv.ini
184
+
185
+ - /etc/php.d/20-json.ini
186
+
187
+ - /etc/php.d/20-mbstring.ini
188
+
189
+ - /etc/php.d/20-mysqlnd.ini
190
+
191
+ - /etc/php.d/20-pdo.ini
192
+
193
+ - /etc/php.d/20-phar.ini
194
+
195
+ - /etc/php.d/20-sockets.ini
196
+
197
+ - /etc/php.d/20-sodium.ini
198
+
199
+ - /etc/php.d/20-sqlite3.ini
200
+
201
+ - /etc/php.d/20-tokenizer.ini
202
+
203
+ - /etc/php.d/30-mysqli.ini
204
+
205
+ - /etc/php.d/30-pdo_mysql.ini
206
+
207
+ - /etc/php.d/30-pdo_sqlite.ini
208
+
209
+ You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
210
+
211
+ ```
212
+
43
213
 
44
214
 
45
215