Public Repository

Last pushed: 2 months ago
Short Description
CentOS7 + Apache 2.4 + MySQL5.7 + PHP7 + Laravel5
Full Description

Docker


$ docker run --privileged -d -p 80:80 -v your_project_path:/var/www/project/ --name mylaravel mizueando/apache-laravel5:latest /sbin/init
$ docker exec -it mylaravel /bin/bash

Laravel


¥# su - laravel
$ cd /var/www

If you create a new laravel project
$ composer create-project --prefer-dist laravel/laravel project
:

If the laravel project already exists
$ cd project
$ composer update
:

$ cd project
$ rm -rf storage
$ ln -s /var/laravel/project/storage /var/www/project/storage
$ cd bootstrap
$ rm -rf cache
$ ln -s /var/laravel/project/cache /var/www/project/bootstrap/cache
$ exit
¥# systemctl restart httpd

MySQL


¥# mysql -u root
:
mysql>

Apatch


Config
/etc/httpd/conf/httpd.conf

Docker Pull Command
Owner
mizueando

Comments (0)