{"id":17510,"date":"2015-08-18T15:03:02","date_gmt":"2015-08-18T20:03:02","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17510"},"modified":"2022-12-09T05:34:06","modified_gmt":"2022-12-09T11:34:06","slug":"how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/","title":{"rendered":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS"},"content":{"rendered":"
<\/div>

\"lemp_stack\"In this article we will walk you through the steps on how to install LEMP (Linux, Nginx, MySQL and PHP-FPM) on a Debian 8 VPS<\/a>.
\nA LEMP stack is a synonym of LEMP server or LEMP web server. It refers to a set-up which includes Linux, Nginx, MySQL (MariaDB) and PHP.<\/p>\n


\nREQUIREMENTS<\/strong><\/p>\n

We will be using our SSD 1 Linux VPS<\/a> hosting plan for this tutorial.<\/p>\n

UPDATE THE SYSTEM<\/strong><\/p>\n

Make sure your server is fully up to date using:<\/p>\n

# apt-get update && apt-get upgrade<\/pre>\n

INSTALL NGINX<\/strong><\/p>\n

To install Nginx on your Debian 8 server, you need to execute the following command:<\/p>\n

# apt-get install nginx<\/pre>\n

After the installation is complete, you can start Nginx with:<\/p>\n

# systemctl start nginx<\/pre>\n

Enable Nginx to start on boot:<\/p>\n

# systemctl enable nginx<\/pre>\n

Possible issues:<\/strong><\/p>\n

If during the Nginx installation you encounter error such as:<\/p>\n

dpkg: error processing package nginx (--configure):\r\ndependency problems - leaving unconfigured\r\nProcessing triggers for systemd (215-17+deb8u1) ...\r\nErrors were encountered while processing:\r\nnginx-full\r\nnginx\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)<\/pre>\n

then, you can fix this by opening the default Nginx configuration file and comment the listen [::]:80 default_server;<\/strong><\/em> line. Enter the below command:<\/p>\n

# vim \/etc\/nginx\/sites-available\/default<\/pre>\n

Locate the listen [::]:80 default_server;<\/strong><\/em> line and comment it by putting # in front of the line. Restart Nginx for the changes to take effect and run the install Nginx command so the package manager finishes the Nginx configuration:<\/p>\n

# systemctl restart nginx\r\n\r\n# apt-get install nginx<\/pre>\n

Verify that Nginx is running by opening a web browser and visiting your server IP address (http:\/\/server_ip) . You should get the Nginx welcome page like the one below:<\/p>\n

\"nginx-debian8\"<\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

INSTALL MYSQL<\/strong><\/p>\n

Now let’s install MySQL. Issue the following:<\/p>\n

# apt-get install mysql-server<\/pre>\n

During the installation, you will be asked to enter a password for the MySQL root user. Do not enter an easy to crack password. It should contain at least 8 characters mixed with upper and down cases.<\/p>\n

Now that MySQL is installed, we recommend you to do the MySQL secure installation by running:<\/p>\n

# mysql_secure_installation<\/pre>\n

Enter your root password and answer with ‘n’ when you are asked to change your MySQL root password. Below is the entire procedure that you can follow:<\/p>\n

Setting the root password ensures that nobody can log into the MySQL\r\nroot user without the proper authorisation.\r\n\r\nYou already have a root password set, so you can safely answer 'n'.\r\n\r\nChange the root password? [Y\/n] n\r\n... skipping.\r\n\r\nBy default, a MySQL installation has an anonymous user, allowing anyone\r\nto log into MySQL without having to have a user account created for\r\nthem.\u00a0 This is intended only for testing, and to make the installation\r\ngo a bit smoother.\u00a0 You should remove them before moving into a\r\nproduction environment.\r\n\r\nRemove anonymous users? [Y\/n] y\r\n... Success!\r\n\r\nNormally, root should only be allowed to connect from 'localhost'.\u00a0 This\r\nensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n] y\r\n... Success!\r\n\r\nBy default, MySQL comes with a database named 'test' that anyone can\r\naccess.\u00a0 This is also intended only for testing, and should be removed\r\nbefore moving into a production environment.\r\n\r\nRemove test database and access to it? [Y\/n] y\r\n- Dropping test database...\r\nERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist\r\n... Failed!\u00a0 Not critical, keep moving...\r\n- Removing privileges on test database...\r\n... Success!\r\n\r\nReloading the privilege tables will ensure that all changes made so far\r\nwill take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n] y\r\n... Success!\r\n\r\nCleaning up...\r\n\r\n\r\nAll done!\u00a0 If you've completed all of the above steps, your MySQL\r\ninstallation should now be secure.\r\n\r\nThanks for using MySQL!<\/pre>\n

