WebFaction
Community site: login faq

The following PHP works on another server but does not log anything on a webfaction server. Am I doing something wrong? Everything else is working fine on the webfaction server.

error_log("HTTP_HOST [{$_SERVER['HTTP_HOST']}]\n", 3, '/home/MY_USERNAME/webapps/MY_WEB_APP_NAME/test.log');

The log file has the correct permissions. I have tried 777.

asked 10 Oct '14, 15:43

TTransmit
315
accept rate: 0%

edited 10 Oct '14, 15:44


Have you enabled log_errors in your php.ini file? If not, try adding:

log_errors = 1

in php.ini. More information on configuring PHP is available in our documentation.

permanent link

answered 11 Oct '14, 01:18

ryans ♦♦
5.0k93360
accept rate: 43%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×28

question asked: 10 Oct '14, 15:43

question was seen: 2,129 times

last updated: 11 Oct '14, 01:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM