Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 2 KB

INSTALL.textile

File metadata and controls

72 lines (45 loc) · 2 KB

How to install One.Platform

This documentation file describes how to install the One.Platform, on a running LAMP environment.

Download the sources

First of all, you can download the sources by using git :
$ cd /opt/
$ git clone git://github.com/gplanchat/one.platform.git one-platform
$ cd one-platform

Or, if the git command is not available on your system, use the taball located at https://github.com/gplanchat/one.platform/tarball/master and extract it in /opt/one-platform.

Create your bootstraps

Copy the public directory into Apache’s DocumentRoot directory and rename the bootstrap files :

$ cp -R /opt/one-platform/public/* /var/www/
$ mv /var/www/index.php.sample /var/www/index.php
$ mv /var/www/admin/index.php.sample /var/www/admin/index.php

Configure rewrite rules

Create a file named .htaccess in your directory /var/www :

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L,NC]

RewriteRule . index.php [L,NC]

SetEnv ROOT_PATH /opt/one-platform
SetEnv APPLICATION_ENV production

Then create a second .htaccess file in you directory /var/www/admin :

RewriteEngine On

RewriteBase /admin/

RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L,NC]

RewriteRule . index.php [L,NC]

SetEnv ROOT_PATH /opt/one-platform
SetEnv APPLICATION_ENV production

Run the SQL script

Run the SQL script named install.mysql, located in the folder setup, using this command :

$ mysql -u root -h localhost -p < /opt/one-platform/setup/install.mysql

Install the Zend Framework

Download the tarball at http://framework.zend.com/ and uncompress the libraries files into the folder /opt/one-platform/externals/libraries/.

Run One.Platform

Connect to http://your.domain.tld/ and enjoy.