Recent versions: ||| Galaxytool: v5.1 ||| Galaxytoolbar: v2.6.32 |||

Difference between revisions of "Installation"

From Galaxytool wiki
Jump to: navigation, search
(config.php)
m (Important for those hosted on a Linux Server)
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Note: Excellent Installation guide==
 
 
An installation guide by Cyberzero can be found on the [http://board.ogame.org/thread.php?postid=4677935#post4677935 OGame forums.]
 
 
 
== General ==
 
== General ==
  
After downloading the ZIP file, you need to extract it. After that you will have to modify the config.php and attributes.php (from the /secret/ directory) to suit your needs. You receive the required information for the database connection from your webhoster.
+
After [[Download|downloading]] the ZIP file, you need to extract it.
If the modification of your config.php is finished, you need to upload all files to your server. Start the install.php on your webserver by typing
+
After that you need to upload all files to your server.  
 
+
Now you should [[How to set writable permissions|set writable permissions]] to the '''config''' folder.
'''Note:''' Use Wordpad or a good text editing program and NOT Notepad to edit these files, otherwise things could get garbled.
+
Then, start the install.php on your webserver by typing
 
 
http://address.of.your.webspace/path/to/galaxytool/install.php
 
 
 
in your browser and have a look at the screen. You should see something equal to this picture:
 
 
 
[[Image:Installation.gif]]
 
 
 
If there are any fields which are not green, you have a problem and you cannot start the installation.
 
After the installation you should delete the install.php and the update.php.
 
 
 
$dbpassword = 'password';
 
$dbname = 'database';      SQL database
 
 
 
$dbtablename = 'galaxy'; 
 
$utablename = 'user';
 
$playertable = 'players';
 
$allytable = 'alliances';
 
$noticetable = 'notices';
 
$reporttable = 'reports';
 
$iptablename = 'ips';
 
$shouttable = 'shoutbox';
 
$allyhistory = 'allyhistory';
 
$playerhistory = 'playerhistory';
 
$dbhost = 'localhost'
 
$cfg['PmaAbsoluteUri']
 
 
 
== attributes.php ==
 
 
 
Note you can find the file in the folder: /secret/
 
 
 
Now if you have edited "config.php" it is time to edit some stuff to give galaxy tool another look. Now in the same folder ("secret") there is a file called "attributes.php". Open in and we are going to change some things:
 
 
 
$owner = 'yourname';
 
 
 
Write your alliance or OGame nickname in the quotation marks. It is shown at the login screen to show which tool you are using if you play in different univereses.
 
 
 
$maxshouts = 15;
 
 
 
This is the number of shouts shown in the shoutbox on the overview page. All shouts which are not shown are deleted!
 
 
 
$email_to = 'admin@yourdomain.com';
 
 
 
Enter your admin Email address where you want to receive emails about newly registered users.
 
 
 
$email_from = 'email@provider.xxx';
 
 
 
Here you can add an email address which should be shown in the FROM field of registration emails. Put the address between quotation marks.
 
If someone registers himself at the galaxytool, an email is sent to this address showing that someone registered and needs to be activated.
 
If you want to disable registering, you have to delete the register.php file.
 
 
 
If your webserver does not support mail functionality you can also use an external email provider by using these variables:
 
$usePHPMailer = false; // use phpmailer ? (true or false)
 
$phpmailerHost = "smtp.prov.dom"; // smtp hostname
 
$phpmailerUser = "user@prov.dom"; // smtp username
 
$phpmailerPass = "password"; // smtp password
 
 
 
$default_language = 'english';
 
  
Write the default language for the tool in the quotation marks.
+
http://example.com/path/to/galaxytool/install.php (this address is just a template!)
You can choose between: german, english, spanish, dutch, balkan, french, portugues, turkish, danish, italian,polish, danish, brazil, russian, swedish or greek.
 
  
$global_universe = 15;
+
in your browser and have a look at the screen.
  
This is your Universe number. Do not leave out this variable! It will be used to check for the correct universe if you enter data via [[Toolbar|Galaxytool Firefox plugin]].
+
Now follow the instructions on the screen.  
 +
They will give you detailed information about what to enter or they'll tell you, if something did not work as expected.<br>'''Everything is created automatically during installation - no need to edit any file.'''
  
 
== After installation ==
 
== After installation ==
  
After the installation you have to delete the install.php and the update.php!
+
After the installation you have to delete the install.php and the update.php! Then you can logon with the account data created during installation.
 
 
The first login:
 
Loginname: admin
 
Password: galatool
 
 
 
You should change the password for the admin account after you log in the first time! Do this in the [[User_options|User Options]], not in [[User_management|User Management]]
 
  
=== Important For those hosted on a Linux Server ===
+
=== Important for those hosted on a Linux Server ===
For those who have been getting session time out messages as soon as you logged in the problem is in your php.ini file. Log into your hosting providers control panel and find the php controls edit the php.ini when inside it search for session.auto_start and change its attribute of 0 to 1 then save it it. now you should be able to log into gtool as you normally would.
+
'''Please note: the following setting can also be harmful for the Galaxytool, so you cannot logon at all, but see only a white page or a Fatal error when you try to do so. This is therefore no general solution.'''<br>
 +
For those who have been getting session time out messages as soon as you logged in: the problem is in your php.ini file. Log into your hosting providers control panel and find the php controls. Edit the php.ini: search for session.auto_start and change its attribute of 0 to 1, then save it. Now you should be able to log into gtool as you normally would.
  
 
[[de:Installation]]
 
[[de:Installation]]
 
[[es:Instalación]]
 
[[es:Instalación]]

Latest revision as of 15:06, 16 March 2013

General

After downloading the ZIP file, you need to extract it. After that you need to upload all files to your server. Now you should set writable permissions to the config folder. Then, start the install.php on your webserver by typing

http://example.com/path/to/galaxytool/install.php (this address is just a template!)

in your browser and have a look at the screen.

Now follow the instructions on the screen. They will give you detailed information about what to enter or they'll tell you, if something did not work as expected.
Everything is created automatically during installation - no need to edit any file.

After installation

After the installation you have to delete the install.php and the update.php! Then you can logon with the account data created during installation.

Important for those hosted on a Linux Server

Please note: the following setting can also be harmful for the Galaxytool, so you cannot logon at all, but see only a white page or a Fatal error when you try to do so. This is therefore no general solution.
For those who have been getting session time out messages as soon as you logged in: the problem is in your php.ini file. Log into your hosting providers control panel and find the php controls. Edit the php.ini: search for session.auto_start and change its attribute of 0 to 1, then save it. Now you should be able to log into gtool as you normally would.