Skip to content

vss-devel/openzim

 
 

Repository files navigation

============== 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 

https://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)

About

open source ZIM management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 81.4%
  • XSLT 11.0%
  • JavaScript 5.8%
  • CSS 1.3%
  • Perl 0.3%
  • ApacheConf 0.1%
  • Shell 0.1%