{"id":248,"date":"2014-12-09T16:53:29","date_gmt":"2014-12-09T07:53:29","guid":{"rendered":"http:\/\/www.ois-yokohama.co.jp\/oisblog\/?p=248"},"modified":"2022-09-21T19:09:55","modified_gmt":"2022-09-21T10:09:55","slug":"centos-6-5-%ef%bc%8b-php-5-6-%ef%bc%8b-mysql-5-6-%ef%bc%8b-laravel4-%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%82%8b%ef%bc%88part-2%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/archives\/248","title":{"rendered":"CentOS 6.5 \uff0b PHP 5.6 \uff0b MySQL 5.6 \uff0b laravel4 \u74b0\u5883\u3092\u4f5c\u308b\uff08part 2\uff09"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/10\/bus0014-001-1024x683.jpg\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/10\/bus0014-001-1024x683.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/10\/bus0014-001-300x200.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/10\/bus0014-001-768x512.jpg 768w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/div>\n<p>\u3053\u3093\u306b\u3061\u308f\u3001\u307b\u3052\u7cfb\u30ea\u30fc\u30de\u30f3\u306e\u307b\u3052PG\u3067\u3059\u3002\u4eca\u56de\u306flaravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u9811\u5f35\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<h2>\uff11\u3001Apache 2.2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h4># yum -y install httpd<\/h4>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8 httpd-2.2.15-39.el6.centos.x86_64 \u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u304b\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059<br \/>\n\u4f55\u3082\u3057\u307e\u305b\u3093<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30cf\u3001yum update \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u6a21\u69d8\u3002<\/h4>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001\u8d77\u52d5\u3057\u3066\u78ba\u8a8d\u3002<br \/>\n# service httpd start<br \/>\nFirefox\u3088\u308a\u3001http:\/\/localhost\u3000\u3092\u8868\u793a<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-251 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-1-300x247.jpg\" alt=\"httpd-1\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-1-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-1-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-1.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nwindows PC\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u3002<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-252 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-2-300x247.jpg\" alt=\"httpd-2\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-2-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-2-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-2.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nWWW\u3092\u30c1\u30a7\u30c3\u30af\u3001\u9069\u7528\u62bc\u4e0b\u3002<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-253 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-3-300x247.jpg\" alt=\"httpd-3\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-3-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-3-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-3.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nWindows PC\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u3067VM\uff08192.168.253.128\uff09\u3092\u958b\u304f\u3002<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-255 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4-300x188.jpg\" alt=\"httpd-4\" width=\"300\" height=\"188\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4-300x188.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4-768x480.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4-1024x640.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/httpd-4.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u4e00\u5fdc\u81ea\u52d5\u8d77\u52d5\u306b\u3057\u3066\u304a\u304f<br \/>\n# chkconfig httpd on<\/p>\n<p>&nbsp;<\/p>\n<h2>\uff12\u3001PHP 5.6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h4>\u30fb\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fphp5.3\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/h4>\n<p># rpm -Uvh http:\/\/download.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm<br \/>\n# rpm -Uvh http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fbphp\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p># yum &#8211;enablerepo=remi,remi-php56 install php php-common<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5bfe\u8c61\u306ephp\u304c5.6\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066y\u3092\u9078\u629e<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-259 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-1-300x247.jpg\" alt=\"php-1\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-1-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-1-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-1.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u9014\u4e2d\u3001\u8b66\u544a\u304c\u3067\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001y\u3092\u9078\u629e<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-260 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-2-300x247.jpg\" alt=\"php-2\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-2-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-2-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-2.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>laravel\u3067\u4f7f\u3046mcrypt\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p># yum -y install libmcrypt<br \/>\n# yum -y &#8211;enablerepo=remi,remi-php56 install php-mcrypt<\/p>\n<p>&nbsp;<\/p>\n<h4>\u4f7f\u3044\u305d\u3046\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p># yum -y &#8211;enablerepo=remi,remi-php56 install php-pecl-apcu php-pdo php-gd php-mysqlnd php-mbstring php-pecl-mongo<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u78ba\u8a8d\uff11\u3000php\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/h4>\n<p># php -v<br \/>\nPHP 5.6 \u3068\u51fa\u3066\u3044\u308c\u3070OK<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u78ba\u8a8d\uff12\u3000apache\u306bphp\u3068mcrypt\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b<\/h4>\n<p># \u00a0service httpd restart<br \/>\n# echo &#8220;&lt;?php phpinfo();&#8221; &gt; \/var\/www\/html\/info.php<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3088\u308ahttp:\/\/localhost\/info.php\u3092\u53c2\u7167<br \/>\nmcrypt\u304c\u3042\u308b\u306e\u3092\u78ba\u8a8d<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-267 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-3-300x247.jpg\" alt=\"php-3\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-3-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-3-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/php-3.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\uff13\u3001MySQL 5.6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h4>\u00a0\u30fbMySQL\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0<\/h4>\n<p># yum -y install http:\/\/repo.mysql.com\/mysql-community-release-el6-5.noarch.rpm<br \/>\n\u203bOS\u304c\u7570\u306a\u308b\u5834\u5408\u306fhttp:\/\/repo.mysql.com\/\u3088\u308a\u9069\u5f53\u306b\u9078\u629e\u3059\u308b<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fbserver\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3000\u4f9d\u5b58\u95a2\u4fc2\u3092\u898b\u3066\u304f\u308c\u308b\u306e\u3067server, client, libs, common\u304c\u81ea\u52d5\u3067\u5165\u308b<\/h4>\n<p># yum -y install mysql-community-server<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-270 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-1-300x247.jpg\" alt=\"mysql-1\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-1-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-1-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-1.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\uff0b\u8d77\u52d5<\/h4>\n<p># chkconfig mysqld on<br \/>\n# service mysqld restart<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u78ba\u8a8d<\/h4>\n<p># mysql -u root<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-271 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-2-300x247.jpg\" alt=\"mysql-2\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-2-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-2-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/mysql-2.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u203b\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u306fMySQL\u30d7\u30ed\u30f3\u30d7\u30c8\u4e0a\u3067 select version(); \u3082\u3057\u304f\u306f status \u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\uff14\u3001laravel4\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<h4>\u00a0\u30fblaravel\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u4f7f\u3046composer \u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<p># curl -sS https:\/\/getcomposer.org\/installer | php<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fbcomposer \u3067\u52d5\u304f\u3088\u3046\u306b\u8a2d\u5b9a<\/h4>\n<p># mv composer.phar \/usr\/local\/bin\/composer<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u78ba\u8a8d<\/h4>\n<p># composer<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-277 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-1-300x247.jpg\" alt=\"laravel-1\" width=\"300\" height=\"247\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-1-300x247.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-1-768x632.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-1.jpg 816w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u203b\/usr\/local\/bin\u306b\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u5b9f\u884c<br \/>\n# export PATH=$PATH:\/usr\/local\/bin<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\uff06\u30a4\u30f3\u30b9\u30aa\u30fc\u30eb<\/h4>\n<p># composer create-project laravel\/laravel \/var\/www\/hogeweb-site\/ &#8211;prefer-dist<br \/>\n\u3053\u308c\u3067 \/var\/www\/hogeweb-site \u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30fbapache \u306e\u8a2d\u5b9a<\/h4>\n<p>laravel\u306fdocumentroot\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001VirtualHost\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3002\u3053\u308c\u3067\u3082\u3057\u65e2\u5b58\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u3063\u305f\u3068\u304d\u3067\u3082\u5171\u5b58\u53ef\u80fd\u3002<br \/>\n# vi \/etc\/httpd\/conf.d\/hogeweb-site.conf<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nDocumentRoot \/var\/www\/hogeweb-site\/public\/\r\n    ServerName hogeweb-site\r\n    &lt;Directory \"\/var\/www\/hogeweb-site\/\"&gt;\r\n        AllowOverride All\r\n        Order allow,deny\r\n        Allow from all\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<h4>apache\u306e\u518d\u8d77\u52d5<\/h4>\n<p># service httpd restart<br \/>\n\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\uff1b<br \/>\nhttpd \u3092\u8d77\u52d5\u4e2d: Warning: DocumentRoot [\/var\/www\/hogeweb-site\/public\/] does not exist<br \/>\nhttpd: Could not reliably determine the server&#8217;s fully qualified domain name, using localhost.localdomain for ServerName<br \/>\n\u539f\u56e0\u306f\u3001\/var\/www\/hogeweb-site\/public\/ \u304c\u898b\u3048\u3066\u3044\u306a\u3044\u306e\u3068\u3001ServerName\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3002<br \/>\n\/var\/www\/hogeweb-site\/public\/ \u304c\u898b\u3048\u3066\u3044\u306a\u3044\u306e\u306fSELinux\u304c\u539f\u56e0\u3068\u601d\u308f\u308c\u308b\u306e\u3067SELinux\u3092\u7121\u52b9\u5316\u3059\u308b\u3002<br \/>\n# setenforce 0<br \/>\nhttpd.conf\u306bServerName\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n# vi \/etc\/httpd\/conf\/httpd.conf<br \/>\nServerName hogeweb-site.ois-yokohama.co.jp:80<\/p>\n<p>&nbsp;<\/p>\n<h4>apache\u306e\u518d\u8d77\u52d5<\/h4>\n<p># service httpd restart<\/p>\n<p>&nbsp;<\/p>\n<h4>\u78ba\u8a8d<\/h4>\n<p>PC\u4e0a\u306ehosts\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<br \/>\n192.168.253.128 hogeweb-site<br \/>\n\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u4ee5\u4e0b\u306eURL\u3092\u958b\u304f<br \/>\nhttp:\/\/hogeweb-site\/<\/p>\n<p>\u300cError in exception handler.\u300d\u30da\u30fc\u30b8\uff1b<\/p>\n<p>laravel\/storage\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4e0e\u3048\u308b\u306e\u3092\u308f\u3059\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u4e0e\u3048\u308b\u3002<br \/>\n# chmod -R 777 \/var\/www\/hogeweb-site\/app\/storage\/<br \/>\n\u4e00\u5fdc\u518d\u8d77\u52d5\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u4ee5\u4e0b\u306eURL\u3092\u958b\u304f<br \/>\nhttp:\/\/hogeweb-site\/<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-279 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2-300x188.jpg\" alt=\"laravel-2\" width=\"300\" height=\"188\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2-300x188.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2-768x480.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2-1024x640.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-2.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u7121\u4e8b\u8d77\u52d5\uff01<\/p>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u307b\u3052\u3063\u3066\u898b\u308b\u3002<br \/>\n# vi\u00a0\/var\/www\/hogeweb-site\/app\/routes.php<br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<\/p>\n<pre>Route::get('hoge', function()\r\n{\r\n    return 'Are you hoge?';\r\n});\r\n<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u3088\u308a\u4ee5\u4e0b\u3092\u958b\u304f\u3002<br \/>\nhttp:\/\/hogeweb-site\/hoge\/<br \/>\n<a href=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-280 size-medium\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3-300x188.jpg\" alt=\"laravel-3\" width=\"300\" height=\"188\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3-300x188.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3-768x480.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3-1024x640.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2014\/12\/laravel-3.jpg 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u307b\u3052\uff01<\/p>\n<p>\u6b21\u56de\u306flaravel\u3067\u753b\u50cf\u6295\u7a3f\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b\u4e88\u5b9a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u308f\u3001\u307b\u3052\u7cfb\u30ea\u30fc\u30de\u30f3\u306e\u307b\u3052PG\u3067\u3059\u3002\u4eca\u56de\u306flaravel\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u9811\u5f35\u308a\u307e\u3059\u3002 \uff11\u3001Apache 2.2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb # yum -y install httpd \u30d1\u30c3\u30b1\u30fc\u30b8 httpd-2.2.15-3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":117,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"vkexunit_cta_each_option":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engineer"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/comments?post=248"}],"version-history":[{"count":3,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":5743,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/248\/revisions\/5743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media\/117"}],"wp:attachment":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media?parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/categories?post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/tags?post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}