Problems with Installation

Ask your questions regarding TimeTrex installation here.
Locked
JDooley
Posts: 3
Joined: Wed Sep 20, 2006 6:37 am

Problems with Installation

Post 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.
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Re: Problems with Installation

Post 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.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
JDooley
Posts: 3
Joined: Wed Sep 20, 2006 6:37 am

XAMP

Post 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
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Re: XAMP

Post 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.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
JDooley
Posts: 3
Joined: Wed Sep 20, 2006 6:37 am

Post 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?>
mikeb
Posts: 709
Joined: Thu Jul 27, 2006 11:58 am

Post 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:\
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!
Locked