Difference between revisions of "PhreeBooks"

From SME Server
Jump to navigationJump to search
m (version 1.0 ... you know... lot´s os small bugs to fix yet.)
m (update source for project and note changes)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== PhreeBooks Accounting ==
+
= PhreeBooks Accounting =
 
Author: Charles2008<br>
 
Author: Charles2008<br>
Source: http://forums.contribs.org/index.php/topic,50284.0/topicseen.html <br>
+
Source 1: http://forums.contribs.org/index.php/topic,50284.0/topicseen.html <br>
 +
Source 2: http://www.phreebooks.com/documentation/how-tos/sme-server-phreebooks-install-howto/ <br>
  
 
{{Warning box| Before you use PhreeBooks Accounting in a business environment you must satisfy yourself that it is suitable and meets you organisation's needs and the needs of your business jurisdiction you must also ensure that your unique set-up and file permissions meet your requirements and are appropriate for your hosing environment. <br>
 
{{Warning box| Before you use PhreeBooks Accounting in a business environment you must satisfy yourself that it is suitable and meets you organisation's needs and the needs of your business jurisdiction you must also ensure that your unique set-up and file permissions meet your requirements and are appropriate for your hosing environment. <br>
 
<br>'''You use anything included here at your own risk'''.<br>
 
<br>'''You use anything included here at your own risk'''.<br>
 
}}
 
}}
=== Description ===
+
== Description ==
PhreeBooks Accounting    (previously called PhreedomERP) <br>
+
 
PhreeBooks is a web based (multi-user), OpenSource, double-entry ERP/accounting software.<br>
+
{{Note box| Many changes in the project, visit https://github.com/phreebooks/PhreeBooksERP for more information and sources
 +
 
 +
}}
 +
PhreeBooks Accounting    (previously called PhreedomERP) is a web based (multi-user), OpenSource, double-entry ERP/accounting software.<br>
 
Demo:  http://www.phreebooks.com/pb-demo  ...  (demo, demouser)<br>
 
Demo:  http://www.phreebooks.com/pb-demo  ...  (demo, demouser)<br>
 
<br>
 
<br>
Line 16: Line 20:
 
'''PhreeBooks aims to be a viable OpenSource alternative to Quickbooks and Peachtree/Sage.'''
 
'''PhreeBooks aims to be a viable OpenSource alternative to Quickbooks and Peachtree/Sage.'''
  
=== Set-up on SME8 ===
+
== Set-up on SME8 ==
 
   
 
   
 
