Initialize Ubuntu Trusty 14.04, trusty14.04

Source: Internet
Author: User

Initialize Ubuntu Trusty 14.04, trusty14.04
1. Software Source

Sudo vim/etc/apt/source. list # change software source to sohu deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe release http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe release http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe release http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe release http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe Validation-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe Validation-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe Validation-src http://mirrors.sohu.com/ubuntu/ trusty- proposed main restricted universe multiversedeb-src http://mirrors.sohu.com/ubuntu/ trusty-backports main restricted universe multiverse
2. update and upgrade existing software and install some basic dependent libraries.
apt-get update apt-get upgradeapt-get install libcurl3-dbg curl libpcre3 libpcre3-dev libcurl4-openssl-dev  libyaml-dev
3. Install software
  • Nginx/MySQL/Redis/Git/SVN
    apt-get install nginx mysql-server redis-server git subversion
  • PHP and core extensions
    Apt-get install php5 # apache-related warnings and errors appear in the middle, indicating that Apache is installed by default, uninstall apt-get remove apache2apt-get autoremove # install core extension apt-get install php5-dev php5-cgi php5-cli php5-fpm php5-common php5-mysql php5-curl php5-dbg php5-json php5-gd php5-mcrypt
  • Composer
    curl -sS https://getcomposer.org/installer | phpsudo mv composer.phar /usr/local/bin/composer
  • Extension of PHP in PECL, such as Yaf and Yar
    pecl install yamlpecl install yaf pecl isntall yar
  • Phalcon
    # Put the downloaded source code in the/source directory git clone -- depth = 1 git: // github.com/phalcon/cphalcon.gitcd cphalcon/buildsudo./install

    Configuration

    sudo vim /etc/php5/mods-available/private.iniextension=yaml.soextension=yaf.soextension=yar.soextension=phalcon.soextension=swoole.soln -s /etc/php5/mods-available/private.ini /etc/php5/fpm/conf.d/30-private.iniln -s /etc/php5/mods-available/private.ini /etc/php5/cli/conf.d/30-private.iniln -s /etc/php5/mods-available/private.ini /etc/php5/cgi/conf.d/30-private.ini

     

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.