Logfile directory not created on fresh install
Closed this issue · 2 comments
Hello,
I created a fresh install of statusWolf in /opt/statuswolf and was presented with the following error:
$ php index.php
PHP Notice: Undefined index: HTTP_HOST in /opt/statuswolf/app/static/constants/Constants.php on line 84
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Invalid JSON format in config /opt/statuswolf/app/../conf/sw_datasource.json: JSON syntax error' in /opt/statuswolf/src/StatusWolf/Config/JsonConfigReader.php:21
Stack trace:
#0 /opt/statuswolf/src/StatusWolf/Config/ConfigReaderService.php(65): StatusWolf\Config\JsonConfigReader->read('/opt/statuswolf...')
#1 /opt/statuswolf/app/sw.php(21): StatusWolf\Config\ConfigReaderService->read_config_file(Object(Silex\Application), '/opt/statuswolf...')
#2 /opt/statuswolf/app/index.php(19): require_once('/opt/statuswolf...')
#3 {main}
thrown in /opt/statuswolf/src/StatusWolf/Config/JsonConfigReader.php on line 21
The .json was verified as OK by jsonlint.com
Apparently. 'mkdir /opt/statuswolf/app/log/' solved the issue.
(It can probably auto-create the logfile, but not the directory it's in)
Thanks for catching this - I've updated the setup script to include making this directory, and I've updated the install doc in the wiki as well.
No problem!
On Tue, Aug 12, 2014 at 7:24 PM, Mark Troyer notifications@github.com
wrote:
—
Reply to this email directly or view it on GitHub
#58 (comment).
He attacked everything in life with a mix of extraordinary genius and naive
incompetence, and it was often difficult to tell which was which.
- Douglas Adams