{"id":8623,"date":"2016-01-07T22:50:37","date_gmt":"2016-01-07T22:50:37","guid":{"rendered":"https:\/\/wp.okra.host\/article\/installing-laravel\/"},"modified":"2021-03-07T14:37:15","modified_gmt":"2021-03-07T13:37:15","slug":"installing-laravel","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/installing-laravel\/","title":{"rendered":"Installieren von Laravel"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p>Laravel is a PHP framework built around abstraction: do more with less coding. Laravel runs off PHP and MySQL. It is supported on any <a href=\"https:\/\/apnscp.com\/hosting\">package<\/a>, but works best with a package that <a href=\"https:\/\/kb.okra.host\/de\/terminal\/is-terminal-access-available\/\">supports terminal<\/a> access. For this guide, we will assume terminal access is available.<\/p>\n<h2 id=\"installation\" >Installation<\/h2>\n<p>Begin by logging into the <a href=\"https:\/\/kb.okra.host\/de\/terminal\/accessing-terminal\/\">Terminal<\/a>.<\/p>\n<ol>\n<li><span style=\"color: #0000ff\"><strong>VORAUSSETZUNG:<\/strong><\/span> Install <a href=\"https:\/\/kb.okra.host\/de\/php\/using-composer\/\">Composer<\/a> if it has not already been installed.<\/li>\n<li>Install Laravel in a new directory called <code>laravel\/<\/code> unter <code>\/var\/www<\/code> using Composer:\n<pre data-language=\"shell\"><code>cd \/var\/www\r\ncomposer create-project\u00a0laravel\/laravel laravel<\/code><\/pre>\n<p><span style=\"color: #0000ff\">Note<\/span>: &#8220;laravel&#8221; is intentionally present 3 times, the argument format to\u00a0<code>composer create-project<\/code>\u00a0ist\u00a0<em>channel<\/em>\/<em>package<\/em> <em>directory<\/em><\/p>\n<\/li>\n<li>Change permissions on Laravel asset directories to permit <a href=\"https:\/\/kb.okra.host\/de\/php\/writing-to-files\/\">write-access<\/a>\u00a0of logs, compiled views, and temporary file storage.\n<pre data-language=\"shell\"><code>cd laravel\/\r\nchmod -R 777 storage bootstrap\/cache<\/code><\/pre>\n<\/li>\n<li>Connect Laravel to a <a href=\"https:\/\/kb.okra.host\/de\/web-content\/creating-subdomain\/\">Subdomain<\/a>\u00a0oder <a href=\"https:\/\/kb.okra.host\/de\/control-panel\/creating-addon-domain\/\">Addon-Dom\u00e4ne<\/a> within the control panel under <strong>Web<\/strong> &gt; <strong>Subdomains<\/strong>. Specify <code>\u00f6ffentlich\/<\/code> for its <a href=\"https:\/\/kb.okra.host\/de\/web-content\/where-is-site-content-served-from\/\">Dokumentenstamm<\/a>; in the above example, this path is <code>\/var\/www\/laravel\/public<\/code><\/li>\n<\/ol>\n<h3 id=\"empty-output\" >Empty output<\/h3>\n<p>Certain combinations\u00a0of Laravel and PHP may\u00a0yield a page without content. In such situations, <a href=\"https:\/\/kb.okra.host\/de\/php\/changing-php-settings\/\">turn off output_buffering<\/a> im <a href=\"https:\/\/kb.okra.host\/de\/guides\/htaccess-guide\/\">.htaccess<\/a> file located under <code>\u00f6ffentlich\/<\/code>:<\/p>\n<pre>php_value output_buffering 0<\/pre>\n<h2 id=\"see-also\" >Siehe auch<\/h2>\n<ul>\n<li><a href=\"https:\/\/laravel.com\/docs\/\">Laravel documentation<\/a><\/li>\n<li><a href=\"http:\/\/laravel.sandbox.apnscp.com\">Laravel implementation<\/a> on Sol, a <a href=\"https:\/\/kb.okra.host\/de\/platform\/determining-platform-version\/\">v6<\/a> platform<\/li>\n<li>KB: <a href=\"https:\/\/kb.okra.host\/de\/php\/working-laravel-config-cache\/\">Arbeiten mit Laravel config:cache<\/a><\/li>\n<\/ul>\n<h3 id=\"_\" ><\/h3>","protected":false},"excerpt":{"rendered":"<p>Overview Laravel is a PHP framework built around abstraction: do more with less coding. Laravel runs off PHP and MySQL. It is supported on any package, but works best with a package that supports terminal access. For this guide, we will assume terminal access is available. Installation Begin by logging&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[63],"ht-kb-tag":[],"class_list":["post-8623","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-php"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8623"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8623\/revisions"}],"predecessor-version":[{"id":8624,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8623\/revisions\/8624"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8623"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8623"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}