Page 1 of 1

Problems with Installation

Posted: Wed Sep 20, 2006 6:40 am
by JDooley
Ok, I am pretty new to this; only comparable thing I have set up is a wiki on the intranet.

After working through a few issues, I am just getting this error:

Writable Cache Directory: Warning: Not writable (/tmp/timetrex)
Writable Storage Directory: Warning: Not writable (/var/timetrex/storage)
Writable Log Directory: Warning: Not writable (/var/log/timetrex)

Probably just a configuration thing I am missing. I have created C:\tmp\timetrex, htdocs\tmp\timetrex, etc. but to no avail.

Any assistance is appreciated. I want my boss to evaluate the product, possibly using your hosting due to VPN issues, but I want to demonstrate it first.

Re: Problems with Installation

Posted: Wed Sep 20, 2006 10:14 am
by mikeb
JDooley wrote:Ok, I am pretty new to this; only comparable thing I have set up is a wiki on the intranet.

After working through a few issues, I am just getting this error:

Writable Cache Directory: Warning: Not writable (/tmp/timetrex)
Writable Storage Directory: Warning: Not writable (/var/timetrex/storage)
Writable Log Directory: Warning: Not writable (/var/log/timetrex)

Probably just a configuration thing I am missing. I have created C:\tmp\timetrex, htdocs\tmp\timetrex, etc. but to no avail.

Any assistance is appreciated. I want my boss to evaluate the product, possibly using your hosting due to VPN issues, but I want to demonstrate it first.

You need to find out what user Apache runs as, (usually apache, or www-data) and change the ownership of those directories to that user. ie:

mkdir -p /tmp/timetrex
chown apache.apache /tmp/timetrex

That should create the directory if it doesn't already exist, and make sure the "apache" user has permissions to write to it.

I recall you had an issue with the requirements page coming up blank. What was the error message in your php error log, and what did you you do to fix that? I would like to correct this problem for future versions if possible.

Thanks.

XAMP

Posted: Thu Sep 21, 2006 7:57 am
by JDooley
Mike,

Instead of using WAMP, I switched to XAMPP. The beta (1.2) wasn't giving me the requirements page, but 1.1 was.

I am having troubles running the console commands you specified. I am browsing to the apache directory and using apache mkdir –p /tmp/timetrex. It doesn’t like that usage. I am probably not getting to the real apache console. Whats the trick?

Thanks,

JDooley

Re: XAMP

Posted: Thu Sep 21, 2006 8:15 am
by mikeb
JDooley wrote:Mike,

Instead of using WAMP, I switched to XAMPP. The beta (1.2) wasn't giving me the requirements page, but 1.1 was.

I am having troubles running the console commands you specified. I am browsing to the apache directory and using apache mkdir –p /tmp/timetrex. It doesn’t like that usage. I am probably not getting to the real apache console. Whats the trick?

Thanks,

JDooley
Are you running windows? I assumed you were running Linux due to the path names. If you are running windows, you need to make sure you use windows path names, ie:

Instead of:
/tmp/timetrex
/var/timetrex/storage
/var/log/timetrex

Use:
c:\temp\timetrex
c:\timetrex\storage
c:\timetrex\log

Then you just need to make sure those directories exist and are writable in Windows File Explorer. That should do it for you.

Posted: Thu Sep 21, 2006 8:27 am
by JDooley
Mike,

Setting up those directories was one the first things I tried. They all exist. Is the system thinking I am using linux?

Is this maybe something with the config file?

;
;
; TimeTrex Configuration File
;
;

;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<BASE_URL>
base_url = /timetrex/interface

;
;log directory
;
;Linux
log = /var/log/timetrex
;Windows
;log = c:\timetrex\log

;
;Misc storage, for attachments/images
;
;Linux
storage = /var/timetrex/storage
;Windows
;storage = c:\timetrex\storage

;
;Full path and name to the PHP CLI Binary
;
;Linux
php_cli = /usr/bin/php
;Windows
;php_cli = C:\Program Files\xampp\php\php.exe



;
; Database connection settings. These can be set from the installer.
;
[database]
type = postgres8
host = localhost
database_name = timetrex
user = timetrex
password = ENTER_PASSWORD_HERE



;
; Cache settings
;
[cache]
enable = TRUE
;Linux
dir = /tmp/timetrex
;Windows
;dir = c:\temp\timetrex



[debug]
;Set to false if you're debugging
production = TRUE

enable = FALSE
enable_display = FALSE
buffer_output = TRUE
enable_log = TRUE
verbosity = 10



[other]
; Force all clients to use SSL.
force_ssl = FALSE
installer_enabled = TRUE

;WARNING: DO NOT CHANGE THIS AFTER YOU HAVE INSTALLED TIMETREX.
;If you do it will cause all your passwords to become invalid,
;and you may lose access to some encrypted data.
salt = 0


































;<? if (; //Cause parse error to hide from prying eyes, just in case. DO NOT REMOVE?>

Posted: Thu Sep 21, 2006 8:32 am
by mikeb
Yes, you have the Windows directories commented out in the timetrex.ini.php file. I wouldn't worry about that file though, just enter the correct paths in the installer and TimeTrex will write those to the timetrex.ini.php file on its own.

Any path that starts with: "/" is a Linux path. You need to ensure all yours paths start with:

c:\