- Create a
config.php
file in the root directory with the database configuration:
<?php
$config['db'] = array(
'host' => "localhost",
'username' => "newuser",
'password' => "password",
'dbname' => "erettsegik",
'charset' => 'utf8'
);
For creating users in MySQL, see this link.
- Create the database
mysql> create database erettsegik;
$ mysql -u newuser -p erettsegik < schema.sql
- Install composer dependencies
$ composer install
- Run the local PHP server
$ php -S localhost:8000