summaryrefslogtreecommitdiff
path: root/doc/README
blob: 64e5ee212cd23809bb6ed47a407fbbe99bcb0d2a (plain)
  1.                 LedgerSMB Small Medium Business Accounting
  2. Version 1.1.1c
  3. DESCRIPTION:
  4. ------------
  5. LedgerSMB is a double-entry accounting system written
  6. in perl. It has been tested with PostgreSQL, Apache,
  7. Netscape, Mozilla, Galeon, Explorer, Links, Lynx,
  8. Konqueror, Voyager, W3M and Opera clients on Linux,
  9. FreeBSD, Solaris, Windows, Mac computers and PDA's.
  10. Data is stored in a SQL database server, either locally or
  11. remote, the display is through a text or GUI web browser.
  12. The system is linked by a chart of accounts. All transactions
  13. for AR, AP and GL are stored in a transaction table. Hyper-links
  14. from the chart of accounts let you view transactions posted
  15. through AR, AP and GL.
  16. Configuration files let you specify to which SQL database server
  17. to connect to, personal preferences such as company name,
  18. language, number and date format, etc.
  19. With the admin script you can create, edit or delete users,
  20. create and delete datasets and set up the Chart of Accounts
  21. and templates needed for the system.
  22. You can have a group of users using the same dataset and
  23. templates for generating Invoices, Income Statements and
  24. Balance Sheets or a different set altogether.
  25. Templates are supplied in html, text and tex format to
  26. generate most of the forms. Forms can be printed to screen,
  27. sent to a printer or e-mailed.
  28. COPYRIGHT:
  29. ----------
  30. Licensed under the terms of the GPL.
  31. LATEST VERSION:
  32. ---------------
  33. available from http://www.ledgersmb.org/
  34. PLATFORMS:
  35. ----------
  36. Non specific, see requirements.
  37. REQUIREMENTS:
  38. -------------
  39. 1 - Perl, 5+
  40. 2 - http server (Apache, NCSA, httpi, thttpd, ...)
  41. 3 - SQL Server (PostgreSQL 8.0+)
  42. 4 - DBD (DBD-Pg)
  43. 5 - DBI
  44. 6 - Locale::Maketext::Lexicon 0.56+
  45. 7 - LaTeX (optional)
  46. FOREIGN LANGUAGE SUPPORT:
  47. -------------------------
  48. 28 languages are supported. Language files are
  49. ordinary text files, no special software is
  50. needed to change or add new translations.
  51. Some of the translation files are not 100% complete.
  52. If strings are missing, English is used instead.
  53. INSTALLATION
  54. ------------------------------
  55. unpack the tar.gz file in /usr/local
  56. tar xzvf ledger-smb-2.6.x.tar.gz
  57. you should now have everything in /usr/local/ledger-smb
  58. rename ledger-smb.conf.default to ledger-smb.conf
  59. edit ledger-smb.conf
  60. create a file ledger-smb-httpd.conf in the same location
  61. where your httpd.conf is and copy the next section into the file
  62. Alias /ledger-smb /usr/local/ledger-smb/
  63. <Directory /usr/local/ledger-smb>
  64. AllowOverride All
  65. AddHandler cgi-script .pl
  66. AddDefaultCharset On
  67. Options ExecCGI Includes FollowSymlinks
  68. Order Allow,Deny
  69. Allow from All
  70. </Directory>
  71. <Directory /usr/local/ledger-smb/users>
  72. Order Deny,Allow
  73. Deny from All
  74. </Directory>
  75. edit httpd.conf and add
  76. # LedgerSMB
  77. Include /config_directory/ledger-smb-httpd.conf
  78. Note: use an absolute or relative path to include
  79. the configuration in your httpd.conf file.
  80. i.e. /etc/httpd/ledger-smb-httpd.conf
  81. etc/apache2/ledger-smb-httpd.conf
  82. restart your web server.
  83. Note: /usr/local/ledger-smb is only a suggested
  84. path, you can install in any directory.
  85. Some versions of Apache 2.0 use a conf directory for
  86. configuration files. If this is the case copy
  87. ledger-smb-httpd.conf into this directory and leave
  88. httpd.conf as is.
  89. SET PERMISSION:
  90. ---------------
  91. change directory to /usr/local/ledger-smb
  92. # chown -hR nobody:nogroup users templates css spool
  93. replace nobody:nogroup with the web server user and group.
  94. Some systems use apache:apache, www, www-data, ...
  95. FTP INSTALLATION:
  96. -----------------
  97. If you do not have access to the server's configuration
  98. files install LedgerSMB in userspace by ftp'ing all the
  99. files to your server.
  100. a) untar ledger-smb in your private_html directory
  101. b) turn on script execution for the folder ledger-smb
  102. You can control this with an .htaccess file
  103. Options +ExecCGI
  104. DirectoryIndex login.pl
  105. c) protect the users directory with an .htpasswd file
  106. AuthGroupFile /dev/null
  107. AuthName "Unauthorized"
  108. AuthType Basic
  109. AuthUserFile /home/host.domain/private_html/ledger-smb/users/.htpasswd
  110. require valid-user
  111. d) protect the templates directory with an .htpasswd file
  112. AuthGroupFile /dev/null
  113. AuthName "Templates"
  114. AuthType Basic
  115. AuthUserFile /home/host.domain/private_html/ledger-smb/templates/.htpasswd
  116. require valid-user
  117. e) set up your PostgreSQL database and the tables.
  118. You will most likely only have access to PostgreSQL with
  119. some other tools like pgadmin.
  120. 1) create a database user or use an assigned database user
  121. 2) create a blank database or use one which was created for you
  122. 3) load your web browser and connect to
  123. http://host.domain.com/private_html/ledger-smb/admin.pl
  124. to create the tables.
  125. There is no password so just hit the Enter key or click
  126. on "Continue".
  127. Select the "Database Administration" link
  128. Host [database host] Port [ ]
  129. User [database user] Password [for your database]
  130. Connect to [your database]
  131. click on "Create Dataset"
  132. The next screen is for choosing a Chart of Accounts
  133. Create Dataset [your database]
  134. Multibyte Encoding [ ]
  135. Select a chart of accounts and click on "Continue".
  136. Your tables will now be created and the chart of accounts
  137. will be loaded.
  138. Go to the next step, "SET UP A USER"
  139. PREPARE YOUR SQL DATABASE SERVER:
  140. ---------------------------------
  141. PostgreSQL:
  142. -----------
  143. add one database user with create database privileges
  144. to manage the datasets and tables for LedgerSMB
  145. # su postgres
  146. $ createuser -d ledger-smb
  147. Shall the new user be allowed to create databases? (y/n) y
  148. Shall the new user be allowed to create more new users? (y/n) n
  149. if you use passwords to access postgres use this command
  150. $ createuser -d -P ledger-smb
  151. Install PL/PGSQL in template1 if it has not been installed yet
  152. # su postgres
  153. $ createlang plpgsql template1
  154. SET UP A DATABASE AND TABLES:
  155. -----------------------------
  156. Load your web browser and connect to
  157. http://localhost/ledger-smb/admin.pl
  158. Select the "Database Administration" link,
  159. enter the user you created in the previous step.
  160. The "Create Dataset" link queries the server
  161. for existing datasets and displays them in a
  162. table. Enter a name for the new dataset (use
  163. lowercase letters only!) and select one of the
  164. Chart of Accounts and click on Continue.
  165. You cannot manage any other datasets from this
  166. interface, only the datasets used by LedgerSMB
  167. POSTGRESQL: template1 is only used to query
  168. the server, none of the information stored
  169. in template1 is manipulated in any way.
  170. You can connect to any other database you
  171. own, template1 is only a default.
  172. SET UP A USER:
  173. -------------
  174. Load your web browser and connect to
  175. http://localhost/ledger-smb/admin.pl
  176. Click on "Add User". In the Database
  177. section select the driver and enter
  178. the user you used to create the dataset.
  179. LOAD THE ACCOUNTING PROGRAM:
  180. ----------------------------
  181. Load your web browser and connect to
  182. http://localhost/ledger-smb/login.pl
  183. UPGRADING TO A NEWER VERSION:
  184. -----------------------------
  185. 1. load admin.pl and lock the system
  186. 2. untar the new version over top
  187. 3. check the doc directory for specific notes
  188. 4. load admin.pl and unlock the system
  189. 5. log in
  190. NOTE: datasets are upgraded when you log in for
  191. the first time. During the upgrade process the
  192. dataset is locked so nobody can do any work.
  193. If an error occurs the system will remain locked.
  194. Track down the error, fix it, load admin.pl,
  195. unlock the system and log in again.
  196. UPGRADING WITH setup.pl:
  197. ------------------------
  198. run setup.pl from the command line and follow the prompts.
  199. INSTALLATION CHECKLIST:
  200. -----------------------
  201. 1. untar LedgerSMB somewhere (i.e /usr/local, /opt)
  202. 2. change permission for the users, templates, css and spool directory
  203. 3. edit httpd.conf
  204. 4. edit ledger-smb.conf
  205. 5. add the database user ledger-smb
  206. 6. load admin.pl
  207. 7. create datasets for companies
  208. 8. add users
  209. In the Database section enter
  210. a) PostgreSQL
  211. Host: for local connections leave blank
  212. Dataset: the dataset created in step 7
  213. Port: for local connections leave blank
  214. User: ledger-smb
  215. Password: password for ledger-smb
  216. IF SOMETHING DOESN'T WORK:
  217. --------------------------
  218. There is a FAQ in the doc directory.
  219. There are also several mailing lists at
  220. http://www.ledgersmb.org/
  221. where you can seek free help.
  222. For commercial support see http://www.ledgersmb.org/
  223. =====================================================================
  224. September 24, 2006