{"id":579,"date":"2011-12-13T01:02:07","date_gmt":"2011-12-13T09:02:07","guid":{"rendered":"http:\/\/blog.portnumber53.com\/?p=579"},"modified":"2011-12-13T01:02:07","modified_gmt":"2011-12-13T09:02:07","slug":"ve-installing-lamp-on-debian-squeeze-64bit","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2011\/12\/13\/ve-installing-lamp-on-debian-squeeze-64bit\/","title":{"rendered":"(ve) Installing LAMP on Debian Squeeze &#8211; 64bit"},"content":{"rendered":"<p>aptitude update<\/p>\n<p>aptitude safe-upgrade<\/p>\n<p>aptitude install mysql-server mysql-client<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>NGINX<\/p>\n<p>aptitude install libpcre3-dev build-essential libssl-dev sudo<\/p>\n<pre>cd \/opt\/<\/pre>\n<pre>http:\/\/nginx.org\/en\/download.html<\/pre>\n<pre>wget http:\/\/nginx.org\/download\/nginx-1.0.8.tar.gz<\/pre>\n<pre>tar -xvzf nginx-1.0.8.tar.gz<\/pre>\n<pre>cd nginx-1.0.8<\/pre>\n<pre>.\/configure --prefix=\/opt\/nginx --user=nginx --group=nginx --with-http_ssl_module --conf-path=\/etc\/nginx\/nginx.conf<\/pre>\n<pre>--error-log-path=\/var\/log\/nginx\/error.log --http-log-path=\/var\/log\/nginx\/access_log --with-http_ssl_module<\/pre>\n<pre>--with-http_geoip_module --pid-path=\/var\/run\/nginx.pid\uf700<\/pre>\n<pre><\/pre>\n<pre>  nginx path prefix: \"\/opt\/nginx\"\n  nginx binary file: \"\/opt\/nginx\/sbin\/nginx\"\n  nginx configuration prefix: \"\/etc\/nginx\"\n  nginx configuration file: \"\/etc\/nginx\/nginx.conf\"\n  nginx pid file: \"\/var\/run\/nginx.pid\"\n  nginx error log file: \"\/var\/log\/nginx\/error.log\"\n  nginx http access log file: \"\/var\/log\/nginx\/access_log\"\n  nginx http client request body temporary files: \"client_body_temp\"\n  nginx http proxy temporary files: \"proxy_temp\"\n  nginx http fastcgi temporary files: \"fastcgi_temp\"\n  nginx http uwsgi temporary files: \"uwsgi_temp\"\n  nginx http scgi temporary files: \"scgi_temp\"<\/pre>\n<pre><\/pre>\n<pre>make<\/pre>\n<pre>make install<\/pre>\n<pre>#PECL<\/pre>\n<pre>apt-get install make php5-dev php-pear\naptitude install libcurl4-openssl-dev\npecl install uploadprogress\npecl install pecl_http<\/pre>\n<pre><\/pre>\n<pre>echo -e \"extension=uploadprogress.so\" &gt; \/etc\/php5\/conf.d\/uploadprogress.ini<\/pre>\n<pre>echo -e \"extension=http.so\" &gt; \/etc\/php5\/conf.d\/uploadprogress.ini<\/pre>\n<pre>\n\u00a0##FIX APACHE\n\n&lt;?php\n\n\/\/ Let's fix the document root because of a bug in Apache's mod_vhost_alias not\n\/\/ setting up the correct $_SERVER['DOCUMENT_ROOT'] env variable.\n$__mod_vhost_alias_fix_doc_root = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'domains' . DIRECTORY_SEPARATOR . $_SERVER['HTTP_HOST'] . DIRECTORY_SEPARATOR . 'html';\n\nif (is_dir($__mod_vhost_alias_fix_doc_root)) {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $_SERVER['__MOD_VHOST_FIX_OLD_DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'];\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $_SERVER['DOCUMENT_ROOT'] = $__mod_vhost_alias_fix_doc_root;\n}\n\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>aptitude update aptitude safe-upgrade aptitude install mysql-server mysql-client &nbsp; &nbsp; &nbsp; NGINX aptitude install libpcre3-dev build-essential libssl-dev sudo cd \/opt\/ http:\/\/nginx.org\/en\/download.html wget http:\/\/nginx.org\/download\/nginx-1.0.8.tar.gz tar -xvzf nginx-1.0.8.tar.gz cd nginx-1.0.8 .\/configure &#8211;prefix=\/opt\/nginx &#8211;user=nginx &#8211;group=nginx &#8211;with-http_ssl_module &#8211;conf-path=\/etc\/nginx\/nginx.conf &#8211;error-log-path=\/var\/log\/nginx\/error.log &#8211;http-log-path=\/var\/log\/nginx\/access_log &#8211;with-http_ssl_module &#8211;with-http_geoip_module &#8211;pid-path=\/var\/run\/nginx.pid\uf700 nginx path prefix: &#8220;\/opt\/nginx&#8221; nginx binary file: &#8220;\/opt\/nginx\/sbin\/nginx&#8221; nginx configuration prefix:&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/blog.portnumber53.com\/index.php\/2011\/12\/13\/ve-installing-lamp-on-debian-squeeze-64bit\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-579","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=579"}],"version-history":[{"count":0,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/579\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}