Requirements
- Apache + mod_rewrite
Apache settings
/etc/apache2/extra/httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "/Users/Alex/Sites/TasksApp/public"
ServerName tasks.local
ServerAlias www.tasks.local
<Directory "/Users/Alex/Sites/TasksApp/public">
#Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
/ect/hosts:
127.0.0.1 tasks.local www.tasks.local
Installation
- run
php composer.phar update - run
cp config.php.dist config.phpand add settings - run
vendor/bin/phinx initand add DB settings to thephinx.ymlcreated in the root folder - run
chmod -R 777 var - apply migration
vendor/bin/phinx migrate