diff options
Diffstat (limited to 'scripts/local-install.sh')
-rwxr-xr-x | scripts/local-install.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/scripts/local-install.sh b/scripts/local-install.sh new file mode 100755 index 0000000..37c1c6d --- /dev/null +++ b/scripts/local-install.sh @@ -0,0 +1,30 @@ +#!/bin/bash +apt-get update +apt-get install apache2 -y +apt-get install php5 libapache2-mod-php5 -y +# passwort lsfks-openslx +apt-get install mysql-server -y +apt-get install phpmyadmin -y +echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf +zcat /usr/share/doc/phpmyadmin/examples/create_tables.sql.gz | mysql -uroot -p +apt-get install zend-framework-bin -y +a2enmod rewrite +cd /tmp/ +su sf34 -c "git clone git@openslx.org:lsfks/master-teamprojekt/pbs2.git" +mkdir /tmp/pbs2/library/ +ln -s /usr/share/php/libzend-framework-php/Zend/ /tmp/pbs2/library/Zend +chown sf34:uni library/ +touch /etc/apache2/sites-available/pbs2 +echo " <VirtualHost 127.0.0.2:80>" >> /etc/apache2/sites-available/pbs2 +echo " ServerName pbs2.local" >> /etc/apache2/sites-available/pbs2 +echo " ServerAlias pbs2.local" >> /etc/apache2/sites-available/pbs2 +echo " ServerAdmin admin@pbs2.local" >> /etc/apache2/sites-available/pbs2 +echo " DocumentRoot /tmp/pbs2/public" >> /etc/apache2/sites-available/pbs2 +echo " <Directory /tmp/pbs2/public >" >> /etc/apache2/sites-available/pbs2 +echo " Options FollowSymLinks" >> /etc/apache2/sites-available/pbs2 +echo " AllowOverride All" >> /etc/apache2/sites-available/pbs2 +echo " </Directory>" >> /etc/apache2/sites-available/pbs2 +echo " </VirtualHost>" >> /etc/apache2/sites-available/pbs2 +ln -s /etc/apache2/sites-available/pbs2 /etc/apache2/sites-enabled/pbs2 +echo "127.0.0.2 pbs2.local" >> /etc/hosts +/etc/init.d/apache2 restart |