Skip to content

Commit

Permalink
another attempt at logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Belo committed Jan 23, 2012
1 parent caa713e commit a0f1707
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ sed -i 's/Listen 80/Listen '\$PORT'/' /app/apache/conf/httpd.conf
for var in \`env|cut -f1 -d=\`; do
echo "PassEnv \$var" >> /app/apache/conf/httpd.conf;
done
touch /app/apache/logs/error_log
touch /app/apache/logs/access_log
tail -F /app/apache/logs/error_log &
tail -F /app/apache/logs/access_log &
export LD_LIBRARY_PATH=/app/php/ext
echo "Launching apache"
exec /app/apache/bin/httpd -X
Expand Down
2 changes: 1 addition & 1 deletion conf/httpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ LogLevel warn
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "|cat" common
CustomLog "logs/access_log" common

#
# If you prefer a logfile with access, agent, and referer information
Expand Down

0 comments on commit a0f1707

Please sign in to comment.