aptitude update
aptitude safe-upgrade
aptitude install mysql-server mysql-client
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 --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access_log --with-http_ssl_module
--with-http_geoip_module --pid-path=/var/run/nginx.pid
nginx path prefix: "/opt/nginx" nginx binary file: "/opt/nginx/sbin/nginx" nginx configuration prefix: "/etc/nginx" nginx configuration file: "/etc/nginx/nginx.conf" nginx pid file: "/var/run/nginx.pid" nginx error log file: "/var/log/nginx/error.log" nginx http access log file: "/var/log/nginx/access_log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"
make
make install
#PECL
apt-get install make php5-dev php-pear aptitude install libcurl4-openssl-dev pecl install uploadprogress pecl install pecl_http
echo -e "extension=uploadprogress.so" > /etc/php5/conf.d/uploadprogress.ini
echo -e "extension=http.so" > /etc/php5/conf.d/uploadprogress.ini
##FIX APACHE <?php // Let's fix the document root because of a bug in Apache's mod_vhost_alias not // setting up the correct $_SERVER['DOCUMENT_ROOT'] env variable. $__mod_vhost_alias_fix_doc_root = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'domains' . DIRECTORY_SEPARATOR . $_SERVER['HTTP_HOST'] . DIRECTORY_SEPARATOR . 'html'; if (is_dir($__mod_vhost_alias_fix_doc_root)) { $_SERVER['__MOD_VHOST_FIX_OLD_DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT']; $_SERVER['DOCUMENT_ROOT'] = $__mod_vhost_alias_fix_doc_root; } ?>