Project for ITSS_AS_K56 @ HUST @ 20141
- create new file with called
.env.local.php
- create new database (e.g.
itss
) - create new mysql user and grant privilege to this user
- edit
.env.local.php
<?php
return array(
'database' => 'your_database_name',
'database_user' => 'your_user',
'database_password' => 'your_secure_password'
);
- find in the file
bootstrap/start.php
the following lines
$env = $app->detectEnvironment(array(
'local' => array('c633'),
));
add to this array your hostname
(you can run hostname
command on your terminal to see your hostname).
it maybe look like this after your editing
$env = $app->detectEnvironment(array(
'local' => array('c633', 'your_hostname_comes_here'),
));
- Install
apache
- Config virtual host
- domain: ghost.dev
DocumentRoot
points to:your/path/to/project/folder/PUBLIC
e.g.
<VirtualHost *:80>
DocumentRoot "path/to/laravel/project/public"
ServerName ghost.dev
<Directory "path/to/laravel/project/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
- Set access permission on folder
app/storage
forapache
Run following commands
cd path/to/your/laravel/project/
sudo chown -R www-data app/storage