You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,16 +9,16 @@ A Docker image based on Ubuntu, serving PHP 5 or 7 running as Apache Module. Use
9
9
You can choose the php version with [tags](https://github.com/jgauthi/poc_docker_apache_php/tags). Then, you can the configuration on "conf section" on file install-image.sh.
10
10
11
11
```shell script
12
-
chmod +x install-image.sh .docker/run.sh
12
+
chmod +x install-image.sh
13
13
./install-image.sh
14
14
```
15
15
16
16
Get the current docker IP with the command:
17
17
```shell script
18
-
docker inspect apachephp53| grep '"IPAddress": "'
18
+
docker inspect apachephp56| grep '"IPAddress": "'
19
19
```
20
20
21
-
And edit your /etc/hosts: `172.17.X.X php53.local`
21
+
And edit your /etc/hosts: `172.17.X.X php56.local`
22
22
23
23
**Installed packages:**
24
24
* Ubuntu Server 12, based on ubuntu docker image
@@ -43,20 +43,23 @@ And edit your /etc/hosts: `172.17.X.X php53.local`
43
43
* display_errors = On
44
44
* error_reporting = E_ALL (default, overridable per env variable)
45
45
46
-
For uninstall, you can use the command: `docker rm apachephp53`
46
+
For uninstall, you can use the command: `docker rm apachephp56`
47
47
48
48
49
49
## Usage
50
50
51
51
```shell script
52
52
# Start container
53
-
docker start apachephp53
53
+
docker start apachephp56
54
+
55
+
# Use composer
56
+
docker exec -it apachephp56 composer install
54
57
55
58
# Stop container
56
-
docker stop apachephp53
59
+
docker stop apachephp56
57
60
```
58
61
59
-
You can check on url: http://php53.local
62
+
You can check on url: http://php56.local
60
63
61
64
**Access apache logs**:
62
65
Apache is configured to log both access and error log to STDOUT. So you can simply use `docker logs` to get the log output:
0 commit comments