diff --git a/.travis.yml b/.travis.yml
index ed585e2970f..48ea16ab886 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -281,7 +281,7 @@ script:
# The wget should return a page with line '
wget -O - http://127.0.0.1 > test.html
head test.html
- sudo cat /var/log/apache2/error.log
+ sudo cat /var/log/apache2/travis_error_log
set +e
echo
@@ -379,7 +379,7 @@ after_failure:
done
# Apache log file
echo "Debugging informations for file apache error.log"
- sudo cat /var/log/apache2/error.log
+ sudo cat /var/log/apache2/travis_error_log
if [ "$DEBUG" = true ]; then
# Dolibarr log file
echo "Debugging informations for file dolibarr.log (latest 50 lines)"
diff --git a/build/travis-ci/apache.conf b/build/travis-ci/apache.conf
index a4965c40d68..60a4095c34a 100644
--- a/build/travis-ci/apache.conf
+++ b/build/travis-ci/apache.conf
@@ -1,5 +1,6 @@
DocumentRoot %TRAVIS_BUILD_DIR%/htdocs
+ ErrorLog /var/log/apache2/travis_error_log
Options FollowSymLinks MultiViews ExecCGI