{"id":1378,"date":"2021-04-21T11:50:11","date_gmt":"2021-04-21T16:50:11","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1378"},"modified":"2021-04-01T12:19:21","modified_gmt":"2021-04-01T17:19:21","slug":"how-to-install-laravel-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/","title":{"rendered":"How to Install Laravel on Ubuntu 18.04"},"content":{"rendered":"\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n<h2>1. Connect to your server<img decoding=\"async\" class=\"alignright  wp-image-1385\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04.jpg\" alt=\"installing laravel on ubuntu 18.04\" width=\"349\" height=\"141\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04.jpg 448w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04-300x121.jpg 300w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/><\/h2>\r\n<div id=\"linux-351602990\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>To connect to your server via SSH as user root, use the following command:<\/p>\r\n<pre>ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\r\n<p>and replace \u201cIP_ADDRESS\u201d and \u201cPORT_NUMBER\u201d with your actual server IP address and SSH port number. Once logged in, make sure that your server is up-to-date by running the following commands:<\/p>\r\n<pre>apt-get update\r\napt-get upgrade<\/pre>\r\n<h2>2. Install the MySQL Database server<\/h2>\r\n<p>MySQL is an open-source database management system. To install MySQL, run the following command:<\/p>\r\n<pre>$ apt-get install mysql-server<\/pre>\r\n<p>This will install MySQL 5.7 on your server.\u00a0In order to improve the security of your MySQL server, we recommend that you run the\u00a0<strong>mysql_secure_installation<\/strong>\u00a0script by typing the following command:<\/p>\r\n<pre>mysql_secure_installation<\/pre>\r\n<p>This script will help you to perform important security tasks like setting up a root password, disable remote root login, remove anonymous users, etc.<\/p>\r\n<h2>3. Create a database for Laravel<\/h2>\r\n<p>Now, we will create our MySQL database for our Laravel site. Login to your MySQL server with the following command and enter your MySQL root password:<\/p>\r\n<pre>mysql -u root -p<\/pre>\r\n<p>In this section, we will create a new MySQL database\u00a0<code>laravel<\/code>\u00a0and assign user access to it to a new user\u00a0<code>admin_user<\/code>\u00a0with password\u00a0<code>Strong_Password<\/code><\/p>\r\n<pre>CREATE DATABASE laravel;\r\nGRANT ALL PRIVILEGES ON laravel.* TO 'admin_user'@'localhost' IDENTIFIED BY 'Strong_Password';\r\nFLUSH PRIVILEGES;\r\nexit;<\/pre>\r\n<p>Don\u2019t forget to replace \u2018Strong_Password\u2019 with an actual strong password.<\/p>\r\n<h2>4. Install PHP and required PHP modules<\/h2>\r\n<p>To install the PHP and all necessary modules, run:<\/p>\r\n<pre>sudo apt-get install php-cli php-mcrypt php-mbstring php-zip php-opcache php-gd php-xml<\/pre>\r\n<h2>5. Install Composer<\/h2>\r\n<p>A composer is a dependency manager for PHP and of course Laravel, which you can install packages with. The composer will pull all the required libraries you need for your project.<\/p>\r\n<pre>curl -sS https:\/\/getcomposer.org\/installer | php\r\nsudo mv composer.phar \/usr\/local\/bin\/composer<\/pre>\r\n<h2>6. Install Laravel<\/h2>\r\n<p>Install the latest version of Laravel, using the composer create-project command:<\/p>\r\n<pre>sudo composer create-project --prefer-dist laravel\/laravel my_project<\/pre>\r\n<p>If the installation is successful, you will see the following lines:<\/p>\r\n<pre>Writing lock file\r\nGenerating optimized autoload files\r\n&gt; Illuminate\\Foundation\\ComposerScripts::postAutoloadDump\r\n&gt; @php artisan package:discover\r\nDiscovered Package: fideloper\/proxy\r\nDiscovered Package: laravel\/tinker\r\nDiscovered Package: nesbot\/carbon\r\nPackage manifest generated successfully.\r\n&gt; @php artisan key:generate\r\nApplication key [base64:NEu4D2s1Ai8HHZL3wPnrl+BVpSmcm7dMTStIBtMgSn0=] set successfully.\r\n<\/pre>\r\n<p>By default, Laravel is configured to use <a href=\"https:\/\/linuxhostsupport.com\/blog\/tag\/mysql\/\">MySQL<\/a>(MariaDB), but you need to give it the right information to connect to the database that you just set up. Next, go to the \/var\/www\/Html\/my_project\/config directory, open the <code>database.php<\/code> file with your favorite text editor, for example:<\/p>\r\n<pre>nano database.php<\/pre>\r\n<p>And update the database settings, replacing them with your own details:<\/p>\r\n<pre> 'mysql' =&gt; [\r\n            'driver' =&gt; 'mysql',\r\n            'host' =&gt; env('DB_HOST', '127.0.0.1'),\r\n            'port' =&gt; env('DB_PORT', '3306'),\r\n            'database' =&gt; env('DB_DATABASE', 'yourDBName'),\r\n            'username' =&gt; env('DB_USERNAME', 'yourUserName'),\r\n            'password' =&gt; env('DB_PASSWORD', 'yourPassword'),\r\n            'unix_socket' =&gt; env('DB_SOCKET', ''),\r\n            'charset' =&gt; 'utf8mb4',\r\n            'collation' =&gt; 'utf8mb4_unicode_ci',\r\n            'prefix' =&gt; '',\r\n            'strict' =&gt; true,\r\n            'engine' =&gt; null,\r\n        ],\r\n<\/pre>\r\n<h2>7. Server your application with Artisan serve command<\/h2>\r\n<p>Once the installation is completed you can use the artisan serve command to serve your application:<\/p>\r\n<pre>php artisan serve\r\n<\/pre>\r\n<p>The output should be something like this:<\/p>\r\n<pre>Laravel development server started: &lt;http:\/\/127.0.0.1:8000&gt;<\/pre>\r\n<p>You can now open your browser and access your new Laravel installation at:\u00a0<code>http:\/\/127.0.0.1:8000<\/code><\/p>\r\n<h2>8. Install and configure Apache webserver<\/h2>\r\n<p>In this part of the tutorial, we will show you how to install and configure Apache to serve your Laravel application. Run the following command to install Apache webserver from the official Ubuntu repositories:<\/p>\r\n<pre>apt-get install apache2<\/pre>\r\n<p>Change the ownership of the Laravel directory to the webserver user:<\/p>\r\n<pre>chown -R www-data:www-data \/path\/to\/laravel\r\nchmod -R 755 my_project\/storage\/<\/pre>\r\n<p>Create a new Apache virtual host with the following content:<\/p>\r\n<pre>sudo nano \/etc\/apache2\/sites-available\/your_domain.com<\/pre>\r\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName your_domain.com\r\n\r\nServerAdmin webmaster@localhost\r\nDocumentRoot \/var\/www\/html\/my_project\/public\r\n\r\n&lt;Directory \/var\/www\/html\/my_project&gt;\r\nAllowOverride All\r\n&lt;\/Directory&gt;\r\n\r\nErrorLog ${APACHE_LOG_DIR}\/error.log\r\nCustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\r\n<p>Activate the virtual host by creating a symbolic link :<\/p>\r\n<pre>sudo ln -s \/etc\/apache2\/sites-available\/your_domain.com \/etc\/apache2\/sites-enabled\/your_domain.com<\/pre>\r\n<pre>\u00a0<\/pre>\r\n<p>Your Laravel installation is now complete.\u00a0 You have successfully installed Laravel on your\u00a0<a href=\"https:\/\/linuxhostsupport.com\/blog\/upgrade-ubuntu-vps-to-16-04-lts\/\">Ubuntu 18.04 VPS<\/a>. Visit the domain name with a web browser you will see the Laravel default page. \u00a0 That\u2019s it. If you followed all of the instructions properly now you should be able to access your Laravel installation on your Ubuntu 18.04 server.<\/p>\r\n<h2>\u00a0<\/h2>\r\n<p><img decoding=\"async\" class=\"alignright  wp-image-1385\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04.jpg\" alt=\"installing laravel on ubuntu 18.04\" width=\"349\" height=\"141\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04.jpg 448w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/installing-laravel-on-ubuntu-18.04-300x121.jpg 300w\" sizes=\"(max-width: 349px) 100vw, 349px\" \/>If you are one of our\u00a0web hosting customers,\u00a0and use our optimized\u00a0Laravel Hosting, you don\u2019t have to install Laravel on Ubuntu 18.04, our expert Linux admins will set up and optimize your Laravel VPS, for you. They are available 24\u00d77 and will take care of your request immediately. As a Laravel developer, you should be focusing on Laravel development and improving your code and leave the server work to us. <strong>PS<\/strong>. If you liked this post, on how to install Laravel on Ubuntu 18.04, please share it with your friends on the social networks using the buttons below or simply leave a comment in the comments section. Thanks.<\/p><div id=\"linux-2306429725\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":1383,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,179,2,182,181],"tags":[185,183,186,20,184],"class_list":["post-1378","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-laravel","category-tutorials","category-ubuntu","category-ubuntu-18-04","tag-guide","tag-laravel","tag-tips-and-tricks","tag-ubuntu","tag-ubuntu-18-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Laravel on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Laravel on Ubuntu 18.04 -LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-21T16:50:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Laravel on Ubuntu 18.04 - LinuxHostSupport\" \/>\n<meta name=\"twitter:description\" content=\"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Laravel on Ubuntu 18.04\",\"datePublished\":\"2021-04-21T16:50:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/\"},\"wordCount\":656,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-laravel-on-ubuntu-18.04.jpg\",\"keywords\":[\"guide\",\"laravel\",\"tips and tricks\",\"ubuntu\",\"ubuntu 18.04\"],\"articleSection\":[\"Guides\",\"Laravel\",\"Tutorials\",\"Ubuntu\",\"Ubuntu 18.04\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Laravel on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-laravel-on-ubuntu-18.04.jpg\",\"datePublished\":\"2021-04-21T16:50:11+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-laravel-on-ubuntu-18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-laravel-on-ubuntu-18.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install laravel on ubuntu 18.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-laravel-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Laravel on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Laravel on Ubuntu 18.04 | LinuxHostSupport","description":"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Laravel on Ubuntu 18.04 -LinuxHostSupport","og_description":"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2021-04-21T16:50:11+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_title":"How to Install Laravel on Ubuntu 18.04 - LinuxHostSupport","twitter_description":"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Laravel on Ubuntu 18.04","datePublished":"2021-04-21T16:50:11+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/"},"wordCount":656,"commentCount":3,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg","keywords":["guide","laravel","tips and tricks","ubuntu","ubuntu 18.04"],"articleSection":["Guides","Laravel","Tutorials","Ubuntu","Ubuntu 18.04"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/","name":"How to Install Laravel on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg","datePublished":"2021-04-21T16:50:11+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Looking for information on how to Install Laravel on Ubuntu 18.04? Click here for a complete guide from LinuxHostingSupport.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-laravel-on-ubuntu-18.04.jpg","width":742,"height":372,"caption":"how to install laravel on ubuntu 18.04"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-laravel-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Laravel on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1378"}],"version-history":[{"count":13,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1378\/revisions"}],"predecessor-version":[{"id":1403,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1378\/revisions\/1403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1383"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}