Full text version for Ubuntu 11.04 Server Installation

Source: Internet
Author: User

1. Install Ubuntu 11.04 Server 64-bit.

2. install the ssh service sudo apt-get install openssh-server to generate a key ssh-keygen and rename the public key to the server mv ~ /. Ssh/id_rsa.pub ~ /. Ssh/authorized_keys copy the private key id_rsa from the server and delete the id_rsa file scp ~ /. Ssh/id_rsa wangbin@192.168.0.XXX:/home/XXX/. ssh/id_rsa_local_101 rm ~ /. Ssh/id_rsa-f 3. set static ip Address: vim/etc/network/interfaces if the ip address is dynamically obtained, add the following content to the above file: auto eth0 iface eth0 inet dhcp if the static ip address is configured, add the following content: auto eth0 iface eth0 inet static address 192.168.33.201 netmask 255.255.255.0 gateway 192.168.33.1 if the configuration takes effect, restart the NIC: ifconfig eth0 down ifconfig eth0 up if the configuration is not successful, restart the network service/etc/init. d/networking restart configure dns vim/etc/resolv. conf nameserver 202.112.125.53 modify computer name sudo vim /Etc/hostname sudo reboot 4. optimize Ubuntu system to modify the language, solve the problem of garbled vim/etc/default/locale LANG = "zh_CN.UTF-8" 5. copy required software copy the following software mysql-5.1.53.tar.gz, php-5.3.3.tar.gz, eaccelerator-0.9.6-rc2.tar.bz2, nginx ~ 6. Install mysql sudo groupadd mysql sudo useradd-g mysql cd ~ in the/tmp/directory ~ /Tmp/tar-zxvf mysql-5.1.53.tar.gz cd mysql-5.1.53/sudo apt-get install g ++ gcc make automake perl sudo apt-get install libncurses5-dev. /configure -- prefix =/usr/local/webserver/mysql/-- enable-starter er -- with-extra-charsets = complex -- enable-thread-safe-client -- with-big-tables -- with-readline -- with-ssl -- with-embedded-server -- enable-local-infile -- with-plugins = partition, innobase, myisammrg mak E sudo make install sudo mkdir/usr/local/webserver/mysql/data sudo chown-R mysql: mysql/usr/local/webserver/mysql/data sudo/usr/local/webserver/mysql/bin/mysql_install_db -- basedir =/usr/local/webserver/mysql -- datadir =/usr /local/webserver/mysql/data -- user = mysql/usr/local/webserver/mysql/bin/mysqld_safe &/usr/local/webserver/mysql/bin/mysqladmin-uroot password XXX sudo mkdir/usr/local/webse Rver/mysql/conf sudo cp ~ /Tmp/mysql-5.1.53/support-files/my-small.cnf/usr/local/webserver/mysql/conf/my. cnf/usr/local/webserver/mysql/bin/mysqld_safe -- defaults-file =/usr/local/webserver/mysql/conf/my. cnf 2> & 1>/dev/null & 7. install php cd ~ /Tmp/tar-zxvf php-5.3.3.tar.gz cd php-5.3.3/sudo apt-get install libevent-dev sudo apt-get install libxml2-dev sudo apt-get install curl sudo apt-get install libssl-dev sudo apt -get install libcurl3 sudo apt-get install libcurl4-gnutls-dev sudo apt-get install libpng12-dev sudo apt-get install libjpeg62-dev sudo cp/usr/lib/x86_64-linux-gnu/libjpeg. */usr/lib/sudo cp/usr/lib/x86_64-linux-gnu/libpng */usr/lib/sudo apt-get install libfreetype6-dev
Sudo apt-get install libmcrypt-dev
. /Configure -- prefix =/usr/local/webserver/php -- with-config-file-path =/usr/local/webserver/php/etc -- with-mysql = mysqlnd -- -mysqli = mysqlnd -- with-pdo-mysql = mysqlnd -- with-iconv-dir -- with-freetype-dir -- with-jpeg-dir -- with-png-dir -- with-zlib -- with-libxml-dir = -- enable-xml -- disable-rpath -- enable-safe-mode -- enable-bcmath -- enable-shmop -- enable-sysvsem -- enable-inline-optimization -- with-curl -- with-curlwrappers -- enable-mbregex -- enable-mbstring -- with-mcrypt -- with-gd -- enable-gd-native-ttf -- with-openssl -- with-mhash -- enable-pcntl -- enable-sockets -- with-xmlrpc -- enable-zip -- enable-exif -- enable-soap -- without-pear -- enable-fpm
Make
Sudo make install
Sudo cp ~ /Tmp/php-5.3.3/php. ini-production/usr/local/webserver/php/etc/php. ini
Sudo mv/usr/local/webserver/php/etc/php-fpm.conf.default/usr/local/webserver/php/etc/php-fpm.conf
Sudo groupadd www
Sudo useradd-g www
Sudo mkdir-p/www/webroot
Sudo chmod + w/www/webroot
Sudo chmod-R www: www/webroot
Sudo chown-R www: www/webroot
 
# Install php extension eaccelerator
Cd ~ /Tmp/
Tar-jxvf eaccelerator-0.9.6-rc2.tar.bz2
Cd eaccelerator-0.9.6-rc2/
/Usr/local/webserver/php/bin/phpize
./Configure -- enable-eaccelerator = shared -- with-php-config =/usr/local/webserver/php/bin/php-config
Make
Sudo make install
# Sudo vim/etc/sysctl. conf
# Install php extension memcache
Cd ~ /Tmp/
Tar-zxvf memcache-2.2.6.tgz
Cd memcache-2.2.6/
./Configure -- with-php-config =/usr/local/webserver/php/bin/php-config
Make
Sudo make install

 
8. Install nginx
Cd ~ /Tmp/
Tar-zxvf nginx-0.8.53.tar.gz
Cd nginx-0.8.53/
Sudo apt-get install libpcre3-dev
./Configure -- user = www -- group = www -- prefix =/usr/local/webserver/nginx -- with-http_stub_status_module -- with-http_ssl_module
 
Make
Sudo make install

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.