Enable MySQL to start on boot:<\/p>\n

# systemctl enable mysql<\/pre>\n

INSTALL PHP-FPM<\/strong><\/p>\n

Install PHP-FPM by running the underneath command:<\/p>\n

# apt-get install php5-fpm php5-mysql<\/pre>\n

Next step you need to do is to modify the Nginx configuration file. But to avoid looking for lines that need to be edited or commented out through the default Nginx file, let’s rename the file and create a new one. The below command do exactly that:<\/p>\n

# mv \/etc\/nginx\/sites-available\/default \/etc\/nginx\/sites-available\/default.old\r\n\r\n# vim \/etc\/nginx\/sites-available\/default<\/pre>\n

Now, that you have a new default file opened, paste the following content:<\/p>\n

server {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 listen\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 server_name\u00a0 your_website_name.com;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root \/var\/www\/html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 index index.php index.html index.htm index.nginx-debian.html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location \/ {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try_files $uri $uri\/ =404;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 error_page 404 \/404.html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 error_page 500 502 503 504 \/50x.html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location = \/50x.html {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 root \/var\/www\/html;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location ~ \\.php$ {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try_files $uri =404;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_pass unix:\/var\/run\/php5-fpm.sock;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_index index.php;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 include fastcgi_params;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n}<\/pre>\n

Save and exit the file.<\/p>\n

Now, let’s make a simple PHP page test. Create a PHP info page so you can check your PHP version, modules activated etc…<\/p>\n

Create a file, let’s call it info.ph<\/strong><\/em>p into the \/var\/www\/html<\/strong><\/em> directory:<\/p>\n

 # vim \/var\/www\/html\/info.php<\/pre>\n

Paste the following into the file:<\/p>\n

<?php\r\nphpinfo();\r\n?><\/pre>\n

Restart Nginx for the changes to take effect:<\/p>\n

# systemctl restart nginx<\/pre>\n

Now, open your favorite web browser and navigate to http:\/\/your_server_ip_address\/info.php . You will be welcomed by a web page similar to the one below:<\/p>\n

\"infophp\"<\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

 <\/p>\n

That’s it. You have successfully installed the LEMP <\/strong>stack on your Debian 8 VPS<\/a>.<\/p>\n

Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install the LEMP stack for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n

PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"

In this article we will walk you through the steps on how to install LEMP (Linux, Nginx, MySQL and PHP-FPM) … <\/p>\n

Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":17511,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,1700,13,1712,1707],"tags":[878,310,39,49,51],"yoast_head":"\nHow to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting<\/title>\n<meta name=\"description\" content=\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting\" \/>\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.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting\" \/>\n<meta property=\"og:description\" content=\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2015-08-18T20:03:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T11:34:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png\" \/>\n\t<meta property=\"og:image:width\" content=\"255\" \/>\n\t<meta property=\"og:image:height\" content=\"110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\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:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS\",\"datePublished\":\"2015-08-18T20:03:02+00:00\",\"dateModified\":\"2022-12-09T11:34:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\"},\"wordCount\":596,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png\",\"keywords\":[\"debian 8\",\"lemp\",\"mysql\",\"nginx\",\"php-fpm\"],\"articleSection\":[\"Databases\",\"Debian\",\"Tutorials\",\"Web Frameworks\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\",\"name\":\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png\",\"datePublished\":\"2015-08-18T20:03:02+00:00\",\"dateModified\":\"2022-12-09T11:34:06+00:00\",\"description\":\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png\",\"width\":255,\"height\":110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","description":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","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.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","og_description":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2015-08-18T20:03:02+00:00","article_modified_time":"2022-12-09T11:34:06+00:00","og_image":[{"width":255,"height":110,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png","type":"image\/png"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS","datePublished":"2015-08-18T20:03:02+00:00","dateModified":"2022-12-09T11:34:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/"},"wordCount":596,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png","keywords":["debian 8","lemp","mysql","nginx","php-fpm"],"articleSection":["Databases","Debian","Tutorials","Web Frameworks","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/","name":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png","datePublished":"2015-08-18T20:03:02+00:00","dateModified":"2022-12-09T11:34:06+00:00","description":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS - RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2015\/08\/lemp_stack.png","width":255,"height":110},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install LEMP (Linux, Nginx, MySQL & PHP-FPM) on a Debian 8 VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"]},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17510"}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=17510"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17510\/revisions"}],"predecessor-version":[{"id":43937,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/17510\/revisions\/43937"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/17511"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=17510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=17510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=17510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}