-
Notifications
You must be signed in to change notification settings - Fork 166
/
INSTALL
63 lines (42 loc) · 1.34 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
1. create the database as instructed in the file DATABASE:
CREATE DATABASE intersango;
USE intersango;
...
2. create /var/db.intersango.inc with the lines:
--------------------------
<?php
mysql_connect('localhost', 'login', 'pass') or die(mysql_error());
mysql_select_db('database_name') or die(mysql_error());
function connect_bitcoin()
{
disable_errors_if_not_me();
$bitcoin = new jsonRPCClient('http://login:[email protected]:8332/');
enable_errors();
return $bitcoin;
}
?>
---------------------------
3.
cd /var
sudo rm -fr www
ln -s /path/to/this/dir/htdocs www
4. open /var/www/config.php and edit ABSPATH to point to this dir (/path/to/this/dir)
5. enable MySQL logging in /etc/mysql/my.cnf:
log = /var/log/mysql/mysql.log
6. import DATABASE into mysql
7. edit crontab -e, mark /var/tmp/error-reports.log as rw for users
translations:
------------
1. install poedit:
$ sudo apt-get install poedit
2. make folder for translation:
$ mkdir locale/de_DE/LC_MESSAGES/
3. generate locale:
$ sudo locale-gen de_DE
4. restart apache:
$ sudo /etc/init.d/apache2 restart
5. default locale can be set in htdocs/config.php:
// what locale to use for translations
define('LOCALE', 'en_CA');
or tested on a specific page by appending &locale=... to the URL:
http://whatever.com?page=statement&user=all&locale=de_DE