現在、こちらの記事(https://miya-system-works.com/blog/detail/local-environment-wp-mac-mamp/)
を参考にローカル環境構築に挑戦しています。
手順通りに進めたつもりが「Wordpressにアクセス」の際に上手くいかず、
「Not Found The requested URL was not found on this server.」
という文字が表示されました。
それより少し前の手順で
/Application/MAMP/conf/apache/httpd.conf
にあるApacheの設定ファイルに追記するとありましたが、
編集の方法(設定ファイルの開き方)がわからず
Visual Studio Code-2を使って追記を行いました。
後から確認したところ、追記自体は行えているように思いますが、
これが表示ができない原因に関わるのでしょうか?
また、エラーコードログは以下の通りでしたが、
どのあたりが間違っているのか判断がつかないため記載させていただきます。
知識がまだまだ浅いため、教えていただくのに
足りない情報などがあるのかでさえわかりません、、、
何か不明点などあればコメントしていただけますと幸いです。
よろしくお願いいたします。
追記
アクセスログとエラーログです。
ポート番号をデフォルトから「8080」に変更したところ、
アクセスログにて200を返していることがわかりました。
それにあたり、Wordpressにアクセスした際に
「Not found」ではなく「Index of」の表示に変わりました。
参考サイトではWordpressのインストール画面に変わるとのことでしたが、
これは正常に動作しているのでしょうか?
apache_error.log 追記
1[Wed May 18 14:11:19.119027 2022] [mpm_prefork:notice] [pid 74309] AH00169: caught SIGTERM, shutting down 2[Wed May 18 14:11:28.311690 2022] [:notice] [pid 78132] FastCGI: process manager initialized (pid 78132) 3[Wed May 18 14:11:28.313894 2022] [mpm_prefork:notice] [pid 78128] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 4[Wed May 18 14:11:28.314354 2022] [core:notice] [pid 78128] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 5[Wed May 18 14:39:45.666880 2022] [mpm_prefork:notice] [pid 78128] AH00169: caught SIGTERM, shutting down 6[Wed May 18 14:40:47.296974 2022] [:notice] [pid 81974] FastCGI: process manager initialized (pid 81974) 7[Wed May 18 14:40:47.305741 2022] [mpm_prefork:notice] [pid 81969] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 8[Wed May 18 14:40:47.306268 2022] [core:notice] [pid 81969] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 9[Wed May 18 14:48:42.475719 2022] [mpm_prefork:notice] [pid 81969] AH00169: caught SIGTERM, shutting down 10[Wed May 18 14:48:59.769350 2022] [:notice] [pid 85408] FastCGI: process manager initialized (pid 85408) 11[Wed May 18 14:48:59.771951 2022] [mpm_prefork:notice] [pid 85405] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 12[Wed May 18 14:48:59.772618 2022] [core:notice] [pid 85405] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 13[Wed May 18 14:49:48.103396 2022] [mpm_prefork:notice] [pid 85405] AH00169: caught SIGTERM, shutting down 14[Wed May 18 14:50:55.480417 2022] [:notice] [pid 86264] FastCGI: process manager initialized (pid 86264) 15[Wed May 18 14:50:55.482688 2022] [mpm_prefork:notice] [pid 86261] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 16[Wed May 18 14:50:55.483277 2022] [core:notice] [pid 86261] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 17[Wed May 18 15:00:03.570099 2022] [mpm_prefork:notice] [pid 86261] AH00169: caught SIGTERM, shutting down 18[Wed May 18 15:29:06.764801 2022] [:notice] [pid 91550] FastCGI: process manager initialized (pid 91550) 19[Wed May 18 15:29:06.768300 2022] [mpm_prefork:notice] [pid 91547] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 20[Wed May 18 15:29:06.769332 2022] [core:notice] [pid 91547] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 21[Wed May 18 15:31:41.864729 2022] [mpm_prefork:notice] [pid 91547] AH00169: caught SIGTERM, shutting down 22[Wed May 18 15:31:49.878241 2022] [:notice] [pid 92961] FastCGI: process manager initialized (pid 92961) 23[Wed May 18 15:31:49.881646 2022] [mpm_prefork:notice] [pid 92956] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 24[Wed May 18 15:31:49.882163 2022] [core:notice] [pid 92956] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 25[Wed May 18 15:32:19.521398 2022] [mpm_prefork:notice] [pid 92956] AH00169: caught SIGTERM, shutting down 26[Wed May 18 15:36:25.788302 2022] [:notice] [pid 94859] FastCGI: process manager initialized (pid 94859) 27[Wed May 18 15:36:25.790774 2022] [mpm_prefork:notice] [pid 94855] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 28[Wed May 18 15:36:25.791347 2022] [core:notice] [pid 94855] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 29[Wed May 18 15:39:16.591798 2022] [mpm_prefork:notice] [pid 94855] AH00169: caught SIGTERM, shutting down 30[Wed May 18 15:42:24.505894 2022] [:notice] [pid 96812] FastCGI: process manager initialized (pid 96812) 31[Wed May 18 15:42:24.509232 2022] [mpm_prefork:notice] [pid 96807] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 32[Wed May 18 15:42:24.509984 2022] [core:notice] [pid 96807] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 33[Wed May 18 15:43:35.092360 2022] [mpm_prefork:notice] [pid 96807] AH00169: caught SIGTERM, shutting down 34[Wed May 18 15:44:22.412552 2022] [:notice] [pid 97918] FastCGI: process manager initialized (pid 97918) 35[Wed May 18 15:44:22.414693 2022] [mpm_prefork:notice] [pid 97915] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.21 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1 configured -- resuming normal operations 36[Wed May 18 15:44:22.415197 2022] [core:notice] [pid 97915] AH00094: Command line: '/Applications/MAMP/Library/bin/httpd' 37[Wed May 18 15:44:24.130821 2022] [authz_core:error] [pid 97920] [client ::1:57795] AH01630: client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store 38
spache_access.log 追記
1::1 - - [18/May/2022:13:37:31 +0900] "GET / HTTP/1.1" 200 205 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 2::1 - - [18/May/2022:13:37:32 +0900] "GET / HTTP/1.1" 200 205 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 3::1 - - [18/May/2022:13:37:33 +0900] "GET / HTTP/1.1" 200 205 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 4::1 - - [18/May/2022:14:04:09 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 5::1 - - [18/May/2022:14:04:09 +0900] "GET /favicon.ico HTTP/1.1" 200 1150 "http://localhost:50002/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 6::1 - - [18/May/2022:14:04:29 +0900] "-" 408 - "-" "-" 7::1 - - [18/May/2022:14:11:39 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 8::1 - - [18/May/2022:14:11:59 +0900] "-" 408 - "-" "-" 9::1 - - [18/May/2022:14:39:35 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 10::1 - - [18/May/2022:14:40:52 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 11 12文字数制限のため、中略 13 14::1 - - [18/May/2022:15:42:27 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 15::1 - - [18/May/2022:15:42:28 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 16::1 - - [18/May/2022:15:42:28 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 17::1 - - [18/May/2022:15:42:28 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 18::1 - - [18/May/2022:15:42:36 +0900] "GET / HTTP/1.1" 404 196 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 19::1 - - [18/May/2022:15:42:56 +0900] "-" 408 - "-" "-" 20::1 - - [18/May/2022:15:44:24 +0900] "GET / HTTP/1.1" 200 207 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36" 21::1 - - [18/May/2022:15:44:44 +0900] "-" 408 - "-" "-" 22::1 - - [18/May/2022:15:44:44 +0900] "-" 408 - "-" "-" 23
回答1件
あなたの回答
tips
プレビュー