$ cd /var/www/html
$ git clone https://github.com/crew1274/web
$ cd web
$ composer install
$ cp .env.example .env
Note: 檢查 .env的設定,預設使用SQLite3,需要PHP SQLite Extension。
$ touch database/database.sqlite
$ php artisan key:generate
$ php artisan migrate --seed
$ cp storage/app/config_backup.json storage/app/config.json
$ sudo chmod 755 -R ../web/
$ sudo chmod o+w -R storage/
$ sudo vim /etc/apache2/sites-available/web.conf
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/web/public
<Directory /var/www/html/web>
AllowOverride All
</Directory>$ sudo a2dissite 000-default.conf
$ sudo a2ensite web.conf
$ sudo a2enmod rewrite
$ sudo service apache2 restart