Changes

From SME Server
Jump to navigationJump to search
1,874 bytes removed ,  17:42, 18 October 2013
m
version 1.0 ... you know... lot´s os small bugs to fix yet.
Line 21: Line 21:       −
'''1. Create a Bookkeeping ibay '''<br>
+
==='''1. Create a Bookkeeping ibay '''===<br>
 
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 31:  
<br>
 
<br>
   −
'''2. Create a PhreeBooks database'''<br>
+
==='''2. Create a PhreeBooks database'''===<br>
 
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 49: Line 49:  
'''Add User'''<br>
 
'''Add User'''<br>
    +
'''Missing instruction about how to do it on CLI ''' that´s for LATER!
   −
'''3. Sort out OpenBaseDir restriction'''<br>
+
 
 +
==='''3. Sort out OpenBaseDir restriction'''===<br>
 
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 64: Line 66:  
   signal-event ibay-modify bookkeeping
 
   signal-event ibay-modify bookkeeping
   −
4. Create an upload directory in the Software ibay: (to receive your .zip file)
+
==='''5. Delete the index.html'''===
cd to the <software ibay>/files and
  −
Code: [Select]
  −
mkdir phreebooks
  −
 
     −
5. Delete the index.html file: from the bookkeeping ibay
+
rm /home/e-smith/files/ibays/bookkeeping/html/index.html
Code: [Select]
  −
cd /home/e-smith/files/ibays/bookkeeping/html; dir
  −
 
  −
…  there it is. Now delete it:
  −
Code: [Select]
  −
rm index.html
  −
Code: [Select]
  −
exit
      +
==='''Get PhreeBooks'''===
    +
  cd /home/e-smith/files/ibays/bookkeeping/files/
 +
  wget http://sourceforge.net/projects/phreebooks/files/latest/download?source=directory
   −
'''6. Upload the PhreeBooks .zip file<br>
+
that will download latest version from PhreeBook site, now unzip it using:
   −
I am sure that you could cd to the upload directory in 4. and wget the .zip file straight to the created upload directory. e.g.
+
  unzip <filename>
wget http://sourceforge.net/projects/phreebooks/files/latest/download?source=directory
     −
However, I use a Linux desktop and the following instructions are for this:
+
for today that would be:
Download .zip file from either of the two sources above. Secure copy .zip file to server:
  −
cd to Download directory on PC
  −
Code: [Select]
  −
scp <file to upload> root@hostname:<destination path e.g. /home/e-smith/files/ibays/<software ibay>/files/phreebooks>
  −
   
  −
(Qn. Is this the best way/secure?)
  −
…  replace <placeholders> with YOUR directory names.
      +
  unzip PhreeBooksR36RC2.zip
    +
there should be 2 entries similar to this:
 +
  PhreeBooksR36RC2
 +
  PhreeBooksR36RC2.zip
   −
7. Unzip the PhreeBooks .zip file:
+
One it´s the originally downloaded file (version can be newer) and other the directory with unzipped content.
ssh into LAN server as in 3. above.
  −
cd to upload directory, e.g.
  −
Code: [Select]
  −
cd /home/e-smith/files/ibays/<software ibay>/files/phreebooks
  −
unzip the uploaded file: (copy the file name exactly from server– right click, copy/paste)
  −
Code: [Select]
  −
unzip PhreeBooksR36RC2.zip
  −
  …  frenzy of unpacking
     −
See what's there:
+
==='''6. Put files on right directory and right permissions'''===
Code: [Select]
  −
dir
  −
there should be 2 entries;
  −
PhreeBooksR36RC2  PhreeBooksR36RC2.zip  …  (one directory and the original  .zip file).
  −
 
  −
Stay logged on to  ...
      +
  mv phreebooks/* ../html/
 +
  chown -R www:www /home/e-smith/files/ibays/bookkeeping
 +
  chmod -R 0750    /home/e-smith/files/ibays/bookkeeping
    +
==='''7.. Install and configure PhreeBooks using browser'''===
   −
8. Copy the PhreeBooks programme files over:  (to the bookkeeping ibay)
+
Open a browser and type:
cd into the  PhreeBooksR36RC2 directory, and copy the entire directory contents across using tar:
+
  http'''s'''://<server ip address>/bookkeeping
Code: [Select]
  −
tar cf - . |(cd /home/e-smith/files/ibays/bookkeeping/html; tar xvf -)
  −
 
  −
Stay logged on to  ...
  −
 
  −
 
  −
 
  −
9. Set file 'ownership' and  'permissions' for installation:
  −
File ownership:
  −
Code: [Select]
  −
chown -R www:www /home/e-smith/files/ibays/bookkeeping
  −
 
  −
File permissions: 
  −
During PhreeBooks install /my_files and /includes need to have write permissions for the web server.
  −
 
  −
Pre-install:
  −
ssh into LAN server and at the command line:
  −
Code: [Select]
  −
chmod -R 0750 /home/e-smith/files/ibays/bookkeeping
  −
Code: [Select]
  −
exit
  −
 
  −
 
     −
10. Install and configure PhreeBooks:
+
{{Note box| Please be patient, this can take 30 seconds or so (depending on processor speed etc )}}
Open a browser and type:
  −
https://<server ip address>/bookkeeping
  −
... be patient, this can take 30 seconds or so (depending on processor speed etc )
  −
follow the on-screen instructions.
      +
Now follow the on-screen instructions.
    +
==='''8. Post-install adjustments'''===
   −
11. Post-install adjust file permissions, delete install directory:
+
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 access to all directories for reading only, 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.  
+
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. <br>
   −
Post-install:
+
  mv /home/e-smith/files/ibays/bookkeeping/html/install  /home/e-smith/files/ibays/bookkeeping/html/install.old
ssh into LAN server and at command line rename the install directory:
  −
Code: [Select]
  −
mv /<path to bookkeeping ibay>/html/install  /<path to bookkeeping ibay>/html/install.old
  −
 
  −
or delete it:
  −
Code: [Select]
  −
rm -rf install
  −
 
   
    
 
    
 +
or
   −
Adjust file permissions:
+
  rm -rf /home/e-smith/files/ibays/bookkeeping/html/install
Code: [Select]
  −
chmod -R 0551 /home/e-smith/files/ibays/bookkeeping
  −
Code: [Select]
  −
chmod -R 0750 /home/e-smith/files/ibays/bookkeeping/html/my_files
  −
Code: [Select]
  −
chmod  0400 /home/e-smith/files/ibays/bookkeeping/html/includes/configure.php
  −
 
  −
edit - 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.
     −
All other files (not directories):   ...  now, I haven't tried this yet. However, I think that this should work - if you think you need it.
+
And configure rigth file permissions:
chmod  0441 /home/e-smith/files/ibays/bookkeeping/<path to file>
  −
edit - I need to investigate this (possibly 0440)
      +
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
    +
{{Note box| 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.}}
   −
12. There is a To-Do list on the PhreeBooks landing page.
+
I hope it works now. :)
   −
NOTE - I have read that on some hosting the Users and Groups are defined by the hosting company - IMHO this may well effect the file permissions required.
      
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
147

edits

Navigation menu