Ubuntu11.10 compiles and installs Nginx, PHP5.3.8, MySQL, MongoDB, Memcached, SSL, SMTP
Manually compile and install nginx 1.0.5 nginx download page: http://nginx.org/en/download.htmlecho Copy the entire shell below to the command line terminal, and it will be automatically executed one by one. wget http://nginx.org/download/nginx-1.0.5.tar.gz tar -jxvf nginx-1.0.5.tar.gz cd nginx-1.0.5 sudo apt-get install libpcre3 libpcre3-dev ./configure –prefix=/usr/local/nginx make sudo make install sudo ln -s /usr/local/nginx/sbin/nginx /etc/init.d/ echo starts nginx sudo /etc/init.d/nginx Echo visits the local homepage. If it is normal, it means nginx has been started. wget -O – http://localhost/ Add Nginx to the service and start it automatically at boot. Steps: http://www.linuxidc.com/Linux/2011-10/45735.htm Manually install mysql To manually install mysql, please see: http://www.linuxidc.com/Linux/2011-06/37632.htm Manually compile and install php 5.3.8 php download page: http://php.net/downloads.php Two ways to send email in php: http://www.linuxidc.com/Linux/2011-10/45736.htm CGI, fastcgi, php-fpm: http://www.linuxidc.com/Linux/2011-10/45746.htm Commonly used extensions: curl, pdo, pdo-mysql, mysqli, openssl, gd, jpeg, png, exif, zip, magickwandsudo apt-get install libltdl-dev libssl-dev sendmail libjpeg8 libjpeg8 -dev libpng12-0 libpng12-dev libxml2-dev libcurl4-openssl-dev libmcrypt-dev sudo ln -s /usr/lib/x86_64-linux-gnu/libpng* /usr/lib/ echo According to PHP official recommendations, use mysqli and pdo_mysql instead of mysql. gmail stmp requires openssl. wget http://cn2.php.net/get/php-5.3.8.tar.bz2/from/this/mirror tar -jxvf php-5.3.8.tar.bz2 cdphp-5.3.8 ./configure –prefix=/usr/local/php –enable-fpm –with-fpm-user=www-data –with-fpm-group=www-data –with-curl –with-mcrypt –enable-mbstring –enable-pdo –with-pdo-mysql=mysqlnd –with-mysqli=mysqlnd –with-mysql=mysqlnd –with-openssl –with-imap-ssl –with-gd –with-jpeg-dir=/usr/lib/ –with-png-dir=/usr/lib/ –enable-exif –enable-zip make sudo make install sudo…
Ubuntu11.10 compiles and installs Nginx, PHP5.3.8, MySQL, MongoDB, Memcac
Manually compile and install nginx 1.0.5 nginx download page: http://nginx.org/en/download.htmlecho Copy the entire shell below to the command line terminal, and it will be automatically executed one by one. . wget http://nginx.org/download/nginx-1.0.5.tar.gz tar -jxvf nginx-1.0.5.tar.gz cd nginx-1.0.5 sudo apt-get install libpcre3 libpcre3-dev ./configure –prefix=/usr/local/nginx make sudo make install sudo ln -s /usr/local/nginx/sbin/nginx /etc/init.d/ echo starts nginx sudo /etc/init.d/nginx Echo visits the local homepage. If it is normal, it means nginx has been started. wget -O – http://localhost/ Add Nginx to the service and start it automatically at boot. Steps: http://www.linuxidc.com/Linux/2011-10/45735.htm Manually install mysql To manually install mysql, please see: http://www.linuxidc.com/Linux/2011-06/37632.htm Manually compile and install php 5.3.8 php download page: http://php.net/downloads.php Two ways to send email in php: http://www.linuxidc.com/Linux/2011-10/45736.htm CGI, fastcgi, php-fpm: http://www.linuxidc.com/Linux/2011-10/45746.htm Commonly used extensions: curl, pdo, pdo-mysql, mysqli, openssl, gd, jpeg, png, exif, zip, magickwandsudo apt-get install libltdl-dev libssl-dev sendmail libjpeg8 libjpeg8-dev libpng12-0 libpng12-dev libxml2-dev libcurl4-openssl-dev libmcrypt-dev sudo ln -s /usr/lib/x86_64-linux-gnu/libpng* /usr/lib/ echo According to the official recommendation of PHP, use mysqli and pdo_mysql instead of mysql. gmail stmp requires openssl. wget http://cn2.php.net/get/php-5.3.8.tar.bz2/from/this/mirror tar -jxvf php-5.3.8.tar.bz2 cdphp-5.3.8 ./configure –prefix=/usr/local/php —enable-fpm –with-fpm-user=www-data –with-fpm-group=www-data –with -curl –with-mcrypt –enable-mbstring –enable-pdo –with-pdo-mysql=mysqlnd –with-mysqli=mysqlnd –with-mysql=mysqlnd – -with-openssl –with-imap-ssl –with-gd –with-jpeg-dir=/usr/lib/ –with-png-dir=/usr/lib/ –enable-exif –enable -zip…