Public Repository

Last pushed: 2 years ago
Short Description
PHP 5.6 and Apache for Yii2
Full Description

This Image was modified to work with Yii2 app, and is based in php oficial image (check the php docker doc to get help):

This command launch set the "Actual dir (where we stay)" to "/var/www/html"
docker run -p 8080:80 -i --rm -v "$PWD":/var/www/html pollardino/php5-apache{tag}

Note: Replace "{tag}" for the version tag:

Ex:
docker run -p 8080:80 -i --rm -v "$PWD":/var/www/html pollardino/php5-apache:v01

v01:
This image only add some modules (gd and mbstring) to work with Yii2 Framework
v02:
Enable mod_rewrite for pretty url in yii2 (recomended for pretty urls in yii2)

====================================================================================
Notes:
To enabled Gii and Debug Toolbar, add IP's filters to each module: Ex:

$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
'allowedIPs' => ['172.17.42.']
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['172.17.42.
']
];

Docker Pull Command
Owner
pollardino

Comments (0)