Ubuntu11.10 compile and install Nginx, PHP5.3.8, MySQL, MongoDB, Memcached, SSL, SMTP

Source: Internet
Author: User
Manually compile and install nginx1.0.5nginx on the download page: http://nginx.org/en/download.htmlechocopy the entire shellfield to the command line. Wgethttp: // nginx.org/download/nginx-1.0.5.tar.gztar-jxvfnginx-1.0.5.tar.gzcdnginx-1.0.5sudoa manually compile and install nginx 1.0.5

Nginx download page: http://nginx.org/en/download.html

Echo copies the entire shell to the command line terminal and runs it one by one automatically. Wget http://nginx.org/download/nginx-1.0.5.tar.gztar-jxvf nginx-1.0.5.tar.gzcd nginx-1.0.5sudo apt-get install libpcre3 libpcre3-dev. /configure -- prefix =/usr/local/nginxmakesudo make installsudo ln-s/usr/local/nginx/sbin/nginx/etc/init. d/echo start nginxsudo/etc/init. d/nginxecho: access the home page of the local machine. If it is normal, it indicates that nginx has started wget-O-http: // localhost/

Add Nginx to the service, boot self-start, step: http://www.linuxidc.com/Linux/2011-10/45735.htm

Install mysql manually

Manual installation of mysql 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

Php 2 ways to send email: http://www.linuxidc.com/Linux/2011-10/45736.htm

CGI, fastcgi, php-fpm: http://www.linuxidc.com/Linux/2011-10/45746.htm

Common extensions: curl, pdo, pdo-mysql, mysqli, openssl, gd, jpeg, png, exif, zip, magickwand

Sudo apt-get install libltdl-dev libssl-dev sendmail lib1_8 libjpeg8-dev libpng12-0 libpng12-dev libxml2-dev libcurl4-openssl-dev x86_64-linux-gnu libmcrypt-devsudo ln-s/usr/lib/libpng */usr/lib/echo depending on PHP official recommendation, use mysqli and pdo_mysql instead of mysql. Openssl is required for gmail stmp. Wget http://cn2.php.net/get/php-5.3.8.tar.bz2/from/this/mirrortar -Jxvf php-5.3.8.tar.bz2cd php-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-zipmakesudo make installsu Do cp php. ini-development/usr/local/php/lib/php. inisudo ln-s/usr/local/php/bin/php/usr/bin/phpsudo cp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/ php-fpm.confsudo vi/usr/local/php/etc/php-fpm.confpid = run/php-fpm.piderror_log = log/php-fpm.loglog_level = noticepm. start_serverspm.min_spare_serverspm.max_spare_serverssudo cp sapi/fpm/init. d. php-fpm/etc/init. d/php-fpmsudo chmod 755/etc/init. d/php-fpmecho: Add php-fpm to the service, boot sudo update-rc.d php-fpm defaultssudo/usr/local/php/sbin/php-fpmsudo vi/usr/local/nginx/conf/nginx. conflocation/{root/usr/www; index index.html index.htm index. php;} location ~ \. Php $ {root/usr/www.fastcgi_pass 127.0.0.1: 9000; fastcgi_index index. php; fastcgi_param SCRIPT_FILENAME $ document_root/$ fastcgi_script_name; include fastcgi_params;} sudo killall nginxsudo/etc/init. d/nginx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.