-
-
Save greenlieber/2990534 to your computer and use it in GitHub Desktop.
Install Basics, Apache, MongoDB, UFW, node.js, and Lithium
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
cd ~ | |
echo "Server name: " | |
read server_name | |
#Basic installs | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install htop apache2 php5 php-pear php5-dev ufw subversion screen git-core php-pear build-essential openssl libssl-dev php5-dev libcurl4-openssl-dev libxml2-dev php5-curl unzip python-software-properties -y | |
#MongoDB | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
#echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" | sudo tee -a /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install mongodb-10gen | |
sudo pecl install mongo-1.0.9 | |
echo "extension=mongo.so" | sudo tee -a /etc/php5/apache2/php.ini | |
echo "extension=mongo.so" | sudo tee -a /etc/php5/cli/php.ini | |
#Apache | |
echo "ServerName $server_name" | sudo tee -a /etc/apache2/httpd.conf | |
sudo a2enmod rewrite | |
#Node.js | |
wget http://nodejs.org/dist/node-v0.4.11.tar.gz | |
tar -xf node-*.gz | |
rm node-*.gz | |
cd node-* | |
./configure | |
make | |
sudo make install | |
cd | |
sudo rm node-* -R | |
curl http://npmjs.org/install.sh | sudo sh | |
npm install faye | |
#UFW | |
sudo ufw allow openssh | |
sudo ufw allow apache | |
sudo ufw enable | |
#Lithium | |
cd /var/www | |
sudo mkdir xcedo | |
cd xcedo | |
sudo mkdir libraries | |
cd libraries | |
sudo git clone https://github.com/UnionOfRAD/lithium.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment