{"id":1507,"date":"2014-10-18T21:47:43","date_gmt":"2014-10-18T19:47:43","guid":{"rendered":"https:\/\/www.hostking.host\/blog\/?p=1507"},"modified":"2014-10-18T21:47:43","modified_gmt":"2014-10-18T19:47:43","slug":"install-laravel-via-ssh-cagefs-shared-hosting","status":"publish","type":"post","link":"https:\/\/www.hostking.host\/blog\/install-laravel-via-ssh-cagefs-shared-hosting\/","title":{"rendered":"How to install Laravel via SSH and CageFS on Shared Hosting"},"content":{"rendered":"<p>Firstly you&#8217;ll need SSH access.<\/p>\n<p>SSH into the server and go to directory where you want to install the application.<\/p>\n<p>Run:<\/p>\n<p><strong>curl -sS https:\/\/getcomposer.org\/installer | php<\/strong><\/p>\n<p>If that fails try the following:<\/p>\n<p><strong>curl -sSk https:\/\/getcomposer.org\/installer | php &#8212; &#8211;disable-tls<\/strong><\/p>\n<p>Once installed test it with :<\/p>\n<p><strong>php composer.phar<\/strong><\/p>\n<p>All should work successfully.<\/p>\n<p>Next run the following to install Laravel:<\/p>\n<p><strong>php composer.phar global require &#8220;laravel\/installer=~1.1&#8221;<\/strong><\/p>\n<p>It should install all dependencies,etc.<\/p>\n<p>Once done load the site. If it gives and Internal Server Error you probably have permission errors.<\/p>\n<p>run chmod to fix this set all the 755<\/p>\n<p><strong>run chmod 755 folder<\/strong><\/p>\n<p>or<strong> chmod 755 * -Rvf<\/strong><\/p>\n<p>Retry and load the website. All should be working and you should be greeted with the Laravel logo.<\/p>\n<p>Also note if you get <strong>blank pages<\/strong> ensure you do the following:<\/p>\n<p># Group Writable (Group, User Writable)<\/p>\n<p><strong><span class=\"pln\">chmod <\/span><span class=\"pun\">&#8211;<\/span><span class=\"pln\">R gu<\/span><span class=\"pun\">+<\/span><span class=\"pln\">w app<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">storage<\/span><\/strong><\/p>\n<p># World-writable (Group, User, Other Writable)<\/p>\n<p><strong><span class=\"pln\">chmod <\/span><span class=\"pun\">&#8211;<\/span><span class=\"pln\">R guo<\/span><span class=\"pun\">+<\/span><span class=\"pln\">w app<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">storage<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Firstly you&#8217;ll need SSH access. SSH into the server and go to directory where you want to install the application. Run: curl -sS https:\/\/getcomposer.org\/installer | php If that fails try&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[74,75],"class_list":["post-1507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-and-web-hosting","tag-composer","tag-laravel","entry"],"_links":{"self":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/1507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/comments?post=1507"}],"version-history":[{"count":0,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/posts\/1507\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media\/1509"}],"wp:attachment":[{"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/media?parent=1507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/categories?post=1507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostking.host\/blog\/wp-json\/wp\/v2\/tags?post=1507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}