{"id":7224,"date":"2019-06-27T10:00:58","date_gmt":"2019-06-27T01:00:58","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=7224"},"modified":"2019-06-25T15:25:59","modified_gmt":"2019-06-25T06:25:59","slug":"%e8%a4%87%e6%95%b0%e3%81%aephp%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%82%92%e5%90%8c%e6%99%82%e6%a4%9c%e8%a8%bc%e3%81%99%e3%82%8b%e9%9a%9b%e3%81%aeport%e5%88%87%e3%82%8a%e5%88%86","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/7224","title":{"rendered":"\u8907\u6570\u306ePHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u540c\u6642\u691c\u8a3c\u3059\u308b\u969b\u306ePORT\u5207\u308a\u5206\u3051\u65b9\u6cd5"},"content":{"rendered":"\n<p>XAMPP\u306a\u3069\u3067\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u691c\u8a3c\u3092\u304a\u3053\u306a\u3046\u969b\u306b\u3001htdocs\u5185\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6bce\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5207\u308a\u5206\u3051\u308b\u306e\u304c\u4e00\u822c\u7684\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u3001\u691c\u8a3c\u7528URL\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4f8b\uff09<br> http:\/\/localhost\/projectA\/<br> http:\/\/localhost\/projectB\/<br> http:\/\/localhost\/projectC\/<\/p>\n\n\n\n<p>\u691c\u8a3c\u7528URL\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u304c\u8ffd\u52a0\u3057\u306a\u3044\u3067\u3001\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u691c\u8a3c\u3092\u304a\u3053\u306a\u3046\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p><br> \u305d\u306e\u5834\u5408\u3001PORT\u306e\u5207\u308a\u66ff\u3048\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3092\u5207\u308a\u5206\u3051\u308b\u3068\u3044\u3063\u305f\u65b9\u6cd5\u304c\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\uff1aprojectA\u306e\u5834\u5408:<br>\nhttp:\/\/localhost:8001\/<\/p>\n\n\n\n<p> \u4f8b\uff1aprojectB\u306e\u5834\u5408:<br> http:\/\/localhost:8002\/ <\/p>\n\n\n\n<p>\u4f8b\uff1aprojectC\u306e\u5834\u5408:<br> http:\/\/localhost:8003\/<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3046\u306b\u306f\u3001Apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u300c httpd-vhosts.conf \u300d\u306e\u66f8\u304d\u63db\u3048\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p> <br>httpd-vhosts.conf \u306f\u4ee5\u4e0b\u306b\u3042\u308a\u307e\u3059\uff1a<br> \uff08apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30b9\uff09\\conf\\extra\\httpd-vhosts.conf<\/p>\n\n\n\n<p>httpd-vhosts.conf\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u3001\u6700\u5f8c\u306e\u884c\u306e\u5f8c\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ffd\u52a0\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#projectA ---\nListen 8001\n&lt;VirtualHost *:8001>\n    DocumentRoot \"C:\/php-workspace\/projectA\"\n    ServerName localhost:8001\n    ##ErrorLog \"logs\/dummy-host1.example.com-error.log\"\n    ##CustomLog \"logs\/dummy-host1.example.com-access.log\" common\n&lt;\/VirtualHost>\n\n#projectB ---\nListen 8002\n&lt;VirtualHost *:8002>\n    DocumentRoot \"C:\\php-workspace\\projectB\"\n    ServerName localhost:8002\n    ##ErrorLog \"logs\/dummy-host2.example.com-error.log\"\n    ##CustomLog \"logs\/dummy-host2.example.com-access.log\" common\n&lt;\/VirtualHost>\n\n#projectC ---\nListen 8003\n&lt;VirtualHost *:8003>\n    DocumentRoot \"C:\\php-workspace\\projectC\"\n    ServerName localhost:8003\n    ##ErrorLog \"logs\/dummy-host3.example.com-error.log\"\n    ##CustomLog \"logs\/dummy-host3.example.com-access.log\" common\n&lt;\/VirtualHost><\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067<br> http:\/\/localhost:8001\/<br> \u306a\u3069\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u8868\u793a\u3055\u308c\u308b\u30a8\u30e9\u30fc<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"722\" height=\"287\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/06\/accesserror.png\" alt=\"\" class=\"wp-image-7241\"\/><\/figure>\n\n\n\n<p> <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u306f\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306b\u3088\u308a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br> \u8868\u793a\u3055\u308c\u305f\u5834\u5408\u306f\u3001 <br> httpd-vhosts.conf \u306b\u4ee5\u4e0b\u306e\u8ffd\u52a0\u3092\u304a\u3053\u306a\u3044\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u7f6e\u3044\u3066\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u4eca\u56de\u306e\u4f8b\u306e\u5834\u5408\u300cC:\/php-workspace\u300d\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\u306b\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308b\u3088\u3046\u306b\u5bfe\u51e6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Directory \"C:\/php-workspace\">\nAllowOverride All\nOrder allow,deny\nAllow from all\nRequire all granted\n&lt;\/Directory><\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0a\u3067PORT\u5206\u3051\u306b\u3088\u308b\u8907\u6570\u306ePHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5207\u308a\u5206\u3051\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6728\u66dc\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7224\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/7224\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"\u8907\u6570\u306ePHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u540c\u6642\u691c\u8a3c\u3059\u308b\u969b\u306ePORT\u5207\u308a\u5206\u3051\u65b9\u6cd5\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7224\" data-text=\"\u8907\u6570\u306ePHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u540c\u6642\u691c\u8a3c\u3059\u308b\u969b\u306ePORT\u5207\u308a\u5206\u3051\u65b9\u6cd5\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7224\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7224\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>XAMPP\u306a\u3069\u3067\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u691c\u8a3c\u3092\u304a\u3053\u306a\u3046\u969b\u306b\u3001htdocs\u5185\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6bce\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u5207\u308a\u5206\u3051\u308b\u306e\u304c\u4e00\u822c\u7684\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u3001\u691c\u8a3c\u7528URL\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30d1\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[35],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7224"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=7224"}],"version-history":[{"count":21,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7224\/revisions"}],"predecessor-version":[{"id":7260,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7224\/revisions\/7260"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=7224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=7224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=7224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}