Last active
October 9, 2017 12:28
-
-
Save zohar/09a619a7eca6d761b05de59f48137422 to your computer and use it in GitHub Desktop.
Apt-get install - required packages for Drupal on Ubuntu (OpenideaL)
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
apt-get -y update && apt-get -y upgrade | |
locale-gen UTF-8 | |
# vim /etc/default/locale, add LC_ALL="en_US.UTF-8" | |
apt-add-repository ppa:ansible/ansible | |
apt-get update | |
# General packages | |
apt-get install -y git zip software-properties-common ansible | |
############## | |
# LAMP packages | |
apt-get install -y apache2 mysql-server php5-mysql php5 php5-dev libapache2-mod-php5 php5-mcrypt php5-common php5-gd php5-curl libssh2-php drush sendmail python-mysqldb | |
a2enmod rewrite | |
pecl install uploadprogress | |
# add "extension=uploadprogress.so" to php.ini | |
service apache2 restart | |
############### | |
########### | |
#openideal tweaks: | |
# Edit /etc/mysql/my.cnf | |
innodb_large_prefix=true | |
innodb_file_format=barracuda | |
innodb_file_per_table=true | |
# Apache site | |
DocumentRoot /var/www/openideal | |
<Directory /var/www/openideal> | |
AllowOverride All | |
</Directory> | |
# Reload apache | |
################### | |
# Mean.io packages | |
apt-get install -y npm mongodb-server | |
npm install -g npm | |
npm install -g n | |
n 8.4.0 | |
npm install -g mean-cli | |
cd /home/meanio | |
git clone -b 1.x-fixes https://github.com/linnovate/mean.git | |
npm install | |
gulp | |
######################## | |
# Fix Letsencrypt ca-cert | |
# See https://blog.rac.me.uk/2016/05/04/techy-getting-curl-to-work-with-lets-encrypt-unable-to-get-local-issuer-certificate-error/ | |
# | |
add-apt-repository ppa:certbot/certbot | |
apt-get -y update && apt-get -y install certbot python-certbot-apache | |
curl https://letsencrypt.org/certs/isrgrootx1.pem.txt -o /usr/local/share/ca-certificates/isrgrootx1.crt | |
curl https://letsencrypt.org/certs/letsencryptauthorityx1.pem.txt -o /usr/local/share/ca-certificates/letsencryptauthorityx1.crt | |
curl https://letsencrypt.org/certs/letsencryptauthorityx2.pem.txt -o /usr/local/share/ca-certificates/letsencryptauthorityx2.crt | |
curl https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx1.crt | |
curl https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx2.crt | |
curl https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx3.crt | |
curl https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx4.crt | |
dpkg-reconfigure -f noninteractive ca-certificates | |
# Proceed to software installation | |
# For OpenideaL: | |
/sites/all/modules# ln -s ../../../profiles/idea/modules/custom/challenge_widget/ | |
/sites/all/modules# ln -s ../../../profiles/idea/modules/custom/idea_widget/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment