Unable to get install screen on browser for manual install

Ask your questions regarding TimeTrex installation here.
Post Reply
thinktank32
Posts: 10
Joined: Wed Apr 08, 2015 11:20 am

Unable to get install screen on browser for manual install

Post by thinktank32 »

Hi,

I downloaded the zip file which is used for the manual install of timetrex.

Here are my server specs:

* Virtual Machine - ubuntu 14.04.2 linux server
* Mysql - I have the mysql server and it is running
* Version of timetrex: community edition

I made the necessary changes to the timetrex.ini.php file but when I point the browser to http://<my server host name>/timetrex/interface/install/install.php I get the page telling me that it is is initializing and I see the blue progress bar zip through but nothing happens after the progress bar goes all the way accross. It just says "initializing" and nothing happens. Here is the url that I see on that page: http://<my server host name>/timetrex/interface/html5/index.php?installer=1&disable_db=1&external_installer=0#!m=Install&a=license&external_installer=0

So I renamed the dowload folder to "timetrex" and then uploaded that to the linux server on the virtual machine. so the the folder structure is like this: /var/www/html/timetrex/<all the files that was downloaded here>

I have included the file contents of timetrex.ini.php file here. what am I doing wrong? thanks for the help in advance.

Contents of timetrex.ini.php file:

;<?php die('Access denied...');?>
;
;
; TimeTrex Configuration File
; *Linux* Example
;
;

;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<*BASE_URL*>
;DO NOT INCLUDE http://your.domain.com, just the directory AFTER your domain
base_url = /timetrex/interface

;
;log directory
;
;Linux
log = /var/log/timetrex

;
;Misc storage, for attachments/images
;
;Linux
storage = /var/timetrex/storage

;
;Full path and name to the PHP CLI Binary
;
;Linux
php_cli = /usr/bin/php

;
; Database connection settings. These can be set from the installer.
;
[database]
type = mysqld
;type = postgres8

host = localhost
database_name = timetrex
user = root
password = "<my password here>"


;
; Email delivery settings.
;
[mail]
;Least setup, deliver email through TimeTrex's email relay via SOAP (HTTP port 80)
;delivery_method = soap

;Deliver email through local sendmail command specified in php.ini
delivery_method = mail

;Deliver email through remote SMTP server with the following settings.
;delivery_method = smtp
;smtp_host=smtp.gmail.com
;smtp_port=587
;smtp_username=timetrex@gmail.com
;smtp_password=testpass123


;
; Cache settings
;
[cache]
enable = TRUE
;Linux
dir = /tmp/timetrex



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

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



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

; System Administrators Email address to send critical errors to if necessary. Set to FALSE to disable completely.
;system_admin_email = "sysadmin@mydomain.com"

default_interface = html5

;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
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Unable to get install screen on browser for manual insta

Post by shaunw »

If you try going to the following URL, do you see any errors?
http://<my server host name>/timetrex/interface/install/Requirements.php
thinktank32
Posts: 10
Joined: Wed Apr 08, 2015 11:20 am

Re: Unable to get install screen on browser for manual insta

Post by thinktank32 »

Hi Shaun,

After I point the browser to that url, this is what I see in the browser window (everything is OK except the cli requirements):

TimeTrex Version: OK (v8.0.5)
PHP Version: OK (v5.5.9-1ubuntu4.7)

PHP CLI Executable: OK
PHP CLI Requirements: Warning: PHP CLI requirements failed while executing
""/etc/php5/cli" "/var/www/html/timetrex/tools/unattended_upgrade.php" --config
"/var/www/html/timetrex/includes/../timetrex.ini.php" --requirements_only --web_installer"
Likely caused by having two PHP.INI files with different settings.

The cli directory is located in the /etc/php5/cli directory. Also, I have a php.ini file in the /etc/php5/cli directory as well as a php.ini file in the /etc/php5/apache2 directory. Any idea why it's failing?

Thanks.
thinktank32
Posts: 10
Joined: Wed Apr 08, 2015 11:20 am

Re: Unable to get install screen on browser for manual insta

Post by thinktank32 »

UPDATE:

I fixed the php_cli directory value to /usr/bin/php5 and now there are no error messages when I goto http://<my server host name>/timetrex/interface/install/Requirements.php but when I goto http://<my server host name>/timetrex/interface/install/install.php still nothing happens. It just says "initializing" and nothing happens. I looked at the console for the browser (google chrome) and it said the following:

ReferenceError: APIGlobal is not defined Global.js:2712
ReferenceError: APIGlobal is not defined Global.js:1227
ReferenceError: APIGlobal is not defined main.js:4

any ideas how to make the manual install work? thanks.

here is the timetrex.ini.php file contents:

;<?php die('Access denied...');?>
;
;
; TimeTrex Configuration File
; *Linux* Example
;
;

;
; System paths. NO TRAILING SLASHES!
;
[path]
;URL to TimeTrex web root directory. ie: http://your.domain.com/<*BASE_URL*>
;DO NOT INCLUDE http://your.domain.com, just the directory AFTER your domain
base_url = /timetrex/interface

;
;log directory
;
;Linux
log = /var/www/html/logs/timetrex

;
;Misc storage, for attachments/images
;
;Linux
storage = /var/www/html/timetrex32/storage

;
;Full path and name to the PHP CLI Binary
;
;Linux
php_cli = /usr/bin/php5



;
; Database connection settings. These can be set from the installer.
;
[database]
type = mysqld
;type = postgres8

host = localhost
database_name = timetrex
user = root
password = "<my password>"


;
; Email delivery settings.
;
[mail]
;Least setup, deliver email through TimeTrex's email relay via SOAP (HTTP port 80)
;delivery_method = soap

;Deliver email through local sendmail command specified in php.ini
delivery_method = mail

;Deliver email through remote SMTP server with the following settings.
;delivery_method = smtp
;smtp_host=smtp.gmail.com
;smtp_port=587
;smtp_username=timetrex@gmail.com
;smtp_password=testpass123


;
; Cache settings
;
[cache]
enable = TRUE
;Linux
dir = /var/www/html/timetrex32/cache



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

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



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

; System Administrators Email address to send critical errors to if necessary. Set to FALSE to disable completely.
;system_admin_email = "sysadmin@mydomain.com"

default_interface = html5

;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
thinktank32
Posts: 10
Joined: Wed Apr 08, 2015 11:20 am

Re: Unable to get install screen on browser for manual insta

Post by thinktank32 »

UPDATE:

I got it to work. I changed the database type "mysqld" to "mysql" and it works now. It is now giving me the install pages. Thanks for your help Shaun :)
Post Reply