Compile and install nginx, PHP 11.04, MySQL, MongoDB, memcached, SSL, SMTP in Ubuntu 5.3

Source: Internet
Author: User
Tags install mongodb mongodb server php download

Introduction: This is a detailed page for compiling and installing nginx, PHP 11.04, MySQL, MongoDB, memcached, SSL, and SMTP in Ubuntu 5.3. It introduces the knowledge, skills, and experience related to PhP, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 339660 'rolling = 'no'>
Manually compile and install nginx 1.04

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. Sudo apt-Get install libpcre3 libpcre3-devwget http://nginx.org/download/nginx-1.0.4.tar.gztar-jxvf nginx-1.0.4.tar.gzcd nginx-1.0.4. /configure -- prefix =/usr/local/nginxmakesudo make installsudo ln-S/usr/local/nginx/sbin/nginx/etc/init. d/ECHO add nginx to the service, boot self-boot sudo update-rc.d nginx defaultsecho start nginxsudo/etc/init. d/nginxecho: access the home page of the local machine. If yes, nginx has enabled Firefox http: // localhost/
Install MySQL manually

To manually install MySQL, see:
Http://www.cnblogs.com/sink_cup/archive/2011/03/18/ubuntu_x64_software.html#mysql

Manually compile and install PHP 5.3.6

PHP download page: http://php.net/downloads.php

PHP 2 ways to send email: http://blog.csdn.net/aryang/archive/2007/07/03/1676968.aspx

CGI, FastCGI, PHP-FPM: https://wangyan.org/blog/install-php-fpm-from-source.html

Sudo apt-Get install libltdl-dev libssl-dev sendmailecho use mysqli and pdo_mysql instead of MySQL according to official PHP recommendations. OpenSSL is required for Gmail stmp .. /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- sslmakesudo make installsudo CP/usr/local/PHP/etc/php-fpm.conf.default/usr/local/PHP/etc/php-fpm.confpid = run/php-fpm.piderror_log = log/php-fpm.lo Glog_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
Manually install PHP Mongo Extension
 
Sudo apt-Get install autoconfwget http://pecl.php.net/get/mongo-1.1.4.tgztar-zxvf mongo-1.1.4.tgzcd mongo-1.1.4/usr/local/PHP/bin/phpizels. /configure -- With-PHP-Config =/usr/local/PHP/bin/PHP-configmakesudo make installsudo VI/usr/local/PHP/lib/PHP. INI adds a line of extension = Mongo. so
Manually install PHP memcache Extension
 
Sudo/usr/local/PHP/bin/PECL install memcachesudo VI/usr/local/PHP/lib/PHP. ini add a line of extension = memcache. So at the bottom
Automatically install the memcached Server
 
Sudo apt-Get install memcachedsudo/etc/init. d/memcached start
Manually install MongoDB 1.8.2 Server

MongoDB Server Download Page: http://www.mongodb.org/downloads

Wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-1.8.2.tgztar-zxvf mongodb-linux-x86_64-1.8.2.tgzsudo MV mongodb-linux-x86_64-1.8.2/usr/local/mongodbsudo ln-S/usr/local/MongoDB/bin/mongod/etc/init. d/sudo ln-S/usr/local/MongoDB/bin/Mongo/usr/bin/sudo mkdir-P/data/DB/ECHO add mongod to the service, boot sudo update-rc.d mongod defaultsecho boot mongod server sudo nohup/etc/init. d/mongod &

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/339660.html pageno: 7.

Related Article

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.