Created
October 17, 2012 07:02
-
-
Save jonatw/3904123 to your computer and use it in GitHub Desktop.
Debina LAMP with Cideigniter build guide
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
#!/bin/bash | |
#bash <(curl -fsSLk https://raw.github.com/gist/3904123) | |
#install packages | |
apt-get update | |
apt-get -y install apache2 | |
apt-get -y install php5 | |
apt-get -y install vim | |
apt-get -y install git-core | |
# deploy bootstrap | |
cd /var/www/ | |
rm -rf ./* | |
git clone https://github.com/sjlu/CodeIgniter-Bootstrap.git . | |
#fix htaccess | |
a2enmod rewrite | |
wget -O .htaccess https://raw.github.com/gist/3904203/7ab84cd0a08e0657496c8d2e29f4283ec44cd058/.htaccess | |
sed -i 's|AllowOverride None|AllowOverride All|g' /etc/apache2/sites-enabled/000-default | |
/etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment