diff options
| author | Simon | 2011-01-17 11:59:31 +0100 |
|---|---|---|
| committer | Simon | 2011-01-17 11:59:31 +0100 |
| commit | 786116a61f362642210e538f126e24120ed948cd (patch) | |
| tree | 3554af0a7c666fd93ef07b1e673f77795e5b67fd | |
| parent | beginnendes Datenbankschema (diff) | |
| download | pbs2-786116a61f362642210e538f126e24120ed948cd.tar.gz pbs2-786116a61f362642210e538f126e24120ed948cd.tar.xz pbs2-786116a61f362642210e538f126e24120ed948cd.zip | |
zend lokal einrichten
| -rwxr-xr-x | zend-einrichten.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/zend-einrichten.sh b/zend-einrichten.sh new file mode 100755 index 0000000..4572325 --- /dev/null +++ b/zend-einrichten.sh @@ -0,0 +1,31 @@ +#!/bin/bash +apt-get update +apt-get install apache2 -y +apt-get install php5 libapache2-mod-php5 -y +echo "<?php echo date('d.m.Y');?>" > /var/www/index.php +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 /var/www/ +zf create project pbs +cd pbs/library/ +ln -s /usr/share/php/libzend-framework-php/Zend /var/www/pbs/library +touch /etc/apache2/sites-available/pbs +echo " <VirtualHost 127.0.0.2:80>" >> /etc/apache2/sites-available/pbs +echo " ServerName pbs.local" >> /etc/apache2/sites-available/pbs +echo " ServerAlias pbs.local" >> /etc/apache2/sites-available/pbs +echo " ServerAdmin admin@pbs.local" >> /etc/apache2/sites-available/pbs +echo " DocumentRoot /var/www/pbs/public" >> /etc/apache2/sites-available/pbs +echo " <Directory /var/www/pbs/public >" >> /etc/apache2/sites-available/pbs +echo " Options FollowSymLinks" >> /etc/apache2/sites-available/pbs +echo " AllowOverride All" >> /etc/apache2/sites-available/pbs +echo " </Directory>" >> /etc/apache2/sites-available/pbs +echo " </VirtualHost>" >> /etc/apache2/sites-available/pbs +ln -s /etc/apache2/sites-available/pbs /etc/apache2/sites-enabled/pbs +sudo echo "127.0.0.2 pbs.local" >> /etc/hosts +/etc/init.d/apache2 restart + + |
