Date post: | 18-Jan-2017 |
Category: |
Technology |
Upload: | weerayut-hongsa |
View: | 741 times |
Download: | 1 times |
CodeIgniter For ProjectWorkshop 001 : Install Docker and CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Docker Web Developer Style
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
PHP 5.6ApacheLink www location from my computer to docker container
(CodeIgniter)
MySQL 5.6
Docker Installation for Ubuntu 14.04
sudo su -l
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
wget https://gist.githubusercontent.com/Kusumoto/c2b256b02ec62621c2e1/raw/8b9437c8f8ea75a3225461ea67b36fd8e4fdc5bf/install_docker_ubuntu_14.04.sh
sh install_docker_ubuntu_14.04.sh
Setting up Docker Containermkdir /home/[your user]/www
sudo su -l
docker run --name mysql -e MYSQL_ROOT_PASSWORD=[my sql root password] -d mysql/mysql-server:5.5 //Create Container MySQL Version 5.6
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
docker run --name php5.6 --link mysql:mysql -d -p 80:80 -v /home/[your user]/www/:/var/www/html/ kusumoto/docker-php5.6-dev-env:latest
//Create Container PHP 5.6 and Apache Web Server
docker ps
Setting up Docker Container
Apache and MySQL Container Now Running
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Testing MySQL Connection• Create “test.php” in www folder and write coding to file.
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Install phpMyAdmin
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
cd /home/[your user]/www
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-all-languages.tar.gz
tar -zxvf phpMyAdmin-4.5.3.1-all-languages.tar.gz
mv phpMyAdmin-4.5.3.1-all-languages phpmyadmin
cd phpmyadmin
Install phpMyAdmin
mv config.sample.inc.php config.inc.php
nano config.inc.php
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• Edit this section in file config.inc.php and save
Install phpMyAdmin
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Install CodeIgniter• Go to https://codeigniter.com/download and download CodeIgniter later
version
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• Copy CodeIgniter zip file to /home/[your user]/www
• Unzip CodeIgniter zip file
Install CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Install CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• Rename CodeIgniter default folder name to your project name (this example use “ci_ex1”)
Install CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• Open Mozilla Firefox and go to url http://localhost/ci_ex1/
Install CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• If you see this page. You’re complete install CondeIgniter!!
Install CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Forward to Lesson 103
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com