{"id":891,"date":"2024-04-15T13:25:48","date_gmt":"2024-04-15T04:25:48","guid":{"rendered":"http:\/\/inwelly.com\/?p=891"},"modified":"2024-04-15T13:25:48","modified_gmt":"2024-04-15T04:25:48","slug":"php-laravel-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=891","title":{"rendered":"PHP Laravel &#8211; \uc124\uce58"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\uc6b0\ubd84\ud22c 16.04.2,  php7, apache2, laravel(Laravel Framework 5.5.45) , virtualbox\n \n1. \ubc84\uce04\uc5bc\ubc15\uc2a4\uc5d0 \uc6b0\ubd84\ud22c \uc124\uce58\n \n2. \uc6b0\ubd84\ud22c \uc5c5\ub370\uc774\ud2b8 \n    - sudo apt-get update\n    - sudo apt-get upgrade\n \n3. \uc544\ud30c\uce58 \uc124\uce58\n    - sudo apt-get install apache2\n \n4. php \uc124\uce58\n \n5. \uc544\ud30c\uce58 \uc7ac\uc2dc\uc791\n    -  sudo service apache2 restart\n \n6. mySQL \uc124\uce58\n    - sudo apt-get install mysql-server\n    - sudo service mysql start\n \n \n \ucc38\uc870 : \uc704 \ub0b4\uc6a9\uc758 \uc124\uce58\ub294 \uc6b0\ubd84\ud22c \uc124\uce58\uc2dc \uc790\ub3d9\uc73c\ub85c \uc124\uce58\ud558\ub294 LAMP \uac19\uc774 \uc124\uce58 \ud558\uac8c \ub418\uba74 \ub530\ub85c \uc124\uce58 \uc548\ud574\uc918\ub3c4 \ub41c\ub2e4. \n \n\uc774 \ubaa8\ub450 \uc124\uce58 \ub418\uc5b4 \uc788\ub2e4\uba74 \uc544\ub798 \ub0b4\uc6a9\uc5d0\uc11c \uc2dc\uc791 \ud55c\ub2e4. \n============\n \n \n \n7 . \ucef4\ud3ec\uc800 \uc124\uce58\n    - curl -sS https:\/\/getcomposer.org\/installer | php\n    - sudo mv composer.phar \/usr\/local\/bin\/composer\n \n \n7-1 : php \ubaa8\ub4c8\uc758 \ud2b9\uc131 extention \uc774 \ud544\uc694\ud568.\nsudo apt-get install php-common php-mbstring php-xml php-zip\n \n \n8. \ub77c\ub77c\ubca8 \ud504\ub85c\uc81d\ud2b8 \uc0dd\uc131\n    - composer create-project laravel\/laravel www --prefer-dist --verbose\n       (\/home\/\uacc4\uc815\/www\uc5d0 \uc0dd\uc131\ub428)\n \n9. \uad8c\ud55c \ubcc0\uacbd\n    - sudo chgrp -R www-data \/home\/\uacc4\uc815\/www\n    - sudo chmod -R 775 \/home\/\uacc4\uc815\/www\/storage\n \n10. \ub8e8\ud2b8 \ub514\ub809\ud1a0\ub9ac \ubcc0\uacbd (\ub77c\ub77c\ubca8 \uc124\uce58\ud55c \uacf3\uc5d0\uc11c \/public\uc73c\ub85c \uc811\uadfc)\n    - sudo vim \/etc\/apache2\/apache2.conf\n        &lt;Directory \/home\/\ub0b4\uc544\uc774\ub514\/www\/public> \n            Options Indexes FollowSymLinks \n            AllowOverride None \n            Require all granted \n        &lt;\/Directory> \n   \n \n11. \uc544\ud30c\uce58 VirtualHost \uc124\uc815\n    - sudo vim \/etc\/apache2\/sites-available\/laravel.conf ( \uc544\ub798\ub0b4\uc6a9 \uc785\ub825 \ud6c4 \uc800\uc7a5 )\n \n            &lt;VirtualHost *:80> \n                ServerName localhost \n                DocumentRoot \"\/home\/\uacc4\uc815\/www\/public\" \n                &lt;Directory \"\/home\/\uacc4\uc815\/www\/public\"> \n                    AllowOverride all \n                &lt;\/Directory> \n             &lt;\/VirtualHost>\n \n    - sudo a2dissite 000-default.conf\n    - sudo a2ensite laravel.conf\n    - sudo a2enmod rewrite\n    - sudo service apache2 restart\n \n-------------------------------------------------------------------------------------------------------------\n\n\uc704 \uacfc\uc815\uc774 \ub05d\ub098\uace0 \ud574\ub2f9 \ub3c4\uba54\uc778 \ub610\ub294 IP \ub97c \uc2e4\ud589 \uc2dc\ud0a4\uba74 \uc544\ub798 \ud654\uba74\uacfc \uac19\uc774 \ub098\uc624\uac8c \ub41c\ub2e4. <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"282\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-465.png\" alt=\"\" class=\"wp-image-892\" style=\"width:920px;height:auto\"\/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project laravel\/laravel www 6.0.* --prefer-dist --verbose<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;appdividend.com\/2019\/09\/12\/laravel-6-crud-example-laravel-6-tutorial-for-beginners\/\n\nhttps:\/\/kode-blog.io\/laravel-install-and-configure\n\nhttp:\/\/xpressengine.github.io\/Composer-korean-docs\/doc\/03-cli.md\/\n\nhttps:\/\/anko3899.tistory.com\/190?category=787953<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-891","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=891"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions"}],"predecessor-version":[{"id":893,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/891\/revisions\/893"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}