-
Notifications
You must be signed in to change notification settings - Fork 8
Linux Installation
Vasilis Kalintiris edited this page Mar 12, 2014
·
3 revisions
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apache2 libapache2-mod-php5 php-pear
sudo apt-get install sqlite php5-sqlite
sudo apt-get install mysql-client mysql-server php5-mysql
Then, create a MySQL user.
sudo apt-get install phpmyadmin
sudo apt-get install git
sudo apt-get install curl php5-curl
git clone https://github.com/codebendercc/bachelor
cd to the `Symfony` folder
curl -s https://getcomposer.org/installer | php
php composer.phar install
cd to Symfony/
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load
sudo chmod -R 777 app/cache/ app/logs/
sudo chmod -R 777 path_to_your_codebender_fs_dir
Enable mod_rewrite
:
sudo a2enmod rewrite
Restart apache:
sudo service apache2 restart
sudo vim /etc/apache2/sites-available
Paste the following:
<VirtualHost *:80>
ServerName codebender.cc
ServerAdmin root@localhost
DocumentRoot /var/www/codebender.cc/Symfony/web
DirectoryIndex app.php
SetEnv APPLICATION_ENV "production"
<Directory /var/www/website/Symfony/web>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
(TODO)
(TODO)
If you want to use PHPUnit to run unit tests on the command line, or using the compiler's testing API (more info on that in the Compiler API page), you'll need to install PHPUnit. In ubuntu 12.04, you'll need to run the following commands.
sudo apt-get install phpunit
sudo pear upgrade pear
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony-project.com
sudo pear channel-discover pear.symfony.com
sudo pear install --alldeps phpunit/PHPunit
sudo apt-get install php-pear
sudo apt-get install clang
sudo apt-get install gcc-avr
sudo apt-get install arduino
- Cron tasks for auto-git-fetch
git clone https://github.com/codebendercc/libs
* Configure `Symfony/app/config/parameters.yml` based on `Symfony/app/config/parameters.dist.yml`
* Set directory in `parameters.yml`
Set permissions for app/cache
and app/logs
dirs
Enable mod_rewrite
:
sudo a2enmod rewrite
Restart Apache
:
sudo service apache2 restart
In Apache configuration file add the following:
<VirtualHost *:80>
ServerName libs.codebender.cc
#ServerAlias www.example.com
ServerAdmin root@localhost
DirectoryIndex index.php
DocumentRoot /var/www/libs/Symfony/web
<Directory /var/www/libs/Symfony/web/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Install a tftp server daemon locally to test shit:
sudo apt-get install tftpd-hpa