{"id":31806,"date":"2020-02-13T15:12:37","date_gmt":"2020-02-13T21:12:37","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31806"},"modified":"2022-06-03T03:33:09","modified_gmt":"2022-06-03T08:33:09","slug":"how-to-install-lighttpd-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/","title":{"rendered":"How to Install Lighttpd on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-32376\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will demonstrate how to install and deploy Lighttpd on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 9 VPS<\/a> with FPM\/FastCGI support.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-32377\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/installing-lighttpd-with-fpm-fastcgi-support-on-debian9-vps.jpg\" alt=\"\" width=\"120\" height=\"100\" \/>Lighttpd is a free, open-source and high-performance web server developed by Jan Kneschke. It has a low memory footprint when compared to other web servers and is specially designed for speed-critical environments. It is secure, fast, and can handle up to 10,000 connections in parallel on a single server. It is used by many websites, including YouTube, Bloglines, WikiMedia, and many more. Lighttpd comes with a rich set of features, such as FastCGI, SCGI, Auth, URL-Rewriting, Output-Compression, event mechanism, and more. These features combined make for a compelling and high-performance web server solution.<\/p>\n<p>Let&#8217;s get started with the installation.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69d75f2d2bd2e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69d75f2d2bd2e\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Step-1-Log-in-via-SSH-and-Update-the-System\" >Step 1: Log in via SSH and Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Step-2-Install-MariaDB-Server\" >Step 2: Install MariaDB Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Step-3-Install-Lighttpd\" >Step 3: Install Lighttpd<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Step-4-Install-PHP-and-PHP-FPM\" >Step 4: Install PHP and PHP-FPM<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#Step-5-Test-PHP-FPM-Support-on-Lighttpd\" >Step 5: Test PHP-FPM Support on Lighttpd<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>For the purpose of this tutorial, we will use a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a>.<\/li>\n<li>Full SSH root access, or a user with sudo privileges is also required.<\/li>\n<li>A valid domain name is pointed with your server IP address. In this tutorial we will use <code>test.example.com<\/code>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update-the-System\"><\/span><span id=\"Step-1-Log-in-via-SSH-and-Update-the-System\" class=\"ez-toc-section\">Step 1: Log in via SSH and Update the System<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we\u2019re going to need to log into our server using SSH. You can do that by entering this command:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_Number<\/span><\/pre>\n<p>Remember to replace \u201croot\u201d with your username if you are not using the root user. Change \u201c<span style=\"color: #ff0000;\">IP_Address<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">Port_Number<\/span>\u201d according to your server\u2019s IP address and SSH port number.<\/p>\n<p>Once you are logged in, you should update all of your packages to their latest available versions.<\/p>\n<pre>apt-get update -y\r\napt-get upgrade -y<\/pre>\n<p>Once the updates are completed, we can proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-MariaDB-Server\"><\/span>Step 2: Install MariaDB Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we will install the MariaDB database server by running the following command:<\/p>\n<pre>apt-get install mariadb-server mariadb-client<\/pre>\n<p>Once the installation has been completed, start the MariaDB service and enable it to start after system reboot:<\/p>\n<pre>systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n<p>Next, log in to MariaDB shell with the following command:<\/p>\n<pre>mysql<\/pre>\n<p>If everything is fine, you should see the following output:<\/p>\n<pre>Welcome to the MariaDB monitor. Commands end with ; or \\g.\r\nYour MariaDB connection id is 4\r\nServer version: 10.1.38-MariaDB-0+deb9u1 Debian 9.8\r\n\r\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.<\/pre>\n<pre>MariaDB [(none)]&gt;<\/pre>\n<p>Next, secure your MariaDB installation by using the <code>mysql_secure_installation<\/code> script. This script will remove anonymous users, disallow root login remotely, and remove the test database.<\/p>\n<pre>mysql_secure_installation<\/pre>\n<p>Answer all the questions as shown below:<\/p>\n<pre>Enter current password for root (enter for none): press [Enter]\r\nSet root password? [Y\/n]: N\r\nRemove anonymous users? [Y\/n]: Y\r\nDisallow root login remotely? [Y\/n]: Y\r\nRemove test database and access to it? [Y\/n]: Y\r\nReload privilege tables now? [Y\/n]: Y<\/pre>\n<p>Once MariaDB is secured, you can proceed to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Lighttpd\"><\/span>Step 3: Install Lighttpd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default, the latest version of Lighttpd is available in the Debian 9 default repository. You can install it by just running the following command:<\/p>\n<pre>apt-get install lighttpd<\/pre>\n<p>Once installed, start the Lighttpd service and enable it to start after system reboot using the following command:<\/p>\n<pre>systemctl start lighttpd\r\nsystemctl enable lighttpd<\/pre>\n<p>You can verify the Lighttpd status with the following command:<\/p>\n<pre>systemctl status lighttpd<\/pre>\n<p>If everything is fine you should get the following output:<\/p>\n<pre>\u25cf lighttpd.service - Lighttpd Daemon\r\nLoaded: loaded (\/lib\/systemd\/system\/lighttpd.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Mon 2019-08-12 14:48:35 UTC; 29s ago\r\nMain PID: 2354 (lighttpd)\r\nCGroup: \/system.slice\/lighttpd.service\r\n\u2514\u25002354 \/usr\/sbin\/lighttpd -D -f \/etc\/lighttpd\/lighttpd.conf\r\n\r\nAug 12 14:48:35 debian9 systemd[1]: Starting Lighttpd Daemon...\r\nAug 12 14:48:35 debian9 systemd[1]: Started Lighttpd Daemon.<\/pre>\n<p>Now, open a web browser and visit the following URL <code>http:\/\/test.example.com<\/code>. You should get the Lighttpd default page as shown below:<\/p>\n<p><img decoding=\"async\" class=\"size-large wp-image-31807 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-1024x538.png\" alt=\"\" width=\"1024\" height=\"538\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-1024x538.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-150x79.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-300x158.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-768x404.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd-1080x568.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/lighttpd.png 1263w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Lighttpd&#8217;s default document root is <code>\/var\/ww\/html<\/code> on Debian 9, the main configuration file is<br \/>\n<code>\/etc\/lighttpd\/lighttpd.conf<\/code> and other configuration files are located at <code>\/etc\/lighttpd\/conf-available<\/code> directory.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-PHP-and-PHP-FPM\"><\/span>Step 4: Install PHP and PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will install PHP and PHP-FPM, and enable them to work with Lighttpd. You can install PHP along with all of its necessary extensions with the following command:<\/p>\n<pre>apt-get install php php-cli php-common php-fpm php-mysql<\/pre>\n<p>Once installed, we need to modify the php.ini file to enable PHP support for Lighttpd.<\/p>\n<pre>nano \/etc\/php\/7.0\/fpm\/php.ini<\/pre>\n<p>Change cgi.fix_pathinfo value to 1:<\/p>\n<pre>cgi.fix_pathinfo=1<\/pre>\n<p>Save and close the file.<\/p>\n<p>By default, PHP-FPM listens on the UNIX socket <code>\/var\/run\/php7-fpm.sock<\/code>. So, we will need to modify the file <code>\/etc\/php\/7.0\/fpm\/pool.d\/www.conf<\/code> and set PHP-FPM to listens on TCP socket.<\/p>\n<pre>nano \/etc\/php\/7.0\/fpm\/pool.d\/www.conf<\/pre>\n<p>Find the line:<\/p>\n<pre>listen = \/run\/php\/php7.0-fpm.sock<\/pre>\n<p>Replace it with the following line:<\/p>\n<pre>listen = 127.0.0.1:9000<\/pre>\n<p>Save and close the file. Next, open the file <code>15-fastcg-php.conf<\/code> to enable FastCGI support in Lighttpd:<\/p>\n<pre>nano \/etc\/lighttpd\/conf-available\/15-fastcgi-php.conf<\/pre>\n<p>Find the following lines:<\/p>\n<pre>\"bin-path\" =&gt; \"\/usr\/bin\/php-cgi\",\r\n\"socket\" =&gt; \"\/var\/run\/lighttpd\/php.socket\",<\/pre>\n<p>Replace them with the following:<\/p>\n<pre>\"host\" =&gt; \"127.0.0.1\",\r\n\"port\" =&gt; \"9000\",<\/pre>\n<p>Save and close the file. Then, enable FastCGI and FastCGI-PHP modules with the following command:<\/p>\n<pre>lighty-enable-mod fastcgi\r\nlighty-enable-mod fastcgi-php<\/pre>\n<p>Finally, restart Lighttpd and PHP-FPM service to apply all the configuration changes:<\/p>\n<pre>systemctl restart php7.0-fpm\r\nsystemctl restart lighttpd<\/pre>\n<p>You can verify the PHP-FPM with the following command:<\/p>\n<pre>systemctl status php7.0-fpm<\/pre>\n<p>If everything is fine you should get the following output:<\/p>\n<pre>\u25cf php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager\r\nLoaded: loaded (\/lib\/systemd\/system\/php7.0-fpm.service; enabled; vendor preset: enabled)\r\nActive: active (running) since Mon 2019-08-12 14:55:36 UTC; 1min 56s ago\r\nDocs: man:php-fpm7.0(8)\r\nMain PID: 12288 (php-fpm7.0)\r\nStatus: \"Processes active: 0, idle: 2, Requests: 0, slow: 0, Traffic: 0req\/sec\"\r\nTasks: 3 (limit: 7372)\r\nCGroup: \/system.slice\/php7.0-fpm.service\r\n\u251c\u250012288 php-fpm: master process (\/etc\/php\/7.0\/fpm\/php-fpm.conf)\r\n\u251c\u250012289 php-fpm: pool www\r\n\u2514\u250012290 php-fpm: pool www\r\n\r\nAug 12 14:55:36 debian9 systemd[1]: Stopped The PHP 7.0 FastCGI Process Manager.\r\nAug 12 14:55:36 debian9 systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...\r\nAug 12 14:55:36 debian9 systemd[1]: Started The PHP 7.0 FastCGI Process Manager.<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Test-PHP-FPM-Support-on-Lighttpd\"><\/span>Step 5: Test PHP-FPM Support on Lighttpd<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Lighttpd is now installed and configured to work with FPM\/FastCGI. Next, we will need to create a virtual host configuration file for Lighttpd to test PHP-FPM support.<\/p>\n<p>First, create a virtual host directory with the following command:<\/p>\n<pre>mkdir \/var\/www\/html\/testsite<\/pre>\n<p>Next, create a virtual host configuration file with the following command:<\/p>\n<pre>nano \/etc\/lighttpd\/conf-available\/lighttpd.conf<\/pre>\n<p>Add the following lines:<\/p>\n<pre>$HTTP[\"host\"] ==\"<span style=\"color: #ff0000;\">test.example.com<\/span>\" {\r\nserver.document-root = \"\/var\/www\/html\/testsite\"\r\nindex-file.names = ( \"info.php\" )\r\n}<\/pre>\n<p>Save and close the file. Then, enable the virtual host with the following command:<\/p>\n<pre>ln -s \/etc\/lighttpd\/conf-available\/lighttpd.conf \/etc\/lighttpd\/conf-enabled\/<\/pre>\n<p>Next, create a info.php file inside \/var\/www\/html\/testsite directory to test PHP-FPM support:<\/p>\n<pre>nano \/var\/www\/html\/testsite\/info.php<\/pre>\n<p>Add the following lines:<\/p>\n<pre>&lt;?php phpinfo(); ?&gt;<\/pre>\n<p>Next, set correct permission on <code>\/var\/www\/html\/testsite<\/code> with the following command:<\/p>\n<pre>chown -R www-data:www-data \/var\/www\/html\/testsite<\/pre>\n<p>Finally, restart the Lighttpd service with the following command:<\/p>\n<pre>systemctl restart lighttpd<\/pre>\n<p>Now, open your web browser and type the URL <code>http:\/\/test.example.com<\/code>. You should see that PHP is working through FPM\/FastCGI in the following page:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-large wp-image-31808\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-1024x551.png\" alt=\"\" width=\"1024\" height=\"551\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-1024x551.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-150x81.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-300x161.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-768x413.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page-1080x581.png 1080w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/php-info-page.png 1253w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>In this tutorial, we learned how to install Lighttpd on a Debian 9 VPS. We also learned how to enable MariaDB, PHP and PHP-FPM with FastCGI in Lighttpd. For more information, you can visit the Lighttpd official documentation.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-32378\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/expert-help-support-from-admins-experienced-with-lighttpd-debian9-vps.jpg\" alt=\"\" width=\"120\" height=\"100\" \/>Of course, you don\u2019t have to install Lighttpd on a Debian 9 VPS if you use one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Managed Debian Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to setup Lighttpd on a Debian 9 VPS for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong>.<\/span> If you liked this post on\u00a0<strong>how to install Lighttpd on a Debian 9 VPS<\/strong>, please share it with your friends on the social networks using the share shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will demonstrate how to install and deploy Lighttpd on a Debian 9 VPS with FPM\/FastCGI support. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Lighttpd on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#more-31806\" aria-label=\"Read more about How to Install Lighttpd on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":32376,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13,1707],"tags":[48,1816],"class_list":["post-31806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","category-web-servers","tag-debian","tag-lighttpd","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.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Lighttpd on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Lighttpd on Debian 9 | 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-lighttpd-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Lighttpd on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Install Lighttpd on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/\" \/>\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=\"2020-02-13T21:12:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.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=\"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=\"7 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-lighttpd-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Lighttpd on Debian 9\",\"datePublished\":\"2020-02-13T21:12:37+00:00\",\"dateModified\":\"2022-06-03T08:33:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/\"},\"wordCount\":891,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lighttpd-on-debian9.jpg\",\"keywords\":[\"debian\",\"Lighttpd\"],\"articleSection\":[\"Debian\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/\",\"name\":\"How to Install Lighttpd on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lighttpd-on-debian9.jpg\",\"datePublished\":\"2020-02-13T21:12:37+00:00\",\"dateModified\":\"2022-06-03T08:33:09+00:00\",\"description\":\"How to Install Lighttpd on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lighttpd-on-debian9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/how-to-install-lighttpd-on-debian9.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lighttpd-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Lighttpd on Debian 9\"}]},{\"@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 Lighttpd on Debian 9 | RoseHosting","description":"How to Install Lighttpd on Debian 9 | 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-lighttpd-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Lighttpd on Debian 9","og_description":"How to Install Lighttpd on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2020-02-13T21:12:37+00:00","article_modified_time":"2022-06-03T08:33:09+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.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":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Lighttpd on Debian 9","datePublished":"2020-02-13T21:12:37+00:00","dateModified":"2022-06-03T08:33:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/"},"wordCount":891,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg","keywords":["debian","Lighttpd"],"articleSection":["Debian","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/","name":"How to Install Lighttpd on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg","datePublished":"2020-02-13T21:12:37+00:00","dateModified":"2022-06-03T08:33:09+00:00","description":"How to Install Lighttpd on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2020\/02\/how-to-install-lighttpd-on-debian9.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lighttpd-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Lighttpd on Debian 9"}]},{"@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\/31806","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=31806"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31806\/revisions"}],"predecessor-version":[{"id":41669,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31806\/revisions\/41669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/32376"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}