{"id":1692,"date":"2013-08-28T18:51:00","date_gmt":"2013-08-28T23:51:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=1692"},"modified":"2022-06-03T03:52:20","modified_gmt":"2022-06-03T08:52:20","slug":"how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/","title":{"rendered":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\"><img decoding=\"async\" class=\"alignleft size-medium wp-image-1693\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6-300x257.png\" alt=\"how to compile and install nginx from source in debian 7\" width=\"300\" height=\"257\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6-300x257.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png 350w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> The following article is all about <strong>how to compile and install<\/strong> the blazing fast HTTP server known as <a href=\"http:\/\/nginx.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Nginx<\/a>.<\/p>\n<p>So what exactly is Nginx?<\/p>\n<p>It is lightweight, free, open-source and high-performance HTTP server, which, unlike most other HTTP servers, does not rely on threaded handling of the requests but instead, uses a much more scalable and robust event driven (asynchronous) architecture.<\/p>\n<p>This uses a very small and predictable amount of memory under heavy load.<\/p>\n<p><!--more--><\/p>\n<p class=\"entry-title\">Anyway, if you are looking for instructions on how to set-up and install Nginx, PHP-FPM and MySQL (LNMP Stack) in Debian 6 (Squeeze) than please read our article on <a title=\"How to install and configure LNMP (Nginx, MySQL and PHP) server on a Debian 6 (squeeze) VPS\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-and-configure-nginx-mysql-and-php-server-on-a-debian-6-squeeze-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to install and configure LEMP (Nginx, MySQL and PHP) server on a Debian 6 (squeeze) VPS<\/a><\/p>\n<p>For this tutorial we are using one of our <a title=\"Debian Virtual Private Servers by RoseHosting\" href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian virtual servers<\/a>. Ok, first thing to do is to make sure our Debian 7 (Wheezy) system is up-to-date:<\/p>\n<pre class=\"brush: bash; gutter: true\"># apt-get update\r\n# apt-get upgrade\r\n# apt-get dist-upgrade<\/pre>\n<p>Next, install some necessary packages so we can build our Nginx:<\/p>\n<pre class=\"brush: bash; gutter: true\"># apt-get install build-essential\r\n# apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev<\/pre>\n<p>Proceed with downloading and extracting Nginx sources from <a href=\"http:\/\/nginx.org\/en\/download.html\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/nginx.org\/en\/download.html<\/a><\/p>\n<pre class=\"brush: bash; gutter: true\"># mkdir ~\/sources\r\n# cd ~\/sources\/\r\n# wget http:\/\/nginx.org\/download\/nginx-1.4.0.tar.gz\r\n# tar zxf nginx-1.4.0.tar.gz\r\n# cd nginx-1.4.0<\/pre>\n<p>run the &#8216;configure&#8217; script to configure the sources. see `.\/configure &#8211;help` for more information on what you can use.<\/p>\n<pre class=\"brush: bash; gutter: true\"># .\/configure \\\r\n\t--prefix=\/usr \\\r\n\t--conf-path=\/etc\/nginx\/nginx.conf \\\r\n\t--error-log-path=\/var\/log\/nginx\/error.log \\\r\n\t--http-log-path=\/var\/log\/nginx\/access.log \\\r\n\t--pid-path=\/var\/run\/nginx.pid \\\r\n\t--lock-path=\/var\/lock\/nginx.lock \\\r\n\t--with-http_ssl_module \\\r\n\t--user=www-data \\\r\n\t--group=www-data \\\r\n    --with-http_stub_status_module \\\r\n\t--with-http_gzip_static_module \\\r\n\t--without-mail_pop3_module \\\r\n\t--without-mail_imap_module \\\r\n\t--without-mail_smtp_module<\/pre>\n<p>proceed with compiling and installing Nginx:<\/p>\n<pre class=\"brush: bash; gutter: true\"># make\r\n# make install<\/pre>\n<p>once the installation is completed, add the following init script to\u00a0<em>\/etc\/init.d\/nginx<\/em> so you can manage your nginx installation:<\/p>\n<pre class=\"brush: bash; gutter: true\">#! \/bin\/sh\r\n\r\n### BEGIN INIT INFO\r\n# Provides:          nginx\r\n# Required-Start:    $all\r\n# Required-Stop:     $all\r\n# Default-Start:     2 3 4 5\r\n# Default-Stop:      0 1 6\r\n# Short-Description: starts the nginx web server\r\n# Description:       starts nginx using start-stop-daemon\r\n### END INIT INFO\r\n\r\nPATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/sbin:\/bin:\/usr\/sbin:\/usr\/bin\r\nDAEMON=\/usr\/sbin\/nginx\r\nNAME=nginx\r\nDESC=nginx\r\n\r\ntest -x $DAEMON || exit 0\r\n\r\n# Include nginx defaults if available\r\nif [ -f \/etc\/default\/nginx ] ; then\r\n    . \/etc\/default\/nginx\r\nfi\r\n\r\nset -e\r\n\r\n. \/lib\/lsb\/init-functions\r\n\r\ncase \"$1\" in\r\n  start)\r\n    echo -n \"Starting $DESC: \"\r\n    start-stop-daemon --start --quiet --pidfile \/var\/run\/$NAME.pid \\\r\n        --exec $DAEMON -- $DAEMON_OPTS || true\r\n    echo \"$NAME.\"\r\n    ;;\r\n  stop)\r\n    echo -n \"Stopping $DESC: \"\r\n    start-stop-daemon --stop --quiet --pidfile \/var\/run\/$NAME.pid \\\r\n        --exec $DAEMON || true\r\n    echo \"$NAME.\"\r\n    ;;\r\n  restart|force-reload)\r\n    echo -n \"Restarting $DESC: \"\r\n    start-stop-daemon --stop --quiet --pidfile \\\r\n        \/var\/run\/$NAME.pid --exec $DAEMON || true\r\n    sleep 1\r\n    start-stop-daemon --start --quiet --pidfile \\\r\n        \/var\/run\/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true\r\n    echo \"$NAME.\"\r\n    ;;\r\n  reload)\r\n      echo -n \"Reloading $DESC configuration: \"\r\n      start-stop-daemon --stop --signal HUP --quiet --pidfile \/var\/run\/$NAME.pid \\\r\n          --exec $DAEMON || true\r\n      echo \"$NAME.\"\r\n      ;;\r\n  status)\r\n      status_of_proc -p \/var\/run\/$NAME.pid \"$DAEMON\" nginx &amp;&amp; exit 0 || exit $?\r\n      ;;\r\n  *)\r\n    N=\/etc\/init.d\/$NAME\r\n    echo \"Usage: $N {start|stop|restart|reload|force-reload|status}\" &gt;&amp;2\r\n    exit 1\r\n    ;;\r\nesac\r\n\r\nexit 0<\/pre>\n<p>make the init script executable and add Nginx to your system&#8217;s start-up applications:<\/p>\n<pre class=\"brush: bash; gutter: true\"># chmod +x \/etc\/init.d\/nginx\r\n# update-rc.d -f nginx defaults<\/pre>\n<p>set-up Nginx:<\/p>\n<pre class=\"brush: bash; gutter: true\"># mkdir \/etc\/nginx\/{sites-available,sites-enabled}<\/pre>\n<p>in \/etc\/nginx\/nginx.conf add the following:<\/p>\n<pre class=\"brush: bash; gutter: true\">user  www-data;\r\nworker_processes  2;\r\n\r\nevents {\r\n    worker_connections  1024;\r\n}\r\n\r\nhttp {\r\n    include       mime.types;\r\n    default_type  application\/octet-stream;\r\n\r\n    #log_format  main  '$remote_addr - $remote_user [$time_local] \"$request\" '\r\n    #                  '$status $body_bytes_sent \"$http_referer\" '\r\n    #                  '\"$http_user_agent\" \"$http_x_forwarded_for\"';\r\n\r\n    #access_log  logs\/access.log  main;\r\n\r\n    sendfile        on;\r\n    #tcp_nopush     on;\r\n\r\n    #keepalive_timeout  0;\r\n    keepalive_timeout  65;\r\n\r\n    #gzip  on;\r\n\r\n    include \/etc\/nginx\/sites-enabled\/*;\r\n}<\/pre>\n<p>add the server block in \/etc\/nginx\/sites-available\/example.com (make sure to change any occurrences of example.com with your desired domain).<\/p>\n<pre class=\"brush: bash; gutter: true\">server {\r\n    listen       80;\r\n    server_name  example.com;\r\n\r\n    location \/ {\r\n        root\u00a0\u00a0 \/var\/www\/example.com;\r\n        index  index.html index.htm;\r\n    }\r\n\r\n    # redirect server error pages to the static page \/50x.html\r\n    #\r\n    error_page   500 502 503 504  \/50x.html;\r\n    location = \/50x.html {\r\n        root   html;\r\n    }\r\n\r\n}<\/pre>\n<p>enable the server block you&#8217;ve just added:<\/p>\n<pre class=\"brush: bash; gutter: true\"># cd \/etc\/nginx\/sites-enabled\/\r\n# ln -s \/etc\/nginx\/sites-available\/example.com<\/pre>\n<p>restart your Nginx by using:<\/p>\n<pre class=\"brush: bash; gutter: true\"># service nginx restart<\/pre>\n<p>add a sample page and test your Nginx by opening your domain you used in the server block.<\/p>\n<pre class=\"brush: bash; gutter: true\"># mkdir -p \/var\/www\/example.com\r\n\r\n# echo -e \"&lt;html&gt;\\n&lt;head&gt;&lt;title&gt;NGINX&lt;\/title&gt;&lt;\/head&gt;\\n \\\r\n&lt;body&gt;\\t&lt;h1&gt;Powered by RoseHosting.com&lt;\/h1&gt;\\n&lt;\/body&gt;\\n&lt;\/html&gt;\" \\\r\n&gt; \/var\/www\/example.com\/index.html<\/pre>\n<p>Of course you don\u2019t have to do any of this if you use one of our <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert linux admins to install this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> 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<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following article is all about how to compile and install the blazing fast HTTP server known as Nginx. So &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#more-1692\" aria-label=\"Read more about How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":1693,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13,1707],"tags":[237,48,79,49,97,1152,236,235],"class_list":["post-1692","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-tutorials","category-web-servers","tag-compile","tag-debian","tag-debian-vps","tag-nginx","tag-open-source","tag-rosehosting","tag-source","tag-wheezy","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.4 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to compile from source and install Nginx in a Debian 7 (Wheezy) 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-compile-and-install-nginx-from-source-in-debian-7-wheezy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS\" \/>\n<meta property=\"og:description\" content=\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/\" \/>\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=\"2013-08-28T23:51:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:52:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\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=\"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-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS\",\"datePublished\":\"2013-08-28T23:51:00+00:00\",\"dateModified\":\"2022-06-03T08:52:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/\"},\"wordCount\":386,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/05\\\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\",\"keywords\":[\"compile\",\"debian\",\"debian vps\",\"nginx\",\"open source\",\"rosehosting\",\"source\",\"wheezy\"],\"articleSection\":[\"Debian\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/\",\"name\":\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/05\\\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\",\"datePublished\":\"2013-08-28T23:51:00+00:00\",\"dateModified\":\"2022-06-03T08:52:20+00:00\",\"description\":\"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/05\\\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/05\\\/how-to-compile-and-install-nginx-from-source-in-debian-6.png\",\"width\":350,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to compile from source and install Nginx in a Debian 7 (Wheezy) 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 compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting","description":"How to compile from source and install Nginx in a Debian 7 (Wheezy) 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-compile-and-install-nginx-from-source-in-debian-7-wheezy\/","og_locale":"en_US","og_type":"article","og_title":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS","og_description":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2013-08-28T23:51:00+00:00","article_modified_time":"2022-06-03T08:52:20+00:00","og_image":[{"width":350,"height":300,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS","datePublished":"2013-08-28T23:51:00+00:00","dateModified":"2022-06-03T08:52:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/"},"wordCount":386,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png","keywords":["compile","debian","debian vps","nginx","open source","rosehosting","source","wheezy"],"articleSection":["Debian","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/","name":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png","datePublished":"2013-08-28T23:51:00+00:00","dateModified":"2022-06-03T08:52:20+00:00","description":"How to compile from source and install Nginx in a Debian 7 (Wheezy) VPS | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2013\/05\/how-to-compile-and-install-nginx-from-source-in-debian-6.png","width":350,"height":300},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-compile-and-install-nginx-from-source-in-debian-7-wheezy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to compile from source and install Nginx in a Debian 7 (Wheezy) 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\/1692","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=1692"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions"}],"predecessor-version":[{"id":42290,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions\/42290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/1693"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}