File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM php:7.2 -apache
1+ FROM php:7.3 -apache
22MAINTAINER Jgauthi <github.com/jgauthi>
33
44VOLUME ["/var/www" ]
Original file line number Diff line number Diff line change 66 # match this virtual host. For the default virtual host (this file) this
77 # value is not decisive as it is used as a last resort host regardless.
88 # However, you must set it for any further virtual host explicitly.
9- ServerName php72 .local
9+ ServerName php73 .local
1010
1111 ServerAdmin webmaster@localhost
1212 DocumentRoot /var/www/html
Original file line number Diff line number Diff line change 33
44# Conf
55webdir=" /var/www/html/"
6- container=" apachephp72 "
7- image=" apache-php72 "
8- vhost=" php72 .local"
6+ container=" apachephp73 "
7+ image=" apache-php73 "
8+ vhost=" php73 .local"
99
1010# Init images
1111docker stop $container
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ chmod +x install-image.sh
1515
1616Get the current docker IP with the command:
1717``` shell script
18- docker inspect apachephp72 | grep ' "IPAddress": "'
18+ docker inspect apachephp73 | grep ' "IPAddress": "'
1919```
2020
21- And edit your /etc/hosts: ` 172.17.X.X php72 .local `
21+ And edit your /etc/hosts: ` 172.17.X.X php73 .local `
2222
2323** Installed packages:**
2424* Ubuntu Server 12, based on ubuntu docker image
@@ -43,23 +43,23 @@ And edit your /etc/hosts: `172.17.X.X php72.local`
4343 * display_errors = On
4444 * error_reporting = E_ALL (default, overridable per env variable)
4545
46- For uninstall, you can use the command: ` docker rm apachephp72 `
46+ For uninstall, you can use the command: ` docker rm apachephp73 `
4747
4848
4949## Usage
5050
5151``` shell script
5252# Start container
53- docker start apachephp72
53+ docker start apachephp73
5454
5555# Use composer
56- docker exec -it apachephp72 composer install
56+ docker exec -it apachephp73 composer install
5757
5858# Stop container
59- docker stop apachephp72
59+ docker stop apachephp73
6060```
6161
62- You can check on url: http://php72 .local
62+ You can check on url: http://php73 .local
6363
6464** Access apache logs** :
6565Apache is configured to log both access and error log to STDOUT. So you can simply use ` docker logs ` to get the log output:
You can’t perform that action at this time.
0 commit comments