{"id":5,"date":"2018-03-10T10:17:58","date_gmt":"2018-03-10T01:17:58","guid":{"rendered":"https:\/\/kitayama.jp\/?p=5"},"modified":"2018-03-10T11:11:44","modified_gmt":"2018-03-10T02:11:44","slug":"larval-5-5-%e3%82%92os-x-%e3%81%ab%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/kitayama.jp\/?p=5","title":{"rendered":"Larval 5.5 \u3092OS-X \u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<h2>OS-X ELCAPTION\u3000\u306b\u3000laravel \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u5fd8\u5099\u9332<\/h2>\n<hr \/>\n<h3>PHP \u304c\u00a05.5 \u306a\u306e\u3067\u3001PHP \u3092\uff17\u306b\u4e0a\u3052\u308b\u3002<\/h3>\n<p>&nbsp;<\/p>\n<h4>brew\u3000\u304c\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<h5 style=\"padding-left: 30px;\">OS-X ELCAPTION(10.11)\u3000\u306b\u306f \/usr\/local\/bin \u304c\u306a\u3044\u306e\u3067\u4f5c\u6210<\/h5>\n<pre style=\"margin-left: 30px;\">$ sudo mkdir \/usr\/local\/bin\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">path \u3092\u901a\u3059\u3002<\/h5>\n<pre style=\"margin-left: 30px;\">$ vim ~\/.bash_profile\r\nexport PATH=\/usr\/local:$PATH\r\n<\/pre>\n<h4><\/h4>\n<h5 style=\"padding-left: 30px;\">brew\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p style=\"padding-left: 30px;\">$ ruby -e &#8220;$(curl -fsSL\u3000https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)&#8221;<\/p>\n<h4 style=\"padding-left: 30px;\"><\/h4>\n<h5 style=\"padding-left: 30px;\">path \u3092\u901a\u3059\u3002<\/h5>\n<pre style=\"margin-left: 30px;\">$ source ~\/.bash_profile\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>home-brew \u306elink \u304c\u3001PHP\u306b\u5c4a\u3044\u3066\u3044\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u305d\u308c\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/h4>\n<h5 style=\"padding-left: 30px;\">core \u3092\u78ba\u8a8d<\/h5>\n<pre style=\"margin-left: 30px;\">$ brew -vHomebrew 1.5.9Homebrew\/homebrew-core (git revision b1ce; last commit 2018-03-09)\r\nphp -vPHP 5.5.38 (cli) (built: Oct 29 2017 20:49:07)\u00a0Copyright (c) 1997-2015 The PHP GroupZend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies\r\n$ brew taphomebrew\/core\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">core \u3068PHP \u3092homebrew\u306b\u901a\u3059<\/h5>\n<pre style=\"margin-left: 30px;\">$ brew tap homebrew\/core\r\n$ brew tap homebrew\/php\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">php7\u3092\u78ba\u8a8d<\/h5>\n<pre style=\"margin-left: 30px;\">$ brew search php7\r\nbrew search php7==&gt; Searching local taps...homebrew\/php\/php70 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 homebrew\/php\/php70-uv \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0homebrew\/php\/php71-timecophomebrew\/php\/php70-amqp \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0homebrew\/php\/php70-v8js \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0homebrew\/php\/php71-\r\n\r\n\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\r\n\r\n\u00a0homebrew\/php\/php71-tidy\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">php7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<pre style=\"margin-left: 30px;\">\r\n$ brew install homebrew\/php\/php70\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">path \u3092\u901a\u3059<\/h5>\n<pre style=\"margin-left: 30px;\">\r\n$ vi .bash_profile\u00a0\r\nexport PATH=\"$(brew --prefix homebrew\/php\/php70)\/bin:$PATH\"\r\n$ source .bash_profile\r\n<\/pre>\n<h5 style=\"padding-left: 30px;\">php\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d<\/h5>\n<pre style=\"margin-left: 30px;\">\r\n$ php -v\r\nPHP 7.0.27 (cli) (built: Jan \u00a05 2018 12:23:32) ( NTS )Copyright (c) 1997-2017 The PHP GroupZend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies\r\n<\/pre>\n<h3>mySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<h4 style=\"padding-left: 30px;\">mySQL\u74b0\u5883\u3092\u78ba\u8a8d<\/h4>\n<pre style=\"margin-left: 30px;\">\r\n$ brew info mysql\r\nmysql: stable 5.7.21 (bottled), devel 8.0.4-rcOpen source relational database management systemhttps:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/Conflicts with:\u00a0 mariadb (because mysql, mariadb, and percona install the same binaries.)\u00a0 mariadb-connector-c (because both install plugins)\u00a0 mysql-cluster (because mysql, mariadb, and percona install the same binaries.)\u00a0 mysql-connector-c (because both install MySQL client libraries)\u00a0 percona-server (because mysql, mariadb, and percona install the same binaries.)Not installedFrom: https:\/\/github.com\/Homebrew\/homebrew-core\/blob\/master\/Formula\/mysql.rb==&gt; DependenciesBuild: cmake \u2718Required: openssl \u2714==&gt; RequirementsRequired: macOS &gt;= 10.7 \u2714==&gt; Options--with-debug Build with debug support--with-embedded Build the embedded server--with-local-infile Build with local infile loading support--with-memcached Build with InnoDB Memcached plugin--with-test Build with unit tests--devel Install development version 8.0.4-rc==&gt; CaveatsWe've installed your MySQL database without a root password. To secure it run:\u00a0 \u00a0 mysql_secure_installation\r\nMySQL is configured to only allow connections from localhost by default\r\nTo connect run:\u00a0 \u00a0 mysql -uroot\r\nTo have launchd start mysql now and restart at login:\u00a0 brew services start mysqlOr, if you don't want\/need a background service you can just run:\u00a0 mysql.server start\r\n<\/pre>\n<h4 style=\"padding-left: 30px;\">mySQL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<pre style=\"margin-left: 30px;\">\r\n$ brew install mysql\r\nmysql.server startStarting MySQL. SUCCESS!\r\n<\/pre>\n<h4 style=\"padding-left: 30px;\">mySQL\u306b\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a<\/h4>\n<pre style=\"margin-left: 30px;\">\r\nmysql_secure_installation\r\nSecuring the MySQL server deployment.\r\nConnecting to MySQL using a blank password.\r\nVALIDATE PASSWORD PLUGIN can be used to test passwordsand improve security. It checks the strength of passwordand allows the users to set only those passwords which aresecure enough. Would you like to setup VALIDATE PASSWORD plugin?\r\nPress y|Y for Yes, any other key for No:\u00a0Please set the password for root here.\r\nNew password:\r\nRe-enter new password:\u00a0By default, a MySQL installation has an anonymous user,allowing anyone to log into MySQL without having to havea user account created for them. This is intended only fortesting, and to make the installation go a bit smoother.You should remove them before moving into a productionenvironment.\r\nRemove anonymous users? (Press y|Y for Yes, any other key for No) : ySuccess.\r\n\r\nNormally, root should only be allowed to connect from'localhost'. This ensures that someone cannot guess atthe root password from the network.\r\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) :\r\n... skipping.By default, MySQL comes with a database named 'test' thatanyone can access. This is also intended only for testing,and should be removed before moving into a productionenvironment.\r\n\r\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) :\r\n... skipping.Reloading the privilege tables will ensure that all changesmade so far will take effect immediately.\r\nReload privilege tables now? (Press y|Y for Yes, any other key for No) :\r\n... skipping.All done!\r\n<\/pre>\n<h4 style=\"padding-left: 30px;\">mySQL\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u8a2d\u5b9a<\/h4>\n<pre style=\"margin-left: 30px;\">\r\n$ mysql -uroot -p\r\ngrant all privileges on *.* to xxxxx@localhost identified by 'xxxxxxx';\r\n<\/pre>\n<h3>laravel\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre style=\"margin-left: 30px;\">\r\n$composer global require \"laravel\/installer=~1.1\"\r\n<\/pre>\n<h4 style=\"padding-left: 30px;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u307f\u308b<\/h4>\n<pre style=\"margin-left: 30px;\">\r\ncomposer create-project laravel\/laravel test --prefer-dist\r\ncd testsudo chmod -R 777 storage\r\n<\/pre>\n<h4 style=\"padding-left: 30px;\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8d77\u52d5<\/h4>\n<pre style=\"margin-left: 30px;\">\r\nphp artisan serve\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>OS-X ELCAPTION\u3000\u306b\u3000laravel \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u5fd8\u5099\u9332 PHP \u304c\u00a05.5 \u306a\u306e\u3067\u3001PHP \u3092\uff17\u306b\u4e0a\u3052\u308b\u3002 &nbsp; brew\u3000\u304c\u306a\u3044\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb OS-X ELCAPTION(10.11)\u3000\u306b\u306f \/usr\/local\/bin \u304c\u306a\u3044\u306e\u3067\u4f5c\u6210 $ sudo mkdir \/usr\/local\/bin path \u3092\u901a\u3059\u3002 $ vim ~\/.bash_profile export PATH=\/usr\/local:$PATH brew\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb.. <a href=\"https:\/\/kitayama.jp\/?p=5\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,3,2],"tags":[],"_links":{"self":[{"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kitayama.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":16,"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":22,"href":"https:\/\/kitayama.jp\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/22"}],"wp:attachment":[{"href":"https:\/\/kitayama.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kitayama.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kitayama.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}