{{Note box| PhreeBooks doesn't like 'hardened-PHP' (Suhosin)}}
 
{{Note box| PhreeBooks doesn't like 'hardened-PHP' (Suhosin)}}
  
  
==='''1. Create a Bookkeeping ibay '''===<br>
+
==Create a Bookkeeping ibay==
 
This will be the directory Phreebook will run from. You must create it from Server Manager<br>
 
This will be the directory Phreebook will run from. You must create it from Server Manager<br>
 
Information bay name - '''bookkeeping'''<br>
 
Information bay name - '''bookkeeping'''<br>
Line 31: Line 35:
 
<br>
 
<br>
  
==='''2. Create a PhreeBooks database'''===<br>
+
==Create a PhreeBooks database==
 
You can do it via  via command line or I use [[PHPMyAdmin]].
 
You can do it via  via command line or I use [[PHPMyAdmin]].
  
Line 48: Line 52:
 
Database for user - '''Grant all privileges''' on database '''phreebooks'''<br>
 
Database for user - '''Grant all privileges''' on database '''phreebooks'''<br>
 
'''Add User'''<br>
 
'''Add User'''<br>
 +
 +
 +
  
 
'''Missing instruction about how to do it on CLI ''' that´s for LATER!
 
'''Missing instruction about how to do it on CLI ''' that´s for LATER!
  
  
==='''3. Sort out OpenBaseDir restriction'''===<br>
+
 
 +
 
 +
==Sort out OpenBaseDir restriction==
 
This is needed to allow files to be uploaded by PhreeBooks<br>
 
This is needed to allow files to be uploaded by PhreeBooks<br>
 
You can read about this at [[PHP#Open_basedir_restriction]]
 
You can read about this at [[PHP#Open_basedir_restriction]]
Line 66: Line 75:
 
   signal-event ibay-modify bookkeeping
 
   signal-event ibay-modify bookkeeping
  
==='''5. Delete the index.html'''===
+
==Delete the index.html==
  
 
  rm /home/e-smith/files/ibays/bookkeeping/html/index.html
 
  rm /home/e-smith/files/ibays/bookkeeping/html/index.html
  
==='''Get PhreeBooks'''===
+
==Get PhreeBooks==
  
 
   cd /home/e-smith/files/ibays/bookkeeping/files/
 
   cd /home/e-smith/files/ibays/bookkeeping/files/
Line 89: Line 98:
 
One it´s the originally downloaded file (version can be newer) and other the directory with unzipped content.
 
One it´s the originally downloaded file (version can be newer) and other the directory with unzipped content.
  
==='''6. Put files on right directory and right permissions'''===
+
==Put files on right directory and right permissions==
  
 
   mv phreebooks/* ../html/
 
   mv phreebooks/* ../html/
Line 95: Line 104:
 
   chmod -R 0750    /home/e-smith/files/ibays/bookkeeping
 
   chmod -R 0750    /home/e-smith/files/ibays/bookkeeping
  
==='''7.. Install and configure PhreeBooks using browser'''===
+
==Install and configure PhreeBooks using browser==
  
 
Open a browser and type:
 
Open a browser and type:
Line 104: Line 113:
 
Now follow the on-screen instructions.
 
Now follow the on-screen instructions.
  
==='''8. Post-install adjustments'''===
+
==Post-install adjustments==
  
 
After install, the web server needs RO access to all directories except /my_files which needs write access also for writing company specific files. <br>
 
After install, the web server needs RO access to all directories except /my_files which needs write access also for writing company specific files. <br>

Latest revision as of 03:07, 5 July 2017

PhreeBooks Accounting

Author: Charles2008
Source 1: http://forums.contribs.org/index.php/topic,50284.0/topicseen.html
Source 2: http://www.phreebooks.com/documentation/how-tos/sme-server-phreebooks-install-howto/


Warning.png Warning:
Before you use PhreeBooks Accounting in a business environment you must satisfy yourself that it is suitable and meets you organisation's needs and the needs of your business jurisdiction you must also ensure that your unique set-up and file permissions meet your requirements and are appropriate for your hosing environment.


You use anything included here at your own risk.


Description

Important.png Note:
Many changes in the project, visit https://github.com/phreebooks/PhreeBooksERP for more information and sources


PhreeBooks Accounting (previously called PhreedomERP) is a web based (multi-user), OpenSource, double-entry ERP/accounting software.
Demo: http://www.phreebooks.com/pb-demo ... (demo, demouser)

Dave Premo is the project leader and has kept a very firm control of development.
In his own words - http://www.phreebooks.com/pb-forum/viewtopic.php?p=3178#p3178

PhreeBooks aims to be a viable OpenSource alternative to Quickbooks and Peachtree/Sage.

Set-up on SME8

Important.png Note:
PhreeBooks doesn't like 'hardened-PHP' (Suhosin)



Create a Bookkeeping ibay

This will be the directory Phreebook will run from. You must create it from Server Manager
Information bay name - bookkeeping
Description – Phreebooks Accounting
Group – Admin ... (set user Group)
User access via file sharing or user ftp – Write = group, Read = group
Public access via web or anonymous ftp – Local network, no password required
Execution of dynamic content (CGI, PHP, SSI) – Enabled

Create a PhreeBooks database

You can do it via via command line or I use PHPMyAdmin.


Important.png Note:
Please note that it is strongly advised to set MySQL to default to the InnoDB format using MySQL#Enable_InnoDB_engine

and not MyISAM, as apparently InnoDB is 'more robust'.
BTW: PhpMyAdmin seems to be set out-of-the-box to default to MyISAM.

This InnoDB / MyISAM issue won't affect getting PhreeBooks going now, however, may cause some data integrity uncertainty down the road. Best to get it right now.


In PHPMyAdmin:
Create database - phreebooks
Collation – utf8_general_ci
Create user: select 'phreebooks' database from list on LHS > Privileges > Add User
Choose a unique User Name and Password and (make sure that you have made a note of these!
host - localhost
Database for user - Grant all privileges on database phreebooks
Add User



Missing instruction about how to do it on CLI that´s for LATER!



Sort out OpenBaseDir restriction

This is needed to allow files to be uploaded by PhreeBooks
You can read about this at PHP#Open_basedir_restriction


Remotely get to console of SME8 server using ssh (secure shell)
Run 'sudo su -' on a Ubuntu PC use Putty on Windows PCs.

 ssh root@<server ip address> -L443:localhost:443	

Then run this:

 db accounts setprop bookkeeping PHPBaseDir /home/e-smith/files/ibays/bookkeeping/:/tmp/
 signal-event ibay-modify bookkeeping

Delete the index.html

rm /home/e-smith/files/ibays/bookkeeping/html/index.html

Get PhreeBooks

 cd /home/e-smith/files/ibays/bookkeeping/files/
 wget http://sourceforge.net/projects/phreebooks/files/latest/download?source=directory

that will download latest version from PhreeBook site, now unzip it using:

 unzip <filename> 

for today that would be:

 unzip PhreeBooksR36RC2.zip

there should be 2 entries similar to this:

 PhreeBooksR36RC2
 PhreeBooksR36RC2.zip

One it´s the originally downloaded file (version can be newer) and other the directory with unzipped content.

Put files on right directory and right permissions

 mv phreebooks/* ../html/
 chown -R www:www /home/e-smith/files/ibays/bookkeeping
 chmod -R 0750    /home/e-smith/files/ibays/bookkeeping

Install and configure PhreeBooks using browser

Open a browser and type:

 https://<server ip address>/bookkeeping


Important.png Note:
Please be patient, this can take 30 seconds or so (depending on processor speed etc )


Now follow the on-screen instructions.

Post-install adjustments

After install, the web server needs RO access to all directories except /my_files which needs write access also for writing company specific files.
Once you have the normal PhreeBooks desktop view (with dropdown menus across the top of the screen) then rename or delete the Install directory and make Includes/configure.php read only.

  mv /home/e-smith/files/ibays/bookkeeping/html/install  /home/e-smith/files/ibays/bookkeeping/html/install.old
  

or

 rm -rf /home/e-smith/files/ibays/bookkeeping/html/install

And configure rigth file permissions:

chmod -R 0551 /home/e-smith/files/ibays/bookkeeping
chmod -R 0750 /home/e-smith/files/ibays/bookkeeping/html/my_files
chmod  0400   /home/e-smith/files/ibays/bookkeeping/html/includes/configure.php 


Important.png Note:
I am investigating whether the 0551 file-permission above can be lowered to 0550 IF the user can pre-establish membership of a 'Group', i.e. by password protecting the ibay.


I hope it works now. :)