{"id":14873,"date":"2023-06-02T07:43:15","date_gmt":"2023-06-02T06:43:15","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=14873"},"modified":"2024-08-02T09:32:27","modified_gmt":"2024-08-02T08:32:27","slug":"deploy-laravel-application-on-vps","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/","title":{"rendered":"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.milesweb.co.uk\/blog\/technology-hub\/why-laravel-is-the-best-php-framework\/\">Laravel is a PHP framework<\/a> for creating websites and applications. And to host them, users require <a href=\"https:\/\/www.milesweb.co.uk\/hosting\/laravel-hosting\" target=\"_blank\" rel=\"noreferrer noopener\">Laravel web hosting<\/a> infrastructure because, only in this way can they make web projects accessible worldwide. Laravel framework allows the development of mission-critical web projects that meet enterprise hosting requirements.<\/p>\n\n\n\n<p>MilesWeb has dedicated hosting and VPS hosting services for such crucial web projects. After all, we want a robust web hosting infrastructure that helps scale websites and applications. Our VPS hosting services comprise unmetered bandwidth, a 1 Gbps network, SSD NVMe storage and 28 data centers location.<\/p>\n\n\n\n<p>We offer managed VPS hosting services. If you want your Laravel projects to be hosted on our Virtual Private Servers, we can assist you with managed plans! However, if you are satisfied with unmanaged web hosting plans, here is the step by step guide to answer &#8216;How to Run a Laravel Project?&#8217; on Virtual Private Servers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prior Requirements<\/h2>\n\n\n\n<p>Referring to the above information, we assume that you have the prior technical expertise to manage virtual private servers. You must know Linux command lines with an Ubuntu operating system. Once you are able to conduct all relevant tasks on the command terminal, underlying steps will help you know &#8216;how to run a Laravel project&#8217; on VPS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Follow to Run Laravel Project On VPS<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.&nbsp;Server&#8217;s Provisioning<\/h3>\n\n\n\n<p>First, you must set up a virtual private server to run the Laravel project on it. Then, SSH (Secure Shell) protocol is required to initiate the setup. This protocol lets users connect to a remote server using a password or key pair. Below is the command to generate new key pairs on machines.<\/p>\n\n\n\n<p>ssh-keygen -t rsa<\/p>\n\n\n\n<p>You should be familiar with the Terminal and how to operate Unix-like OSes in general before starting. These command line codes should work on any Linux distribution of VPS that uses the standard Terminal syntax.<\/p>\n\n\n\n<p><strong>Update the package list:<\/strong> Run the following command to update the package list on your VPS:<\/p>\n\n\n\n<p>sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/p>\n\n\n\n<p>Now you can install PHP. It is straightforward and effortless to do so.<\/p>\n\n\n\n<p>sudo apt-get install php<\/p>\n\n\n\n<p>PHP and several extensions will be installed along with the latest version of PHP. This code will tell you what version you have.<\/p>\n\n\n\n<p>php \u2013v<\/p>\n\n\n\n<p>If you want to install PHP 7.4, how do you do it? It is necessary to use a PPA, or a Personal Package Archive, created by Ond\u0159ej Sur\u00fd. Installing older PHP versions this way is safe. One by one, run these three commands:<\/p>\n\n\n\n<p>sudo apt install software-properties-common<\/p>\n\n\n\n<p>sudo add-apt-repository ppa:ondrej\/php<\/p>\n\n\n\n<p>sudo apt-get update<\/p>\n\n\n\n<p>Now that PHP 8.0 is recognized by your system, run the following command:<\/p>\n\n\n\n<p>sudo apt install php8.0<\/p>\n\n\n\n<p>Any PHP version can be substituted for this number.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.&nbsp;VPS Provisioning<\/h3>\n\n\n\n<p>Add our VPS hosting plans to the cart and include all relevant add-on features like backup, DDoS protection, website backup and others. After that, you will get all log in credentials to access the server and its databases.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Set up Composer<\/h4>\n\n\n\n<p>Here are the steps for setting up a composer.<\/p>\n\n\n\n<p>$ cd ~<\/p>\n\n\n\n<p>$ mkdir bin<\/p>\n\n\n\n<p>$ cd bin<\/p>\n\n\n\n<p>$ curl -sS https:\/\/getcomposer.org\/installer | php<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a><\/a>Set up Envoy<\/h4>\n\n\n\n<p>\/\/ Envoy.blade.php<\/p>\n\n\n\n<p>@setup<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; $branch = isset($branch) ? $branch : &#8220;master&#8221;;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; $serverUser = &#8216;deployer&#8217;;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; $rootDirectory = &#8216;~\/home\/&#8217; . $serverUser;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; $server = $serverUser . &#8216;@server_ip&#8217;;<\/p>\n\n\n\n<p>@endsetup<\/p>\n\n\n\n<p>@servers([&#8216;production&#8217; =&gt; $server])<\/p>\n\n\n\n<p>@task(&#8216;clone&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; mkdir {{ $rootDirectory }}\/project&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; mkdir {{ $rootDirectory }}\/project<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; chmod 755 {{ $rootDirectory }}\/project&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; chmod 755 {{ $rootDirectory }}\/project<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; git clone git@github.com:username\/project.git deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; git clone git@github.com:username\/project.git deploy<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;environment&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project\/deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project\/deploy<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; cp .env.example .env&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cp .env.example .env<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; SSH to your server, paste your valid .env credentials &amp; save them. Then run envoy run post-deploy&#8217;<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;composer-install&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project\/deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project\/deploy<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; \/home\/{{ $serverUser }}\/bin\/composer.phar install &#8211;prefer-dist &#8211;no-scripts &#8211;no-dev -q -o&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; \/home\/{{ $serverUser }}\/bin\/composer.phar install &#8211;prefer-dist &#8211;no-scripts &#8211;no-dev -q -o<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;composer-update&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project\/deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project\/deploy<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; \/home\/{{ $serverUser }}\/bin\/composer.phar dump -o &amp;&amp; php artisan optimize&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; \/home\/{{ $serverUser }}\/bin\/composer.phar dump -o &amp;&amp; php artisan optimize<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;migrate&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project\/deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project\/deploy<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; php artisan migrate &#8211;force;<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;symlink&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; ln -s \/home\/{{ $serverUser }}\/project\/deploy\/public \/var\/www\/html&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; ln -s \/home\/{{ $serverUser }}\/project\/deploy\/public \/var\/www\/html<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@task(&#8216;deploy-changes&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; cd {{ $rootDirectory }}\/project\/deploy&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; cd {{ $rootDirectory }}\/project\/deploy<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&gt;&gt; git checkout {{ $branch }}&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; git checkout {{ $branch }}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; echo &#8216;&lt;&lt; git pull &#8211;rebase&#8217;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; git pull &#8211;rebase<\/p>\n\n\n\n<p>@endtask<\/p>\n\n\n\n<p>@story(&#8216;deploy&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; setup<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; environment<\/p>\n\n\n\n<p>@endstory<\/p>\n\n\n\n<p>@story(&#8216;post-deploy&#8217;, [&#8216;on&#8217; =&gt; &#8216;production&#8217;])<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; composer-install<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; composer-update<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; migrate<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; symlink<\/p>\n\n\n\n<p>@endstory<\/p>\n\n\n\n<p>@story(&#8216;update&#8217;)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; deploy-changes<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; composer-update<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp; migrate<\/p>\n\n\n\n<p>@endstory<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a><\/a>Deploy<\/h4>\n\n\n\n<p>During the initial launch phase of your application on the remote server, you will only need to run this task.<\/p>\n\n\n\n<p>$ envoy run deploy<\/p>\n\n\n\n<p>A message is displayed at the end of the initial task, informing the user that the .env file is being prepared.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a><\/a>Set up .env<\/h4>\n\n\n\n<p>Make sure that the .env configuration contains the necessary credentials for your application to run on the server. Copy and paste the .env file to the server where the .env file is located, and save it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a><\/a>Final Deploy<\/h4>\n\n\n\n<p>Run another command after saving the server .env file.<\/p>\n\n\n\n<p>$ envoy run post-deploy<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a><\/a>Finishing<\/h4>\n\n\n\n<p>You may be wondering if the deployment script could potentially cause your application to break and result in downtime during any of the deployments.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3.&nbsp;Basic Setup Process<\/h3>\n\n\n\n<p>If your VPS server runs hassle-free, use SSH with an IP address to log in as a root user. You can check your IP address online. Here is an example of how can implement it:<\/p>\n\n\n\n<p>ssh root@104.248.157.172<\/p>\n\n\n\n<p>Logging in to the client using key pair is more secure than using a user id and password. Below is the command to add a new user to the terminal.<\/p>\n\n\n\n<p>adduser nonroot<\/p>\n\n\n\n<p>Execute this command in your server. Then, create a sudo group using the following command:<\/p>\n\n\n\n<p>usermod -aG sudo nonroot<\/p>\n\n\n\n<p>After deploying the basic setup, installing PHP and other required software on your server is time. Here are the rest of the steps that we will discuss.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Set up a VPS instance<\/h3>\n\n\n\n<p>Once you&#8217;ve chosen a provider, create a new VPS instance and choose an operating system (such as Ubuntu or CentOS) that supports PHP, MySQL, and other required software. Configure the server&#8217;s firewall, SSH access, and other security settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install the necessary software<\/h3>\n\n\n\n<p>Next, install the necessary software on the server, such as PHP, MySQL, Nginx or Apache, and Composer. You can use package managers like apt or yum to install these packages automatically. Install Composer, a dependency manager for PHP, by running the following commands:<\/p>\n\n\n\n<p>curl -sS https:\/\/getcomposer.org\/installer | php<\/p>\n\n\n\n<p>sudo mv composer.phar \/usr\/local\/bin\/composer<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install Node.js and npm by running the command<\/li>\n<\/ul>\n\n\n\n<p>sudo apt-get install nodejs npm.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install the Laravel installer by running the command sudo composer global require laravel\/installer.<\/li>\n\n\n\n<li>Add Laravel to your PATH environment variable by running the command<\/li>\n<\/ul>\n\n\n\n<p>echo &#8216;export PATH=&#8221;$PATH:$HOME\/.composer\/vendor\/bin&#8221;&#8216; &gt;&gt; ~\/.bashrc.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Refresh your shell by running the command source<\/li>\n<\/ul>\n\n\n\n<p>&nbsp;~\/.bashrc<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Configure the server<\/h3>\n\n\n\n<p><a><\/a>Configure the server to work with Laravel by setting up a database, configuring the web server, and setting environment variables. You may also need to install additional PHP extensions, such as the mbstring and pdo_mysql extensions, to support Laravel&#8217;s requirements. You can install MySQL on the server using the command:&#8221;<\/p>\n\n\n\n<p>sudo apt install mysql-server \u2013y<\/p>\n\n\n\n<p>Then, secure your MySQL database, and execute the following command:<\/p>\n\n\n\n<p>sudo mysql_secure_installation<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Deploy the application<\/h3>\n\n\n\n<p>Finally, deploy your Laravel application to the server using Git or other version control systems. Configure the application to use the correct database credentials and environment variables. You may also need to set up a domain name and <a href=\"https:\/\/www.milesweb.co.uk\/blog\/technology-hub\/using-ssl-tls-certificates-to-secure-your-laravel-application\/\">SSL certificate to secure your laravel application<\/a>.<\/p>\n\n\n\n<p>Use a deployment tool, such as Envoyer or Deployer, to automate the deployment process and minimize downtime. Consider using a CDN, such as Cloudflare or Akamai, to cache static assets and reduce server load. Implement security best practices, such as setting up firewalls, updating software regularly, and using strong passwords and encryption.<\/p>\n\n\n\n<p>Installing name server<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a>Installing web server on Linux VPS<\/h2>\n\n\n\n<p>For this tutorial, we will consider the Apache web server example. Let us discuss step by step how to install it on Linux VPS servers.<\/p>\n\n\n\n<p>&nbsp;&nbsp; Log in to your Linux VPS via SSH using your terminal program.<\/p>\n\n\n\n<p>Update the package manager on your VPS using the following command:<\/p>\n\n\n\n<p>sudo apt-get update<\/p>\n\n\n\n<p>&nbsp; Install the Apache web server using the following command:<\/p>\n\n\n\n<p>sudo apt-get install apache2<\/p>\n\n\n\n<p>Once the installation is complete, start the Apache service using the following command:<\/p>\n\n\n\n<p>sudo systemctl start apache2<\/p>\n\n\n\n<p>&nbsp;&nbsp; Check the status of the Apache service to ensure it&#8217;s running properly:<\/p>\n\n\n\n<p>sudo systemctl status apache2<\/p>\n\n\n\n<p>&nbsp; Enable the Apache service to start automatically on system boot:<\/p>\n\n\n\n<p>sudo systemctl enable apache2<\/p>\n\n\n\n<p>&nbsp;Open up the firewall to allow incoming HTTP and HTTPS traffic by running the following commands:<\/p>\n\n\n\n<p>sudo ufw allow http<\/p>\n\n\n\n<p>sudo ufw allow https<\/p>\n\n\n\n<p>&nbsp;Verify that the Apache web server is working by the following command<\/p>\n\n\n\n<p># \/etc\/init.d\/apache2 status<\/p>\n\n\n\n<p>Run the following command to restart Apache.<\/p>\n\n\n\n<p># \/etc\/init.d\/apache2 restart<\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>Deploying Laravel applications on Virtual Private Servers requires some technical knowledge, but it can provide more control and flexibility than shared hosting. Following these steps, you can set up a reliable and scalable server for your Laravel application. And when it comes to hosting these web projects, MilesWeb&#8217;s VPS hosting with robust infrastructure makes Laravel hosting hassle-free. Thus, choose our reliable web hosting to scale your web project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel is a PHP framework for creating websites and applications. And to host them, users require Laravel web hosting infrastructure because, only in this way can they make web projects accessible worldwide. Laravel framework allows the development of mission-critical web projects that meet enterprise hosting requirements. MilesWeb has dedicated hosting and VPS hosting services for [&hellip;]<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[2973,2974],"class_list":["post-14873","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","tag-deploying-laravel-applications","tag-virtual-private-servers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers<\/title>\n<meta name=\"description\" content=\"Follow this step by step guide, to deploy Laravel applications on virtual private servers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers\" \/>\n<meta property=\"og:description\" content=\"Follow this step by step guide, to deploy Laravel applications on virtual private servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-06-02T06:43:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-02T08:32:27+00:00\" \/>\n<meta name=\"author\" content=\"Jackson Lane\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jackson Lane\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/\",\"name\":\"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2023-06-02T06:43:15+00:00\",\"dateModified\":\"2024-08-02T08:32:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/1f580bdff0fa81720fae0fd0c3919758\"},\"description\":\"Follow this step by step guide, to deploy Laravel applications on virtual private servers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/1f580bdff0fa81720fae0fd0c3919758\",\"name\":\"Jackson Lane\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dd43b6ec8f85bdee32ceaac59c48807f?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dd43b6ec8f85bdee32ceaac59c48807f?s=96&d=blank&r=g\",\"caption\":\"Jackson Lane\"},\"description\":\"I am an experienced Marketing Manager at MilesWeb UK, a leading web hosting company in the UK. With extensive knowledge in web hosting, WordPress, digital marketing, and web development, I'm committed to helping businesses succeed online. His expertise and enthusiasm for the digital world make him a valuable asset in the constantly changing field of online marketing.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/jackson-lane\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers","description":"Follow this step by step guide, to deploy Laravel applications on virtual private servers.","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:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/","og_locale":"en_GB","og_type":"article","og_title":"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers","og_description":"Follow this step by step guide, to deploy Laravel applications on virtual private servers.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2023-06-02T06:43:15+00:00","article_modified_time":"2024-08-02T08:32:27+00:00","author":"Jackson Lane","twitter_misc":{"Written by":"Jackson Lane","Estimated reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/","name":"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2023-06-02T06:43:15+00:00","dateModified":"2024-08-02T08:32:27+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/1f580bdff0fa81720fae0fd0c3919758"},"description":"Follow this step by step guide, to deploy Laravel applications on virtual private servers.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/deploy-laravel-application-on-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"Step-By-Step Guide to Deploying Laravel Applications on Virtual Private Servers"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/1f580bdff0fa81720fae0fd0c3919758","name":"Jackson Lane","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dd43b6ec8f85bdee32ceaac59c48807f?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd43b6ec8f85bdee32ceaac59c48807f?s=96&d=blank&r=g","caption":"Jackson Lane"},"description":"I am an experienced Marketing Manager at MilesWeb UK, a leading web hosting company in the UK. With extensive knowledge in web hosting, WordPress, digital marketing, and web development, I'm committed to helping businesses succeed online. His expertise and enthusiasm for the digital world make him a valuable asset in the constantly changing field of online marketing.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/jackson-lane\/"}]}},"views":124,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=14873"}],"version-history":[{"count":5,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14873\/revisions"}],"predecessor-version":[{"id":15848,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/14873\/revisions\/15848"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=14873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=14873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=14873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}