The purpose of this document is to build a PHP development environment quickly and easily.
- Docker
- Apache
- MariaDB
- PHP Framework
$ generate-cert.sh
Load the certificate at Keychain Access
$ docker compose up -d
dockerfile-modern PHP 8.1.4
$ composer require cakephp/cakephp .
$ composer create-project laravel/laravel .
$ npm install
$ npm run watch
dockerfile-legacy PHP 7.1
$ composer require koseven/koseven .
Item | Info |
---|---|
Host | 127.0.0.1 |
Port | 3306 |
User | test |
Password | passw0rd |
Database | mobydick |
- Unable exist the log file
- Check path at
/application/config/log4php.properties
- Check path at
- Unable connect to database
- Check setting at
/application/config/database.php
- Check setting at
- Unable trust the host
- Add host at
/application/config/url.php
- Add host at
- Unable apply the style
- Match url at conditional operator in
/application/classes/Controller/Base.php
- Match url at conditional operator in
- Unable access the admin page
- Check ip restrictions at
/application/classes/Controller/Admin/Base.php
- Check ip restrictions at
- Unable login the admin page
- Check
Cookie::$secure
andCookie::$domain
at/application/bootstrap.php
- Delete
Application>Storage>Session
andApplication>Storage>Cookies
at Chrome DevTools
- Check
- Unable display the event page
- Create symbolic links
- Run
$ ln -s /var/www/html/public/www/official /home/{appName}Official
for official - Run
$ ln -s /var/www/html/public/www/contents /home/contents
for contents - Run
$ ln -s /var/www/html/public/www/contents2 /home/contents2
for contents2
- Unable register image of event page
- Run
$ mkdir /mnt/{s3,s3/movie,s3/radio}
to add folder - Run
$ chmod -R 777 /mnt/s3
to change permission
- Run