This documentation file describes how to install the One.Platform, on a running LAMP environment.
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.
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
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 named install.mysql, located in the folder setup, using this command :
$ mysql -u root -h localhost -p < /opt/one-platform/setup/install.mysql
Download the tarball at http://framework.zend.com/ and uncompress the libraries files into the folder /opt/one-platform/externals/libraries/.
Connect to http://your.domain.tld/ and enjoy.