Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #19179
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | "J.O. Aho" <user@example.net> |
| Newsgroups | comp.lang.php |
| Subject | Re: [docker] error_log() not work |
| Date | Sat, 26 Nov 2022 13:28:54 +0100 |
| Lines | 29 |
| Message-ID | <juef46Fr2ohU1@mid.individual.net> (permalink) |
| References | <tlssmh$1kur$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net A2hPFdpH0NGMowKT13nm5QQOuwavoK17xpmZJvH8QtMsb+qOmA |
| Cancel-Lock | sha1:nPlkkeQT18ArpleCMQdbPJ7tKvk= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 |
| Content-Language | en-US-large |
| In-Reply-To | <tlssmh$1kur$1@gioia.aioe.org> |
| Xref | csiph.com comp.lang.php:19179 |
Show key headers only | View raw
On 26/11/2022 12.18, SupaPlex wrote:
> $ cat master/src/index-debug.php
> <?php
> error_log("error message 123");
> var_dump(
> ini_get('error_log'),
> ini_get('log_errors'),
> file_get_contents('/var/log/error.log'),
> );
> $ curl http://localhost:8014/master/src/index-debug.php
> string(18) "/var/log/error.log"
> string(1) "1"
> <b>Warning</b>: file_get_contents(/var/log/error.log): Failed to open
> stream: No such file or directory in
> <b>/var/www/html/master/src/index-debug.php</b> on line <b>4</b><br />
> bool(false)
>
> Why?
Does the /var/log directory exist?
Does the user which runs the process have the right to write into the
directory?
--
//Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[docker] error_log() not work SupaPlex <old@gamer.s> - 2022-11-26 12:18 +0100
Re: [docker] error_log() not work "J.O. Aho" <user@example.net> - 2022-11-26 13:28 +0100
Re: [docker] error_log() not work SupaPlex <old@gamer.s> - 2022-11-26 15:45 +0100
Re: [docker] error_log() not work SupaPlex <old@gamer.s> - 2022-11-26 16:48 +0100
Re: [docker] error_log() not work Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2022-11-26 16:52 +0000
Re: [docker] error_log() not work SupaPlex <old@gamer.s> - 2022-11-26 21:33 +0100
Re: [docker] error_log() not work Arno Welzel <usenet@arnowelzel.de> - 2022-11-29 21:22 +0100
csiph-web