{"id":295,"date":"2012-05-17T19:18:04","date_gmt":"2012-05-17T19:18:04","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=295"},"modified":"2025-07-01T05:23:25","modified_gmt":"2025-07-01T10:23:25","slug":"how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/","title":{"rendered":"How to install LEMP on Debian 6 (squeeze) VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<h5 class=\"wp-block-heading\" id=\"h-status-deprecated\">Status: Deprecated<\/h5>\n\n\n\n<p>This article, &#8220;How to install LEMP on Debian 6 (squeeze) VPS&#8221; covers a version of Debian 6 that reached end of life (EOL) on November 30th, 2020, and is no longer supported. For this reason, this guide is no longer maintained. If you are currently operating a server running Debian 6, we highly recommend that you contact <a href=\"https:\/\/www.rosehosting.com\/support\/\">RoseHosting fully managed support<\/a> to upgrade or migrate to a supported version of Debian 6 for you.<\/p>\n\n\n\n<p><strong>See Instead:<\/strong> This guide might still be helpful as a reference, but may not work on other Debian releases. We strongly recommend using a guide written for the version of Debian you are using. The following RoseHosting tutorial outlines <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\">how to install LEMP on Debian 8<\/a>.<\/p>\n\n\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg\"><img decoding=\"async\" class=\"alignleft size-medium wp-image-296\" title=\"LNMP-debianvps\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps-300x257.jpg\" alt=\"Nginx MySQL and PHP on DebianVPS\" width=\"300\" height=\"257\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps-300x257.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg 320w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>To install LEMP on Debian 6, you need to start with Nginx, a free, open-source, high-performance HTTP server. Unlike his &#8216;friends&#8217;, it does not rely on threaded handling of the requests but instead it uses a much more scalable event driven (asynchronous) architecture. This uses a very small and predictable amount of memory under heavy load. Nginx in combination with the simple and very robust FastCGI Process Manager for PHP (PHP-FPM) and the world most popular database server MySQL can give you a lot of power and performance while still using a small memory footprint.<\/p>\n<p>The following article looks at how to install and configure this stack on one of our <a title=\"Debian VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener\">Debian based VPSes<\/a>.<br \/><!--more--><\/p>\n<p><strong>1. First, make sure your <a title=\"Debian VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener\">Debian VPS<\/a> is fully up-to-date by executing the following:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># apt-get update &amp;&amp; apt-get -y upgrade --show-upgraded<\/pre>\n<p><strong>2. Next, in order to have the latest stable Nginx, PHP and MySQL in your Debian system we need to include the DotDeb repository to your sources.<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># echo -e \"deb http:\/\/packages.dotdeb.org squeeze all\" &gt;&gt; \/etc\/apt\/sources.list<\/pre>\n<p><strong>3. Now as we have added the repo to the sources, we need to import its GPG key<\/strong>. <strong>To do that execute the following statement:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># gpg --keyserver keys.gnupg.net --recv-key 89DF5277 &amp;&amp; gpg -a --export 89DF5277 | apt-key add -<\/pre>\n<p>&#8211; You should get something like the output below:<br \/><em>gpg: requesting key 89DF5277 from hkp server keys.gnupg.net<br \/>gpg: key 89DF5277: public key &#8220;Guillaume Plessis &#8221; imported<br \/>gpg: no ultimately trusted keys found<br \/>gpg: Total number processed: 1<br \/>gpg: imported: 1 (RSA: 1)<br \/>OK<\/em><\/p>\n<p><strong>4. Now, the DotDeb repo is fully setup so we need to refresh the sources by running:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># apt-get update<\/pre>\n<p>&#8211; If you have Apache webserver running on your system you need to stop and disable it so Nginx can be started later on. To do this run the following command:<\/p>\n<pre class=\"brush: shell; gutter: false\"># [[ $(pgrep apache2) ]] &amp;&amp; service apache2 stop &amp;&amp; update-rc.d -f apache2 disable<\/pre>\n<p><strong>5. Install the LEMP (Linux Nginx MySQL and PHP) stack by executing the following commands:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># apt-get -y install nginx\n# apt-get -y install php5-fpm php5-gd php5-curl php5-mysql\n# apt-get -y install mysql-server<\/pre>\n<p><strong>6. Next, configure a simple nginx virtual host directive. To do this, create a new configuration file in &#8216;\/etc\/nginx\/sites-available\/example&#8217; using your favorite editor:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\">server {\n    server_name example.com www.example.com;\n\n    access_log \/var\/log\/nginx\/access.log;\n    error_log \/var\/log\/nginx\/error.log error;\n\n    root \/var\/www\/;\n    index index.php index.html index.htm;\n\n    location ~ \\.php$ {\n        try_files $uri =404;\n        fastcgi_pass 127.0.0.1:9000;\n        fastcgi_index index.php;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n        fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\n        fastcgi_param  REQUEST_URI    $request_uri;\n        fastcgi_param  DOCUMENT_URI   $document_uri;\n        fastcgi_param  DOCUMENT_ROOT  $document_root;\n        fastcgi_param  REMOTE_ADDR    $remote_addr;\n        fastcgi_param  REMOTE_PORT    $remote_port;\n        fastcgi_param  SERVER_ADDR    $server_addr;\n        fastcgi_param  SERVER_PORT    $server_port;\n        fastcgi_param  SERVER_NAME    $server_name;\n        fastcgi_param  QUERY_STRING   $query_string;\n        fastcgi_param  REQUEST_METHOD $request_method;\n        fastcgi_param  CONTENT_TYPE   $content_type;\n        fastcgi_param  CONTENT_LENGTH $content_length;\n\n        ## prevent php version info\n        fastcgi_hide_header X-Powered-By;\n    }\n}<\/pre>\n<p><em>make sure you replace &#8216;example.com&#8217; with your desired domain name. Also, feel free to set the document root and log paths to your likings.<\/em><\/p>\n<p><strong>7. Once the vhost configuration file is created, we need to actually enable it. This can be done by adding a symlink of the newly created vhost directive to &#8216;\/etc\/nginx\/sites-enabled\/&#8217;. So execute:<br \/><\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># ln -s \/etc\/nginx\/sites-available\/example \/etc\/nginx\/sites-enabled\/<\/pre>\n<p><strong>8. With all that in place, we are ready to start the services up. Execute the following command in order to reload your Nginx, PHP and MySQL servers:<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># for s in nginx php5-fpm mysql; do service $s restart; done<\/pre>\n<p><strong>9. Now, create a test PHP info page so we can test if everything is OK.<\/strong><\/p>\n<pre class=\"brush: shell; gutter: false\"># echo -e \"<!--?php\\n\\tphpinfo();\\n?-->\" &gt; \/var\/www\/info.php\n# chown -R www-data: \/var\/www\/<\/pre>\n<p>Now navigate to <em>&#8216;http:\/\/example.com\/info.php&#8217;<\/em> and you should see PHP&#8217;s built-in info page.<\/p>\n<p><em>It is good idea and recommended to install some cache engine in order to optimize and get things working faster. The PHP-APC cache can drastically improve performance so install it by:<\/em><\/p>\n<pre class=\"brush: shell; gutter: false\"># apt-get -y install php5-apc &amp;&amp; service php5-fpm restart<\/pre>\n<p>The default APC settings are fine, but of course customizing the options can significantly speed things up, so stay tuned as in some of the next articles we will go deeper into highly optimizing the LEMP stack so you can benefit from using it on your <a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener\">virtual private server<\/a>.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/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>","protected":false},"excerpt":{"rendered":"<p>Status: Deprecated This article, &#8220;How to install LEMP on Debian 6 (squeeze) VPS&#8221; covers a version of Debian 6 that &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install LEMP on Debian 6 (squeeze) VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#more-295\" aria-label=\"Read more about How to install LEMP on Debian 6 (squeeze) VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":296,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1702,1700,13,1707],"tags":[52,48,39,49,50,51,1152,53,28,18],"class_list":["post-295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-debian","category-tutorials","category-web-servers","tag-apc","tag-debian","tag-mysql","tag-nginx","tag-php","tag-php-fpm","tag-rosehosting","tag-squeeze","tag-virtual-private-server","tag-vps","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install LEMP on Debian 6 to optimize your server&#039;s performance with Nginx and MySQL.\" \/>\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-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-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 on Debian 6 (squeeze) VPS\" \/>\n<meta property=\"og:description\" content=\"How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-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=\"2012-05-17T19:18:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-01T10:23:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"320\" \/>\n\t<meta property=\"og:image:height\" content=\"275\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"4 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-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install LEMP on Debian 6 (squeeze) VPS\",\"datePublished\":\"2012-05-17T19:18:04+00:00\",\"dateModified\":\"2025-07-01T10:23:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/\"},\"wordCount\":650,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/05\\\/LNMP-debianvps.jpg\",\"keywords\":[\"apc\",\"debian\",\"mysql\",\"nginx\",\"php\",\"php-fpm\",\"rosehosting\",\"squeeze\",\"Virtual Private Server\",\"vps\"],\"articleSection\":[\"Databases\",\"Debian\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/\",\"name\":\"How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/05\\\/LNMP-debianvps.jpg\",\"datePublished\":\"2012-05-17T19:18:04+00:00\",\"dateModified\":\"2025-07-01T10:23:25+00:00\",\"description\":\"Learn how to install LEMP on Debian 6 to optimize your server's performance with Nginx and MySQL.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/05\\\/LNMP-debianvps.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/05\\\/LNMP-debianvps.jpg\",\"width\":\"320\",\"height\":\"275\",\"caption\":\"Nginx MySQL and PHP on DebianVPS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install LEMP on Debian 6 (squeeze) VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"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\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"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\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?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 Premium plugin. -->","yoast_head_json":{"title":"How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting","description":"Learn how to install LEMP on Debian 6 to optimize your server's performance with Nginx and MySQL.","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-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to install LEMP on Debian 6 (squeeze) VPS","og_description":"How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2012-05-17T19:18:04+00:00","article_modified_time":"2025-07-01T10:23:25+00:00","og_image":[{"width":320,"height":275,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install LEMP on Debian 6 (squeeze) VPS","datePublished":"2012-05-17T19:18:04+00:00","dateModified":"2025-07-01T10:23:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/"},"wordCount":650,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg","keywords":["apc","debian","mysql","nginx","php","php-fpm","rosehosting","squeeze","Virtual Private Server","vps"],"articleSection":["Databases","Debian","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/","name":"How to install LEMP on Debian 6 (squeeze) VPS | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg","datePublished":"2012-05-17T19:18:04+00:00","dateModified":"2025-07-01T10:23:25+00:00","description":"Learn how to install LEMP on Debian 6 to optimize your server's performance with Nginx and MySQL.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/05\/LNMP-debianvps.jpg","width":"320","height":"275","caption":"Nginx MySQL and PHP on DebianVPS"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install LEMP on Debian 6 (squeeze) VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","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":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"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\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?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\/295","targetHints":{"allow":["GET"]}}],"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=295"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":50648,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions\/50648"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/296"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}