Created
June 17, 2013 10:29
-
-
Save williamchang73/5796021 to your computer and use it in GitHub Desktop.
Ubuntu, Mongo, php, Apache
This file contains 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
vi /etc/network/interface | |
vi /etc/hostname | |
vi /etc/hosts | |
apt-get update | |
apt-get dist-upgrade | |
apt-get install -y curl g++ make subversion php5-cli php-pear libcurl3 libcurl3-dev | |
wget http://pear.php.net/go-pear.phar | |
php go-pear.phar | |
pecl install mongo | |
echo "extension=mongo.so" >> /etc/php5/cli/php.ini | |
apt-get install -y mongodb | |
mkdir -p /data/db/ | |
/usr/bin/mongod & | |
pear channel-discover pear.phpunit.de | |
pear install --alldeps -f phpunit/PHPUnit | |
pear install Mail | |
pear install Net_SMTP | |
apt-get install -y apache2 | |
apt-get install php5-curl php5-mcrypt | |
apt-get install php5-gd | |
apt-get install libapache2-mod-php5 | |
service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment