Clone wiki

Rarangi / installation

Installation

First installation

  • retrieve the files of Rarangi with Mercurial
  • create a mysql database (with phpmyadmin, or with mysql CLI)
  • set the "write" rights for the apache user (www-data on debian ubuntu for example), on
    • rarangi/temp/rarangi
    • rarangi/app/var/log
  • configure the document root in apache on app/www (prefered)

Then you have two choice to run the installer :

Install from the browser

Install from the command line

  • into app/var/config, rename dbprofils.ini.php.dist to dbprofils.ini.php, and modify it to indicate parameters for the access to the database
  • open a console (cmd.exe under windows)
  • go into the app/install directory
  • launch : php.exe installer.php

Importing some projects

After launching the installer, Rarangi is ready to parse some code source and to browse datas.

You must then now import your PHP project. See project-import.

If you want details on how to setup the installation of Rarangi, see the documentation of Jelix, the framework on which Rarangi is based.

For contributors

If you want to run unittests. Install the application stored in the tests/ directory, as the same way for rarangi.

  • create a second database
  • into tests/app/var/config, rename dbprofils.ini.php.dist to dbprofils.ini.php, and modify it to indicate parameters for the access to this second database
  • launch tests/install/installer.php from the command line (with php.exe)
  • configure a virtual host on tests/www/
  • You can then run index.php in your browser

Updating Rarangi

  • retrieve the updated files of Rarangi with rarangi: cd rarangi && hg pull -u
  • launch app/install/installer.php from the command line (with php.exe)
  • that's it.
  • If it is needed, perhaps you'll have to reimport all your projects. See project-import.

Updated