You are here

Dockerize any installation with PHP7 or PHP5

 

1- Make sure DDKits software is installed

ddk install

2- Start your environment installation

ddk start

3- Fill all information needed, and choose LAMP/PHP5 or LAMP/PHP7

LAMP / PHP5 includes 


 

 

# apachectl -v

Server version: Apache/2.4.10 (Debian)

Server built:   Jun 20 2017 19:11:58

 

 

# php -v

PHP 5.6.30 (cli) (built: May 13 2017 01:21:10) 

Copyright (c) 1997-2016 The PHP Group

Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

    with XCache v3.2.0, Copyright (c) 2005-2014, by mOo

    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    with Xdebug v2.5.4, Copyright (c) 2002-2017, by Derick Rethans

    with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo

 

# php --ini

Configuration File (php.ini) Path: /usr/local/etc/php

Loaded Configuration File:         (none)

Scan for additional .ini files in: /usr/local/etc/php/conf.d

Additional .ini files parsed:      /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini,

/usr/local/etc/php/conf.d/docker-php-ext-bz2.ini,

/usr/local/etc/php/conf.d/docker-php-ext-calendar.ini,

/usr/local/etc/php/conf.d/docker-php-ext-gd.ini,

/usr/local/etc/php/conf.d/docker-php-ext-intl.ini,

/usr/local/etc/php/conf.d/docker-php-ext-mcrypt.ini,

/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,

/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini,

/usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini,

/usr/local/etc/php/conf.d/docker-php-ext-soap.ini,

/usr/local/etc/php/conf.d/docker-php-ext-xcache.ini,

/usr/local/etc/php/conf.d/docker-php-ext-zip.ini,

/usr/local/etc/php/conf.d/ext-mongo.ini,

/usr/local/etc/php/conf.d/ext-xdebug.ini

 

 

# php -m

[PHP Modules]

bcmath

bz2

calendar

Core

ctype

curl

date

dom

ereg

fileinfo

filter

ftp

gd

hash

iconv

intl

json

libxml

mbstring

mcrypt

mongo

mysqli

mysqlnd

openssl

pcre

PDO

pdo_mysql

pdo_sqlite

Phar

posix

readline

Reflection

session

SimpleXML

soap

SPL

sqlite3

standard

tokenizer

XCache

XCache Cacher

xdebug

xml

xmlreader

xmlwriter

Zend OPcache

zip

zlib

 

[Zend Modules]

XCache

XCache Cacher

Xdebug

Zend OPcache

 


 

 

LAMP / PHP7 includes 


 

# apachectl -v

Server version: Apache/2.4.10 (Debian)

Server built:   Jun 20 2017 19:11:58

 

# php -v

PHP 7.0.20-1~dotdeb+8.2 (cli) ( NTS )

Copyright (c) 1997-2017 The PHP Group

Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

    with Zend OPcache v7.0.20-1~dotdeb+8.2, Copyright (c) 1999-2017, by Zend Technologies

    with Xdebug v2.5.1, Copyright (c) 2002-2017, by Derick Rethans

 

 

# php -m

[PHP Modules]

calendar

Core

ctype

curl

date

dom

exif

fileinfo

filter

ftp

gd

gettext

hash

iconv

json

libxml

mbstring

mcrypt

mysqli

mysqlnd

openssl

pcntl

pcre

PDO

pdo_mysql

Phar

posix

readline

Reflection

session

shmop

SimpleXML

sockets

SPL

standard

sysvmsg

sysvsem

sysvshm

tokenizer

wddx

xdebug

xml

xmlreader

xmlwriter

xsl

Zend OPcache

zip

zlib

 

[Zend Modules]

Xdebug

Zend OPcache

 

 

 




4- Open any browser and try to opend the domain that you picked for your environment 

5- Copy your platform files into the home directory within DDKits folder: (Copy your website files into a folder name public inside the lamp(7, 5)-deploy)

lamp5-deploy/public
lamp7-deploy/public