{"id":1258,"date":"2017-12-11T14:51:56","date_gmt":"2017-12-11T05:51:56","guid":{"rendered":"https:\/\/coeure.co.jp\/blog\/?p=1258"},"modified":"2026-04-03T15:47:45","modified_gmt":"2026-04-03T06:47:45","slug":"php_error_171211","status":"publish","type":"post","link":"https:\/\/coeure.co.jp\/blog\/programing\/php_error_171211","title":{"rendered":"\u3010PHP+MySQL\u3011mixhost \u3067 HTTP ERROR 500 \u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306e\u539f\u56e0\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<p>PHP\u3067\u52d5\u304fweb\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u5f15\u3063\u8d8a\u3057\u306b\u4f34\u3044\u3001\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u79fb\u884c\u3059\u308b\u5fc5\u8981\u304c\u751f\u3058\u307e\u3057\u305f\u3002\u5358\u7d14\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3089\u52d5\u304f\u3060\u308d\u3046\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u7518\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u3068\u89e3\u6c7a\u3057\u305f\u65b9\u6cd5\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u8868\u793a\u3055\u308c\u305f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/h2>\n\n\n\n<p>\u65b0\u3057\u304fmixhost\u3068\u3044\u3046\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u3092\u501f\u308a\u3001\u305d\u3053\u306bPHP\u3067\u52d5\u304fweb\u30b7\u30b9\u30c6\u30e0\u3092\u30b3\u30d4\u30fc\u3057\u3066\u52d5\u304b\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u4e0b\u56f3\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_01.jpg\"><img decoding=\"async\" width=\"470\" height=\"244\" src=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_01.jpg\" alt=\"\" class=\"wp-image-1293\" srcset=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_01.jpg 470w, https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_01-300x156.jpg 300w\" sizes=\"(max-width: 470px) 100vw, 470px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<p>web\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306f\u8868\u793a\u3055\u308c\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3053\u3067\u30e6\u30fc\u30b6\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001\u6b21\u753b\u9762\u306b\u9077\u79fb\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3067\u3053\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u306e\u3067\u3001PHP\u306f\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u753b\u9762\u9077\u79fb\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4f55\u3089\u304b\u306e\u30a8\u30e9\u30fc\u306b\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u306e\u753b\u9762\u3092\u3088\u304f\u898b\u3066\u307f\u308b\u3068\u300cHTTP ERROR 500\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u300cHTTP ERROR 500\u300d\u3092\u8abf\u3079\u3066\u307f\u307e\u3059\u3068\u300cInternal Server Error\u300d\u306a\u3069\u3068\u547c\u3070\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u3001\u30b5\u30fc\u30d0\u5074\u3067\u767a\u751f\u3057\u305f\u30a8\u30e9\u30fc\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u3092\u7279\u5b9a\u3059\u308b<\/h2>\n\n\n\n<p>.htaccess\u306e\u8a18\u8ff0\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u305f\u3081\u306b\u3053\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u6b63\u3057\u304f\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067 .htaccess \u6b63\u3057\u304f\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u3060\u308d\u3046\u3068\u5224\u65ad\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001php\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u306b\u5b9f\u884c\u3067\u304d\u305a\u3001\u3053\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001PHP\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8a18\u8ff0\u306b\u554f\u984c\u304c\u3042\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u7591\u308f\u308c\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u3055\u3089\u306b\u30a8\u30e9\u30fc\u306e\u8a73\u7d30\u306a\u60c5\u5831\u3092\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308bPHP\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u4e0b\u8a18\u306e\u8a18\u8ff0\u3092\u8ffd\u8a18\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?php\nini_set(&quot;display_errors&quot;, On);\nerror_reporting(E_ALL);\n?&gt;<\/code><\/pre><\/div>\n\n\n\n\n\n\n\n<p>\u3055\u3066\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308bPHP\u30d5\u30a1\u30a4\u30eb\u306b\u3053\u306e\u8a18\u8ff0\u3092\u5165\u308c\u3066\u304b\u3089FTP\u3067\u30b5\u30fc\u30d0\u306b\u30a2\u30c3\u30d7\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u305f\u3068\u3053\u308d\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_02.jpg\"><img decoding=\"async\" width=\"605\" height=\"349\" src=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_02.jpg\" alt=\"\" class=\"wp-image-1294\" srcset=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_02.jpg 605w, https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_02-300x173.jpg 300w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n\n\n\n\n\n\n\n<p>Fatal error\u306e\u7b87\u6240\u3092\u898b\u3066\u307f\u307e\u3059\u3068\u3001mysql_connect()\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u306f\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3044\u308bPHP\u30d5\u30a1\u30a4\u30eb\u306e24\u884c\u76ee\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3069\u3046\u3084\u3089\u3001PHP\u306f\u52d5\u3044\u3066\u3044\u308b\u3082\u306e\u306e\u3001MySQL\u3078\u306e\u63a5\u7d9a\u304c\u3046\u307e\u304f\u3044\u3063\u3066\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3057\u304b\u3057\u3001MySQL\u306b\u306f\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001phpMyAdmin \u3067\u898b\u308b\u9650\u308a\u306f\u6b63\u3057\u304f\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u305d\u3053\u3067\u3001mixhost\u306e\u30b5\u30fc\u30d0\u30b3\u30f3\u30c8\u30fc\u30eb\u30d1\u30cd\u30eb\u3067PHP\u306e\u8a2d\u5b9a\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u30b5\u30fc\u30d0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\uff08cPanel\uff09\u306e\u300c\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u300d\u3001\u300cSelect PHP Version\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u4e0b\u56f3\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03.jpg\"><img decoding=\"async\" width=\"895\" height=\"415\" src=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03.jpg\" alt=\"\" class=\"wp-image-1295\" srcset=\"https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03.jpg 895w, https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03-300x139.jpg 300w, https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03-768x356.jpg 768w, https:\/\/coeure.co.jp\/blog\/wp-content\/uploads\/2017\/12\/php_error_03-700x325.jpg 700w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/a><\/figure>\n<\/div>\n\n\n\n\n\n\n\n\n\n\n<p>\u3088\u304f\u898b\u3066\u307f\u307e\u3059\u3068\u3001\u8d64\u3067\u56f2\u3063\u305f\u300cmysql\u300d\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002mysql\u95a2\u6570\u306fPHP7.0\u4ee5\u964d\u3067\u306f\u4f7f\u3048\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001mysql \u3067\u306f\u306a\u304f mysqli \u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u306f\u5f53\u7136\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u300cmysql\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u3001\u518d\u5ea6PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u52d5\u304b\u3057\u305f\u3068\u3053\u308d\u554f\u984c\u306a\u304f\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u3001\u8a73\u7d30\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306bPHP\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u8a18\u8ff0\u3057\u305f\u7b87\u6240\u306f\u524a\u9664\u3057\u3066\u5143\u306b\u623b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n\n\n\n\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\">\u672c\u5f53\u306e\u554f\u984c\u70b9<\/h2>\n\n\n\n<p>\u3053\u308c\u3067\u3068\u308a\u3042\u3048\u305a\u3001PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u52d5\u304f\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u672c\u5f53\u306e\u554f\u984c\u70b9\u306f\u3084\u306f\u308amysql\u95a2\u6570\u3092\u3044\u307e\u3060\u306b\u4f7f\u7528\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306b\u3042\u308a\u305d\u3046\u3067\u3059\u3002\u65e9\u6025\u306bPHP\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u52d5\u304f\u3088\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u6539\u4fee\u3092\u9032\u3081\u306a\u3051\u308c\u3070\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002\u3067\u306f\u3001\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3067\u52d5\u304fweb\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u5f15\u3063\u8d8a\u3057\u306b\u4f34\u3044\u3001\u305d\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u79fb\u884c\u3059\u308b\u5fc5\u8981\u304c\u751f\u3058\u307e\u3057\u305f\u3002\u5358\u7d14\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3089\u52d5\u304f\u3060\u308d\u3046\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u3046\u7518\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u767a\u751f\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1297,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[24,18,10,22],"tags":[],"class_list":["post-1258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mixhost","category-rental_server","category-programing","category-homepage"],"_links":{"self":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=1258"}],"version-history":[{"count":8,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1258\/revisions"}],"predecessor-version":[{"id":6514,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/posts\/1258\/revisions\/6514"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/media\/1297"}],"wp:attachment":[{"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coeure.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}