-
Add this PHP 7.1 repository to /etc/apt/sources.list:
deb https://packages.sury.org/php/ jessie main deb-src https://packages.sury.org/php/ jessie main
-
Install their GPG key:
wget https://packages.sury.org/php/apt.gpg -O - | apt-key add -
and
apt-transport-https
:apt-get install apt-transport-https
-
apt-get update
-
apt-get install mysql-server
-
mysql_secure_installation
-
apt-get install curl apache2 php7.1 php7.1-curl php7.1-mcrypt php7.1-mysql
-
Set the Apache DocumentRoot to the
public
directory (e.g./var/www/boilerplate/public
). -
Make sure you have mod_rewrite enabled:
First, run
a2enmod rewrite
.Then, add the following to your Apache config:
<Directory /var/www> AllowOverride All Order allow,deny allow from all </Directory>
Finally, restart apache
service restart apache2
-
Upload the boilerplate files to Apache's file root (e.g.
/var/www/boilerplate
). -
Run
composer install
-
Import the database. First create a database with the name of your choice (
CREATE DATABASE boilerplate;
), then run the following:mysql boilerplate < db.sql
-
Configure the database appropriately by copying
config-sample.ini
toconfig.ini
.
By default, all classes are in the acme
namespace. To switch to your own namespace, follow these steps, replacing binaro
with your desired namespace name.
-
Rename the directory
lib/acme
tolib/binaro
-
Run
sed -i '' 's/acme/binaro/g' `find * -type f -print`