Last active
August 29, 2015 14:11
-
-
Save fasthold/b3e64994a64a08ae47d5 to your computer and use it in GitHub Desktop.
lamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# System related | |
sudo apt-get update | |
sudo apt-get -y install build-essential ssh curl software-properties-common python-software-properties python g++ make | |
# VCS | |
sudo apt-get -y install subversion git | |
# Web Server | |
sudo apt-get -y install apache2 | |
# php | |
sudo apt-get -y install php5 php5-cli php5-gd php5-curl php5-mysql php5-xmlrpc libmcrypt-dev mcrypt php5-mcrypt libgd-tools libapache2-mod-php5 php5-imagick php5-json php5-cgi php5-imap php5-mhash php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-dev | |
# 这几个视情况装吧 国际化语言支持:php5-idn php5-pspell php5-recode, 一种网络协议:php5-snmp | |
# 14.04 里默认没有启用 imap,需要执行一下 | |
sudo php5enmod imap | |
# 14.04 在安装 mcrypt 之后,默认没有启用?貌似... 需要手动做个软连接启用一下 (http://askubuntu.com/questions/460837/mcrypt-extension-is-missing-in-14-04-server-for-mysql) | |
sudo php5enmod mcrypt | |
sudo service apache2 restart | |
# Composer | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
# imagemagick | |
sudo apt-get -y install imagemagick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment