Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Some questions after installation
eppoclappo
Newbie
Posts: 1
Post Some questions after installation
on: December 8, 2014, 01:00

Hi!

First question is about security. I was able to install ftt2 thanks to the command CHMOD - R 777 ftt2. So the whole folder tree got accessible for everyone to read and write now. Does that also give smart asses easy (or easier) access to my settings and MySQL databases? I also have chosen for the 'Directly' update methode of the script now that all files and folders aren set to chmod 777. Do I need to make some files harder to access to ake ftt2 more secure? If yes, which ones and what chmod settings should I use?

Second. When I start up ftt2 and login, I get this error message:

A PHP Error was encountered

Severity: Warning

Message: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/3.0/no DST' instead

Filename: libraries/Session.php

Line Number: 616

I have located the line in the script that gives the error. It now says:

$time = mktime(gmdate("H", $now), gmdate("i", $now), gmdate("s", $now), gmdate("m", $now), gmdate("d", $now), gmdate("Y", $now));

but since I am not a php coder, I wonder what I have to put instead so that this error won't appear again.

Steven

admin
Administrator
Posts: 130
Post Re: Some questions after installation
on: December 8, 2014, 08:38

1.

You can if you choose not "Direct" update method. Or just chown all files to the user under which apache runs. And it will be more secure if all your sites will run on different apache user. That can be done with apache mpm-itk module or running several apache on different ports with nginx frontend.

2.

You need to edit php.ini file and set default timezone.
Like this:
date.timezone = Europe/Moscow

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.33.3 ; Page loaded in: 0.014 seconds.