Created
October 26, 2012 12:46
-
-
Save chx/3958575 to your computer and use it in GitHub Desktop.
Making a Debian squeeze server into running Drupal 8 tests
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 update | |
aptitude install -y apache2 libonig2 libqdbm14 libxml2 apache2-mpm-prefork ucf libicu44 mysql-server libjpeg62 libpng12-0 libt1-5 libxpm4 git-core autoconf automake libssl-dev libtool shtool make | |
service mysql stop | |
sed -i 's/\/var\/lib\/mysql/\/dev\/shm\/mysql/g' /etc/mysql/my.cnf | |
sed -i '/en_US/a skip_innodb' /etc/mysql/my.cnf | |
mysql_install_db | |
service mysql start | |
echo ServerName localhost > /etc/apache2/httpd.conf | |
cd /etc/apache2/mods-enabled | |
ln -s ../mods-available/rewrite.load | |
cd ../sites-enabled | |
rm 000-default | |
wget -O drupal https://raw.github.com/gist/3959704/0de3ffe942ceb6829b6ac0a0271692100ede88cc/gistfile1.txt | |
service apache2 restart | |
cd /root | |
mkdir packages | |
cd packages | |
wget -r -l1 http://archives.dotdeb.org/dists/squeeze/php5/5.3.5/binary-amd64/ | |
mv archives.dotdeb.org/dists/squeeze/php5/5.3.5/binary-amd64/* . | |
rm -r archives.dotdeb.org/ | |
dpkg -i php5-common_5.3.5-0.dotdeb.1_amd64.deb libapache2-mod-php5_5.3.5-0.dotdeb.1_amd64.deb php5-cli_5.3.5-0.dotdeb.1_amd64.deb php5-curl_5.3.5-0.dotdeb.1_amd64.deb php5-mysql_5.3.5-0.dotdeb.1_amd64.deb php-pear_5.3.5-0.dotdeb.1_all.deb php5-gd_5.3.5-0.dotdeb.1_amd64.deb php5-dev_5.3.5-0.dotdeb.1_amd64.deb | |
sed -i s/32M/128M/ /etc/php5/cli/php.ini | |
pecl install apc | |
need to answer questions. Sucks. | |
cd /usr/local | |
curl http://ftp.drupal.org/files/projects/drush-All-versions-5.x-dev.tar.gz|tar xzf - | |
cd bin | |
ln -s ../drush/drush . | |
cd /var/www | |
git clone --recursive --branch 8.x http://git.drupal.org/project/drupal.git | |
cd drupal | |
mysql -e 'create database drupal' | |
drush si -y standard --db-url='mysql://root@localhost/drupal' | |
drush ev 'module_enable(array("simpletest"));' | |
chown -R www-data:www-data sites/default/files/ | |
grep -v install_profile sites/default/settings.php > /tmp/x | |
mv /tmp/x sites/default/settings.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment