{"id":12108,"date":"2022-05-12T10:00:00","date_gmt":"2022-05-12T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=12108"},"modified":"2022-05-11T19:05:52","modified_gmt":"2022-05-11T10:05:52","slug":"aws-ec2%e7%92%b0%e5%a2%83%e3%81%a7php%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e3%82%b5%e3%82%a4%e3%82%ba%e4%b8%8a%e9%99%90%e3%82%92%e5%a4%89","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/12108","title":{"rendered":"aws ec2\u74b0\u5883\u3067php\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b"},"content":{"rendered":"\n<p>\u4eca\u56de\u306faws ec2\u74b0\u5883\u3067php\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092<br>\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h4>\u73fe\u72b6\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u5024\u306e\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3046<\/h4>\n\n\n\n<p>\u73fe\u72b6\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u5024\u306e\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3046\u306b\u306fphpinfo\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066<br>PHP\u306e\u8a2d\u5b9a\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;?php\n    phpinfo();\n?&gt;\n<\/code><\/pre>\n\n\n\n<p><br>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306b\u95a2\u9023\u3059\u308b\u60c5\u5831\u306f\u4ee5\u4e0b\u306e\u7b87\u6240\u306e\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>upload_max_filesize<\/strong><br>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u6700\u5927\u5024<\/p>\n\n\n\n<p><strong>post_max_size<\/strong><br>POST\u30c7\u30fc\u30bf\u306e\u6700\u5927\u5024\u3002\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u6700\u5927\u5024\u306b\u3042\u308f\u305b\u3066\u3053\u3061\u3089\u3082<br>\u8abf\u6574\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>memory_limit<\/strong><br>PHP\u304c\u5229\u7528\u53ef\u80fd\u306a\u30e1\u30e2\u30ea\u306e\u6700\u5927\u5024\u3002POST\u30c7\u30fc\u30bf\u306f\u30e1\u30e2\u30ea\u4e0a\u306b\u4e00\u6642\u4fdd\u5b58\u3055\u308c\u308b\u305f\u3081\u3001<br>\u3053\u3061\u3089\u306e\u8a2d\u5b9a\u5024\u306e\u8abf\u6574\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p><strong>Loaded Configuration File<\/strong><br>php.ini\u306e\u8a2d\u7f6e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u78ba\u8a8d\u304c\u304a\u3053\u306a\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h4>upload_max_filesize\u306a\u3069\u306e\u8a2d\u5b9a\u5024\u5909\u66f4\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u4e0a\u8a18\u306eupload_max_filesize\u306a\u3069\u306e\u8a2d\u5b9a\u5909\u66f4\u306fphp.ini\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u5909\u66f4\u53ef\u80fd\u306a\u306e\u3067\u3059\u304c\u3001<br>aws ec2\u74b0\u5883\u3067php.ini\u306e\u5909\u66f4\u304c\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u95a2\u4fc2\u3067\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306f\u3001.htaccess\u306e\u8a2d\u5b9a\u5909\u66f4\u304a\u3088\u3073.user.ini\u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\u3067\u8abf\u6574\u3092<br>\u304a\u3053\u306a\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h4>.htaccess\u306e\u8a2d\u5b9a\u5909\u66f4<\/h4>\n\n\n\n<p>.htaccess\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;Files \".user.ini\"&gt;\n    Require all denied\n&lt;\/Files&gt;\n<\/code><\/pre>\n\n\n\n<h4>.user.ini\u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0<\/h4>\n\n\n\n<p>.user.ini\u30d5\u30a1\u30a4\u30eb\u306e\u65b0\u898f\u4f5c\u6210\u3092\u304a\u3053\u306a\u3044\u4ee5\u4e0b\u306e\u3088\u3046\u306bupload_max_filesize\u306a\u3069\u306e\u8a2d\u5b9a\u5024\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nupload_max_filesize=40M\npost_max_size=40M\nmemory_limit=512M\n<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8a2d\u5b9a\u5b8c\u4e86\u5f8c\u3001\u518d\u5ea6phpinfo\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"944\" height=\"326\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2022\/05\/max.png\" alt=\"\" class=\"wp-image-12112\" \/><\/figure>\n\n\n\n<p>\u5909\u66f4\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6728\u66dc\u65e5\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\/12108\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/12108\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"aws ec2\u74b0\u5883\u3067php\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\" 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\/12108\" data-text=\"aws ec2\u74b0\u5883\u3067php\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\" 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\/12108\" 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\/12108\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306faws ec2\u74b0\u5883\u3067php\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u4e0a\u9650\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\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":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12108"}],"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=12108"}],"version-history":[{"count":4,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12108\/revisions"}],"predecessor-version":[{"id":12116,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/12108\/revisions\/12116"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=12108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=12108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=12108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}