Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@ Adapters should generate their own private key and get the CSR signed by a trust
### Logging
This image does not use the standard Docker logging mechanism, but the native OS-based logging.

If you like, you can add the following commands in the file "httpd-foreground" in order to build an image that logs SimpleSAMLphp info to syslog and that you can check with `docker logs -f <image-name>`:

```
SAML_FOLDER=/var/simplesamlphp
FULL_CONFIG_PATH=${SAML_FOLDER}/config/config.php
SAML_LOG_FILE=${SAML_FOLDER}/log/simplesamlphp.log

sed -i "s/'syslog',/'file',/g" ${FULL_CONFIG_PATH}
sed -i "s#;error_log = syslog#error_log = /dev/console#g" ${FULL_CONFIG_PATH}

touch ${SAML_LOG_FILE}
chown apache:apache ${SAML_LOG_FILE}
chmod a+rw /dev/console
ln -sf /dev/console ${SAML_LOG_FILE}
```

## Building from source:

```
Expand Down