[docker] error_log() not write inside web page
SupaPlex <[email protected]>
| Newsgroups | comp.lang.php |
|---|---|
| Organization | Aioe.org NNTP Server |
| Message-ID | <[email protected]> |
supaplex$ cat docker-compose.yml
services:
web:
image: php:apache
ports:
- 8013:80
volumes:
- .:/var/www/html
supaplex$ cat index.php
<?php
echo "BEFORE\n";
error_log("abc");
echo "AFTER\n";
supaplex$ docker-compose up -d
supaplex_web_1 is up-to-date
$ docker-compose run web php index.php
Creating supaplex_web_run ... done
BEFORE
abc
AFTER
OK, but...
supaplex$ curl http://localhost:8013/
BEFORE
AFTER
Why *abc* does not appear?