before all, you should install php, mysql and apache2 on your computer
then apache2 must be configured.
- enable mod rewrite
- set allowoveride to fileinfo
- sudo a2enmod rewrite
- sudo gedit /etc/apache2/sites-available/default and then set AllowOverride None to AllowOverride FileInfo
installing symfony2
download the latest version from http://symfony.com/download
extract & rename(kanablog) it and copy to document root. kanaslab.org is the project name here
update the source by using composer (sudo composer update;)
start the server “php app/console server:run”
and to test your installation goto http://localhost:8000/config.php
now change the permission
$ rm -rf app/cache/*
$ rm -rf app/logs/*
sudo setfacl -R -m u:www-data:rwx -m u:<computer name>:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:<computer name>:rwx app/cache app/logs
OR
sudo chmod -R 777 *
update the source using composer
$ php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
$ php composer.phar update
No comments:
Post a Comment