Installing Ofuz from the source code

The most recent version of ofuz is hosted on github.com/philfree/ofuz

Download the source code

Source code his hosted on git the simplest is to install get and clone the repository.

  git clone git@github.com:philfree/ofuz.git

Setup the third parties library

  cd /var/www/
  svn co http://radria.svn.sourceforge.net/svnroot/radria/RadriaCore RadriaCore
  wget http://dev.ofuz.net/ofuz_libs.tar.gz
  tar -zxvf ofuz_libs.tar.gz
  rm ofuz_libs.tar.gz
  ln -s /var/www/Zend/ /var/www/ofuz/Zend
  ln -s /var/www/dojo /var/www/ofuz/dojo
  ln -s /var/www/geshi /var/www/ofuz/geshi
  ln -s /var/www/facebook_client /var/www/ofuz/facebook_client
  

Database Setup

Create a new database ofuzdev and a new users ofuzdev.

  mysql -u root -p
  create database ofuzdev;
  grant all privileges on ofuzdev.* to 'ofuzdev'@localhost identified by 'd3v5';
  flush privileges

load the database dump

  mysql -u ofuzdev -p ofuzdev < ofuz/db/ofuz.sql

Suggested apache conf

 
<VirtualHost *:80>
  DocumentRoot /var/www/ofuz
  ServerName ofuz.localhost
  <Directory "/var/www/ofuz">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
 
    RewriteEngine on
    RewriteBase   /
    RewriteRule ^Contact/([0-9].*) /contact.php?id=$1
    RewriteRule ^Company/([0-9].*) /company.php?id=$1
    RewriteRule ^Project/([0-9].*) /project.php?idproject=$1
    RewriteRule ^Task/([0-9].*) /task.php?idprojecttask=$1
    RewriteRule ^cp/([0-9].*) /contact_portal.php?pc=$1
    RewriteRule ^unsub/([0-9].+)/([0-9].*) /unsubscribe_email.php?idc=$1&idu=$2
    RewriteRule ^arunsub/([0-9].+)/([0-9].+)/([0-9].*) /unsubscribe_auto_responder.php?idc=$1&idu=$2&idt=$3 [L]
    RewriteRule ^form/([0-9].*) /web_form.php?fid=$1
    RewriteRule ^inv/(.*)/(.*)$ /invoice_view.php?idinv=$1&idcon=$2
    RewriteRule ^pay/(.*)/(.*)$ /invoice_py_redirect.php?idinv=$1&idcon=$2
    RewriteRule ^Invoice/(.*)$ /invoice.php?idinvoice=$1
    RewriteRule ^PublicProject/([0-9].*) /public_project.php?idproject=$1
    RewriteRule ^PublicTask/([0-9].*) /public_task.php?idprojecttask=$1
    RewriteRule ^profile/(.*)$ /public_profile.php?u=$1 [L]
    RewriteRule ^Tab/(.*)/(.*)/([0-9].*)$ /tab_display.php?plugin=$1&content=$2&item_value=$3
    RewriteRule ^Tab/(.*)/(.*)$ /tab_display.php?plugin=$1&content=$2 [L]
 
    RewriteRule ^iCalfeed/(.*).ics$ /plugin/iCalfeed/ical.php?apikey=$1 [L]
    RewriteRule ^PlugIn/(.*)/(.*)/([0-9].*)$ /tab_display.php?plugin=$1&content=$2&item_value=$3 [L]
    RewriteRule ^PlugIn/(.*)/(.*)/([a-z|0-9].*)$ /tab_display.php?plugin=$1&content=$2&$3 [L]
 
    RewriteRule ^PlugIn/(.*)/(.*)$ /tab_display.php?plugin=$1&content=$2 [L]
    RewriteRule ^Setting/(.*)/(.*)$ /tab_setting_display.php?plugin=$1&setting=$2 [L]
 
</Directory>
 
  CustomLog "/var/log/apache2/ofuz-access_log" combined
</VirtualHost>

In /etc/hosts add:

127.0.0.1 ofuz.localhost

Sometime its 127.0.1.1

Setup the log files

  cd /var/www/ofuz/
  touch radria_run.log
  chmod a+rw radria_run.log
  touch radria_errors.log
  chmod a+rw radria_errors.log
  

Extra folders and file permissions

  cd /var/www/ofuz/
  mkdir dbimage
  chmod a+rw dbimage
  

First login

http://ofuz.localhost

Default password is username: admin password: sqlfusion

 
install_from_source.txt · Last modified: 2011/12/28 15:32 by philippe
 
Copyright © SQLFusion LLC all rights reserved