{"id":16499,"date":"2026-03-11T09:52:12","date_gmt":"2026-03-11T00:52:12","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=16499"},"modified":"2026-03-11T09:58:42","modified_gmt":"2026-03-11T00:58:42","slug":"windows-11-apache24-%e7%92%b0%e5%a2%83%e3%81%8c%e4%bb%8a%e3%82%82%e8%b5%b7%e5%8b%95%e3%81%a7%e3%81%8d%e3%82%8b%e3%81%8b%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=16499","title":{"rendered":"Windows 11 Apache24 \u74b0\u5883\u304c\u4eca\u3082\u8d77\u52d5\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u624b\u9806"},"content":{"rendered":"<p>Views: 3<\/p><div id=\"header\">\n<h1>Windows 11 Apache24 \u74b0\u5883\u304c\u4eca\u3082\u8d77\u52d5\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u624b\u9806<\/h1>\n<div class=\"details\">\n<span id=\"author\" class=\"author\">ChatGPT\uff08\u7de8\u96c6\uff1a\u4e09\u5206\u4e00\u4fe1\u4e4b\uff09<\/span><br \/>\n<span id=\"revdate\">2026-03-10<\/span>\n<\/div>\n<\/div>\n<div id=\"content\">\n<div class=\"sect1\">\n<h2 id=\"_1_apache_\u306e\u914d\u7f6e\u5834\u6240\u3092\u78ba\u8a8d\">1. Apache \u306e\u914d\u7f6e\u5834\u6240\u3092\u78ba\u8a8d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\u307e\u305a Apache24 \u306e\u3042\u308b\u5834\u6240\u3078\u79fb\u52d5\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Users\\nobuy&gt; cd \\Apache24\r\nPS C:\\Apache24&gt; Get-ChildItem C:\\ -Directory -Filter Apache*\r\n\r\n\r\n    \u30c7\u30a3\u30ec\u30af\u30c8\u30ea: C:\\\r\n\r\n\r\nMode                 LastWriteTime         Length Name\r\n----                 -------------         ------ ----\r\nd-----        2023\/07\/31     12:28                Apache24<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3082\u3057\u5834\u6240\u304c\u66d6\u6627\u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Get-ChildItem C:\\ -Directory -Filter Apache*<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_2_\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\">2. \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\u8d77\u52d5\u524d\u306b\u3001\u307e\u305a\u8a2d\u5b9a\u304c\u58ca\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u898b\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; .\\bin\\httpd.exe -t\r\nSyntax OK<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>Syntax OK<\/code> \u304c\u51fa\u308c\u3070\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u306f\u901a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3082\u3057 <code>httpd.conf<\/code> \u304c\u6a19\u6e96\u4f4d\u7f6e\u3067\u306a\u3044\u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; .\\bin\\httpd.exe -t -f \"C:\\Apache24\\conf\\httpd.conf\"\r\nSyntax OK<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_3_\u3069\u306e\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u8a2d\u5b9a\u304b\u78ba\u8a8d\">3. \u3069\u306e\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u8a2d\u5b9a\u304b\u78ba\u8a8d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p><code>Listen<\/code> \u306e\u8a2d\u5b9a\u3092\u898b\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; Select-String -Path .\\conf\\httpd.conf -Pattern \"^\\s*Listen\\s+\"\r\n\r\nconf\\httpd.conf:67:Listen 80<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u305f\u3068\u3048\u3070 <code>Listen 80<\/code> \u3084 <code>Listen 8080<\/code> \u304c\u898b\u3048\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_4_apache_\u3092\u8d77\u52d5\">4. Apache \u3092\u8d77\u52d5<\/h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u6e08\u307f\u306a\u3089\">\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u6e08\u307f\u306a\u3089<\/h3>\n<div class=\"paragraph\">\n<p>\u307e\u305a\u30b5\u30fc\u30d3\u30b9\u540d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; Get-Service *Apache*\r\n\r\nStatus   Name               DisplayName\r\n------   ----               -----------\r\nRunning  Apache2.4          Apache2.4<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3088\u304f\u3042\u308b\u540d\u524d\u306f <code>Apache2.4<\/code> \u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u8d77\u52d5\u306f\u305f\u3068\u3048\u3070\u3053\u3046\u3067\u3059\uff08\u7ba1\u7406\u8005\u3068\u3057\u3066PowerShell\u5b9f\u884c\uff09\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k start<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u307e\u305f\u306f\u30b5\u30fc\u30d3\u30b9\u540d\u3092\u660e\u793a\u3057\u3066:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k start -n \"Apache2.4\"<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u306a\u304f\u307e\u305a\u624b\u5143\u3067\u76f4\u63a5\u8d77\u52d5\u78ba\u8a8d\u3057\u305f\u3044\u306a\u3089\">\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u624b\u5143\u3067\u76f4\u63a5\u8d77\u52d5\u78ba\u8a8d\u3057\u305f\u3044\u306a\u3089<\/h3>\n<div class=\"paragraph\">\n<p>\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u78ba\u8a8d\u7528\u306b:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -X<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u306e\u5834\u5408\u3001\u5225\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u958b\u3044\u3066\u30d6\u30e9\u30a6\u30b6\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u7d42\u4e86\u306f <code>Ctrl + C<\/code> \u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_5_\u8d77\u52d5\u3067\u304d\u305f\u304b\u78ba\u8a8d\">5. \u8d77\u52d5\u3067\u304d\u305f\u304b\u78ba\u8a8d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_\u30d6\u30e9\u30a6\u30b6\">\u30d6\u30e9\u30a6\u30b6<\/h3>\n<div class=\"paragraph\">\n<p><code>Listen<\/code> \u304c 80 \u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>http:\/\/localhost\/<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>8080 \u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>http:\/\/localhost:8080\/<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_powershell\">PowerShell<\/h3>\n<div class=\"paragraph\">\n<p>HTTP \u5fdc\u7b54\u3092\u898b\u308b\u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; Invoke-WebRequest http:\/\/localhost\/ | Select-Object StatusCode\r\n\r\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8b66\u544a: \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u30ea\u30b9\u30af\r\nInvoke-WebRequest \u306f Web \u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u89e3\u6790\u3057\u307e\u3059\u3002Web \u30da\u30fc\u30b8\u5185\u306e\u30b9\u30af\u30ea\u30d7\u30c8\r\n\u30b3\u30fc\u30c9\u306f\u3001\u30da\u30fc\u30b8\u89e3\u6790\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\r\n      \u304a\u3059\u3059\u3081\u306e\u64cd\u4f5c:\r\n      -UseBasicParsing \u30b9\u30a4\u30c3\u30c1\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8 \u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u3092\u56de\u907f\u3057\u307e\u3059\u3002\r\n\r\n      \u7d9a\u884c\u3057\u307e\u3059\u304b?\r\n\r\n[Y] \u306f\u3044(Y)  [A] \u3059\u3079\u3066\u7d9a\u884c(A)  [N] \u3044\u3044\u3048(N)  [L] \u3059\u3079\u3066\u7121\u8996(L)  [S] \u4e2d\u65ad(S)  [?] \u30d8\u30eb\u30d7 (\u65e2\u5b9a\u5024\u306f \"N\"): Y\r\n\r\nStatusCode\r\n----------\r\n       200<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u307e\u305f\u306f 8080 \u306e\u5834\u5408:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Invoke-WebRequest http:\/\/localhost:8080\/ | Select-Object StatusCode<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><code>200<\/code> \u304c\u8fd4\u308c\u3070\u8d77\u52d5\u78ba\u8a8d\u306f\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_6_\u30dd\u30fc\u30c8\u5f85\u53d7\u3092\u78ba\u8a8d\">6. \u30dd\u30fc\u30c8\u5f85\u53d7\u3092\u78ba\u8a8d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>Apache \u304c\u672c\u5f53\u306b\u5f85\u53d7\u3057\u3066\u3044\u308b\u304b\u3092\u898b\u308b\u306b\u306f:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; netstat -ano | findstr :80\r\n  TCP         0.0.0.0:80             0.0.0.0:0              LISTENING       5856\r\n  TCP         192.168.0.8:51449      192.168.0.14:80        SYN_SENT        3032\r\n  TCP         192.168.0.8:59939      184.87.172.98:80       CLOSE_WAIT      2704\r\n  TCP         [::]:80                [::]:0                 LISTENING       5856\r\n  TCP         [240f:106:f857:1:d973:5ff1:a5a4:ba1f]:50161  [2404:6800:4004:800::2005]:443  ESTABLISHED     23728\r\n  UDP         [::]:49805             [2404:6800:4004:807::200a]:443                  23728\r\n  UDP         [::]:57586             [2404:6800:4004:80a::200e]:443                  23728\r\n  UDP         [::]:59607             [2404:6800:4004:80d::200a]:443                  23728<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>8080 \u306e\u5834\u5408:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>netstat -ano | findstr :8080<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_7_\u8d77\u52d5\u3057\u306a\u3044\u3068\u304d\u306f_error_log_\u3092\u78ba\u8a8d\">7. \u8d77\u52d5\u3057\u306a\u3044\u3068\u304d\u306f error.log \u3092\u78ba\u8a8d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\u3053\u3053\u304c\u3044\u3061\u3070\u3093\u91cd\u8981\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Get-Content .\\logs\\error.log -Tail 50<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u5178\u578b\u7684\u306a\u539f\u56e0\u306f\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>\u30dd\u30fc\u30c8\u7af6\u5408<\/p>\n<\/li>\n<li>\n<p><code>httpd.conf<\/code> \u306e\u30d1\u30b9\u8aa4\u308a<\/p>\n<\/li>\n<li>\n<p><code>LoadModule<\/code> \u306e\u53c2\u7167\u5148\u4e0d\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p><code>DocumentRoot<\/code> \u3084 <code>ScriptAlias<\/code> \u306e\u30d1\u30b9\u4e0d\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p>CGI \u7528\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u306e\u30d1\u30b9\u4e0d\u4e00\u81f4<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_8_cgi_\u307e\u3067\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\">8. CGI \u307e\u3067\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>CGI \u3082\u6709\u52b9\u306a\u3089\u3001\u307e\u305a <code>cgi-bin<\/code> \u306e\u5834\u6240\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\Apache24&gt; Select-String -Path .\\conf\\httpd.conf -Pattern \"ScriptAlias|ExecCGI|AddHandler\"\r\n\r\nconf\\httpd.conf:274:    Options +ExecCGI\r\nconf\\httpd.conf:379:    ScriptAlias \/cgi-bin\/ \"${SRVROOT}\/htdocs\/wu_wei\/server\/\"\r\nconf\\httpd.conf:398:    Options +ExecCGI\r\nconf\\httpd.conf:399:    AddHandler cgi-script .cgi .pl<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30c6\u30b9\u30c8\u7528 CGI \u3092 1 \u672c\u7f6e\u3044\u3066\u78ba\u8a8d\u3059\u308b\u306e\u304c\u65e9\u3044\u3067\u3059\u3002\u305f\u3068\u3048\u3070 <code>cgi-bin\/test.cgi<\/code> \u306b:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>#!C:\/Strawberry\/perl\/bin\/perl.exe\r\nprint \"Content-Type: text\/plain\\r\\n\\r\\n\";\r\nprint \"CGI OK\\n\";<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u305d\u306e\u3046\u3048\u3067:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>http:\/\/localhost\/cgi-bin\/test.cgi<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u307e\u305f\u306f 8080 \u306a\u3089:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>http:\/\/localhost:8080\/cgi-bin\/test.cgi<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3067 <code>CGI OK<\/code> \u304c\u51fa\u308c\u3070\u3001CGI \u307e\u3067\u901a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3042\u308b\u3044\u306f\u3001Perl\u306e\u3068\u304d\u306b\u306f\u3001<code>cgi-bin\/test.pl<\/code> \u306b:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>#!C:\/Strawberry\/perl\/bin\/perl.exe\r\nprint \"Content-Type: text\/plain\\r\\n\\r\\n\";\r\nprint \"Perl(CGI) OK\\n\";<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u305d\u306e\u3046\u3048\u3067:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>http:\/\/localhost\/cgi-bin\/test.pl<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3067 <code>Perl(CGI) OK<\/code> \u304c\u51fa\u308c\u3070\u3001Perl(CGI) \u307e\u3067\u901a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_9_\u8d77\u52d5\u505c\u6b62\">9. \u8d77\u52d5\u30fb\u505c\u6b62<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p><strong>\u7ba1\u7406\u8005<\/strong>\u3068\u3057\u3066PowerShell\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_apache_\u306e\u8d77\u52d5\">Apache \u306e\u8d77\u52d5<\/h3>\n<div class=\"paragraph\">\n<p>\u901a\u5e38\u8d77\u52d5\u306f\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k start<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30b5\u30fc\u30d3\u30b9\u540d\u3092\u660e\u793a\u3059\u308b\u306a\u3089\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k start -n \"Apache2.4\"<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306f\u6b21\u3067\u3059\u3002\u7d42\u4e86\u306f Ctrl + C \u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -X<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_apache_\u306e\u505c\u6b62\">Apache \u306e\u505c\u6b62<\/h3>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k stop<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30b5\u30fc\u30d3\u30b9\u540d\u3092\u660e\u793a\u3059\u308b\u306a\u3089\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k stop -n \"Apache2.4\"<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u518d\u8d77\u52d5\u306f\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>.\\bin\\httpd.exe -k restart<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_\u8d77\u52d5\u78ba\u8a8d\">\u8d77\u52d5\u78ba\u8a8d<\/h3>\n<div class=\"paragraph\">\n<p>80\u756a\u3067\u5f85\u53d7\u3057\u3066\u3044\u308b\u306a\u3089\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Invoke-WebRequest http:\/\/localhost\/ | Select-Object StatusCode<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>8080\u756a\u306a\u3089\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Invoke-WebRequest http:\/\/localhost:8080\/ | Select-Object StatusCode<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>StatusCode 200 \u306a\u3089 HTTP \u5fdc\u7b54\u306f\u901a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u898b\u308b\u306a\u3089\u6b21\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><a href=\"http:\/\/localhost\/\" class=\"bare\">http:\/\/localhost\/<\/a><\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><a href=\"http:\/\/localhost:8080\/\" class=\"bare\">http:\/\/localhost:8080\/<\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_\u5f85\u53d7\u78ba\u8a8d\">\u5f85\u53d7\u78ba\u8a8d<\/h3>\n<div class=\"paragraph\">\n<p>80\u756a\u30dd\u30fc\u30c8\u78ba\u8a8d:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>netstat -ano | findstr :80<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>8080\u756a\u30dd\u30fc\u30c8\u78ba\u8a8d:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>netstat -ano | findstr :8080<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30ed\u30b0\u78ba\u8a8d<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a8\u30e9\u30fc\u78ba\u8a8d:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Get-Content .\\logs\\error.log -Tail 50<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a2\u30af\u30bb\u30b9\u78ba\u8a8d:<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>Get-Content .\\logs\\access.log -Tail 50<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect2\">\n<h3 id=\"_\u81ea\u52d5\u8d77\u52d5\u958b\u59cb\u505c\u6b62\">\u81ea\u52d5\u8d77\u52d5\u958b\u59cb\u30fb\u505c\u6b62<\/h3>\n<div class=\"paragraph\">\n<p>\u958b\u59cb\uff1a<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\WINDOWS\\system32&gt; Set-Service -Name \"Apache2.4\" -StartupType Automatic\r\nPS C:\\WINDOWS\\system32&gt;<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u505c\u6b62\uff1a<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>PS C:\\WINDOWS\\system32&gt; Set-Service -Name \"Apache2.4\" -StartupType Manual\r\nPS C:\\WINDOWS\\system32&gt;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"footer\">\n<div id=\"footer-text\">\nLast updated 2026-03-11 09:57:32 +0900\n<\/div>\n<\/div>\n<div id=\"toc\" class=\"toc2\">\n<div id=\"toctitle\">Table of Contents<\/div>\n<ul class=\"sectlevel1\">\n<li><a href=\"#_1_apache_\u306e\u914d\u7f6e\u5834\u6240\u3092\u78ba\u8a8d\">1. Apache \u306e\u914d\u7f6e\u5834\u6240\u3092\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_2_\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af\">2. \u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u6587\u6cd5\u30c1\u30a7\u30c3\u30af<\/a><\/li>\n<li><a href=\"#_3_\u3069\u306e\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u8a2d\u5b9a\u304b\u78ba\u8a8d\">3. \u3069\u306e\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u8a2d\u5b9a\u304b\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_4_apache_\u3092\u8d77\u52d5\">4. Apache \u3092\u8d77\u52d5<\/a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u6e08\u307f\u306a\u3089\">\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u6e08\u307f\u306a\u3089<\/a><\/li>\n<li><a href=\"#_\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u306a\u304f\u307e\u305a\u624b\u5143\u3067\u76f4\u63a5\u8d77\u52d5\u78ba\u8a8d\u3057\u305f\u3044\u306a\u3089\">\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u306a\u304f\u3001\u307e\u305a\u624b\u5143\u3067\u76f4\u63a5\u8d77\u52d5\u78ba\u8a8d\u3057\u305f\u3044\u306a\u3089<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#_5_\u8d77\u52d5\u3067\u304d\u305f\u304b\u78ba\u8a8d\">5. \u8d77\u52d5\u3067\u304d\u305f\u304b\u78ba\u8a8d<\/a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_\u30d6\u30e9\u30a6\u30b6\">\u30d6\u30e9\u30a6\u30b6<\/a><\/li>\n<li><a href=\"#_powershell\">PowerShell<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#_6_\u30dd\u30fc\u30c8\u5f85\u53d7\u3092\u78ba\u8a8d\">6. \u30dd\u30fc\u30c8\u5f85\u53d7\u3092\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_7_\u8d77\u52d5\u3057\u306a\u3044\u3068\u304d\u306f_error_log_\u3092\u78ba\u8a8d\">7. \u8d77\u52d5\u3057\u306a\u3044\u3068\u304d\u306f error.log \u3092\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_8_cgi_\u307e\u3067\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\">8. CGI \u307e\u3067\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d<\/a><\/li>\n<li><a href=\"#_9_\u8d77\u52d5\u505c\u6b62\">9. \u8d77\u52d5\u30fb\u505c\u6b62<\/a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_apache_\u306e\u8d77\u52d5\">Apache \u306e\u8d77\u52d5<\/a><\/li>\n<li><a href=\"#_apache_\u306e\u505c\u6b62\">Apache \u306e\u505c\u6b62<\/a><\/li>\n<li><a href=\"#_\u8d77\u52d5\u78ba\u8a8d\">\u8d77\u52d5\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_\u5f85\u53d7\u78ba\u8a8d\">\u5f85\u53d7\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#_\u81ea\u52d5\u8d77\u52d5\u958b\u59cb\u505c\u6b62\">\u81ea\u52d5\u8d77\u52d5\u958b\u59cb\u30fb\u505c\u6b62<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Views: 3 Windows 11 Apache24 \u74b0\u5883\u304c\u4eca\u3082\u8d77\u52d5\u3067\u304d\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u624b\u9806 ChatGPT\uff08\u7de8\u96c6\uff1a\u4e09\u5206\u4e00\u4fe1\u4e4b\uff09 2026-03-10 1. Apache \u306e\u914d\u7f6e\u5834\u6240\u3092\u78ba\u8a8d \u307e\u305a Apache24 \u306e\u3042 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":16475,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11,83],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/16499"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16499"}],"version-history":[{"count":2,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/16499\/revisions"}],"predecessor-version":[{"id":16501,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/16499\/revisions\/16501"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/16475"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}