Installing Timetrex

Ask your questions regarding TimeTrex installation here.
Post Reply
wiliianbumba
Posts: 4
Joined: Thu Dec 15, 2016 4:40 am

Installing Timetrex

Post by wiliianbumba » Fri Jan 06, 2017 9:13 am

I am run timetrex in: PHP 5.5.9-1ubuntu4.20, And MySql-5.5.53.
I copied the source code in my company server. and I want change. because we need adapt to your needs.
And I did restore of database from a backup.
I got this Error:
Btempus was unable to connect to the database, please make sure that the database service of your local Btempus server has started and is running. If you are not sure, try restarting the server.



I checked also the apache log, and It's:
127.0.0.1 - - [03/Jan/2017:10:11:46 +0100] "GET / HTTP/1.1" 200 3595 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:11:46 +0100] "GET /icons/ubuntu-logo.png HTTP/1.1" 304 180 "http://localhost/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:11:47 +0100] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:11:47 +0100] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:25 +0100] "GET / HTTP/1.1" 200 427 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:28 +0100] "GET /interface/ HTTP/1.1" 302 403 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/DownForMaintenance.php?exception=DBError HTTP/1.1" 200 1835 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/global.css.php HTTP/1.1" 200 3716 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images//timetrex_logo_wbg_small2.jpg HTTP/1.1" 404 535 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images//facebook_button.jpg HTTP/1.1" 200 27129 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images//twitter_button.jpg HTTP/1.1" 200 3988 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images/spacer.gif HTTP/1.1" 200 326 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface//send_file.php?object_type=copyright HTTP/1.1" 302 403 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images/table_top.gif HTTP/1.1" 200 419 "http://localhost/interface/global.css.php" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/images/table_bottom.gif HTTP/1.1" 200 420 "http://localhost/interface/global.css.php" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:13:29 +0100] "GET /interface/DownForMaintenance.php?exception=DBError HTTP/1.1" 200 1835 "http://localhost/interface/DownForMaint ... on=DBError" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"
127.0.0.1 - - [03/Jan/2017:10:20:15 +0100] "GET /timetrex/interface/ HTTP/1.1" 302 417 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Re: Installing Timetrex

Post by shaunw » Fri Jan 06, 2017 12:13 pm

Please see this FAQ:
http://forums.timetrex.com/viewtopic.php?f=6&t=89

You need to enable logging in TimeTrex then that log file should tell you why it can't connect your database. Its most likely an incorrect hostname, username or password though.

Post Reply