-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
129 lines (83 loc) · 3.05 KB
/
README
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
============== Fedora Installation (openZim 2.0) ==================
0. Alles als root machen:
sudo -i
1. Software Abhängigkeiten installieren
yum install httpd mysql mysql-server php php-mysql php-pdo php-mbstring php-gd git-core
2. PHP Zeityone setzen
- In /etc/php.ini
- Semikolon vor dat.timezone entfernen und Zeitzone eintragen
- z.B.:
date.timezone=Europe/Berlin
2. Mysql konfigurieren
- systemctl enable mysqld.service
- systemctl start mysqld.service
- mysqladmin -u root password 'test'
3. openZIM Repository clonen / openZim installieren
- Beispielhaftes Installationsverzeichniss: /var/www/openzim
- cd /var/www
- git clone https://github.com/maggsta/openzim.git
- cd openzim
- ./install.sh
4. Apache konfigurieren
- In /etc/httpd/conf/httpd.conf:
DocumentRoot "/var/www/openzim"
AllowOverride All
- systemctl enable httpd.service
5. Selinux deaktivieren
- In /etc/selinux/config:
SELINUX=disabled
5. reboot
6. openZim öffnen mit Firefox: localhost
============Ende Fedora installation==============
=====Ubuntu Installation (nicht vollständig) =====
Ubuntu:
sudo aptitude install php5-gd xsltproc
Apache2:
php.ini output_buffering = On
==== MacOS MAMP installation (nicht getestet seid 1.0) ====
* httpd.conf
NameVirtualHost *:8080
Listen *:PORT
<VirtualHost *:PORT>
DocumentRoot "/PATH/openzim/web"
DirectoryIndex index.php
<Directory "/PATH/openzim/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /PATH/openzim/lib/vendor/symfony/data/web/sf
<Directory "/PATH/openzim/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
* disabel MYSQL
comment /Applications/MAMP/bin/startMysql.sh
comment /Applications/MAMP/bin/start.sh (mysql line)
* Cache
enable APC in MAMP GUI
* Symlinks etc.
- Open the php.ini text file in a text editor. It should live here:
/Applications/MAMP/conf/php5/php.ini
- Change the memory limit to 32M by editing the memory_limit part of the file to the following:
memory_limit = 32M ;
Save the file and close your text editor. Now fire up your terminal…
- Now we are going to move leopard’s php to a safe place…
sudo mv /usr/bin/php /usr/bin/php-old
- Link the MAMP php into where leopard’s php used to be…
sudo ln -s /Applications/MAMP/bin/php5/bin/php /usr/bin/php
- If you have PEAR already installed, we are going to move it as well. If you don’t have PEAR, this will obviously error out which you can ignore.
sudo mv /usr/bin/pear /usr/bin/pear-old
- Link MAMP’s PEAR into bin…
sudo ln -s /Applications/MAMP/bin/php5/bin/pear /usr/bin/pear
- The following two commands will use PEAR to download and install symfony.
pear channel-discover pear.symfony-project.com
pear install symfony/symfony
- Now place link symfony into bin…
sudo ln -s /Applications/MAMP/bin/php5/bin/symfony /usr/bin/symfony
* GIT on MAC OS
1) Installer
http://code.google.com/p/git-osx-installer/downloads/list
2) MAC Ports
sudo port selfupdate
sudo port install git-core (installiert die aktuellste Git-Version)