Time Tracker install in HOSTING ENVIRONMENTS

Discussion forum about Anuko Time Tracker
Nik
Posts: 447
Joined: Wed May 26, 2010 5:55 pm

Re: Time Tracker install in HOSTING ENVIRONMENTS

Post by Nik » Sun Jul 17, 2016 10:12 pm

peter wrote:You can save the content below in a file named environment_check.php and put it the installation directory...
Thanks for this code, I included environment checks in dbinstall.php file in version 1.9.25.3501.

joelga
Posts: 4
Joined: Wed Jul 13, 2016 5:36 pm

Re: Time Tracker install in HOSTING ENVIRONMENTS

Post by joelga » Thu Jul 28, 2016 3:40 pm

Hey peter,

Thanks so much for this code. I tested it out and got the second result. All is good, except: Error: connection to database failed. MDB2 Error: unknown error

I'm wondering if I have the DSN incorrect?... Any more advice on this?

joelga
Posts: 4
Joined: Wed Jul 13, 2016 5:36 pm

Re: Time Tracker install in HOSTING ENVIRONMENTS

Post by joelga » Thu Jul 28, 2016 3:50 pm

Oops... I figured it out...

Instead of using "localhost" in the config.php file, I was using the actual domain of my installation. I changed the value to "localhost" and bingo...it worked!

Thanks for your help on this!

wrc
Posts: 259
Joined: Tue May 25, 2010 8:30 pm

Re: Time Tracker install in HOSTING ENVIRONMENTS

Post by wrc » Tue Mar 13, 2018 2:02 pm

I had a situation with Hostmonster. Their web server will produce Error 500 if you just unpack the available Time Tracker download archive and try to access it.

It is a file permission issue (group write on files). They do not like 664 on files, and 775 on directories, apparently.

Make sure to downgrade permissions to 644 on files (especially the ones that are accessed directly in root and mobile directories). Make directories 755. This fixed the problem for me.

This is how they explain it:
Example of Server 500 Error

Bad permissions, Writable by group

A bad permissions error may look something like this:
[Sun Jun 05 12:03:22 2012] [error] [client 66.249.72.82] SoftException in Application.cpp:601: Directory "/home/exampleuser/public_html" is writeable by group

In this instance the folder had permissions for a folder set too high. To correct this, the permissions need to be changed from "777" to "755".

Directories and folders should be 755. Executable scripts within the cgi-bin folder must be 755. Images, media, and text files like HTML should be 644.

Files - 644
CGI Scripts - 755
Directories - 755

You can modify permissions with the File Manager, located in the "Files" category of the cPanel, an FTP client, or using the chmod command in SSH/Bash.

Nik
Posts: 447
Joined: Wed May 26, 2010 5:55 pm

Re: Time Tracker install in HOSTING ENVIRONMENTS

Post by Nik » Tue Mar 13, 2018 5:34 pm

wrc wrote:I had a situation with Hostmonster. Their web server will produce Error 500 if you just unpack the available Time Tracker download archive and try to access it.

It is a file permission issue (group write on files). They do not like 664 on files, and 775 on directories, apparently.
I have adjusted file (to 644) and directory (to 755) permissions in Time Tracker downloads, Hopefully, it is no longer an issue.

Post Reply