summaryrefslogtreecommitdiff
path: root/doc/README
blob: c3a1cb5d20b20779b69ee9c5a9262d89c3f85206 (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.8+
  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-x.y.z.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 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. order allow,deny
  107. deny from all
  108. d) protect the templates directory with an .htpasswd file
  109. order allow,deny
  110. deny from all
  111. e) set up your PostgreSQL database and the tables.
  112. You will most likely only have access to PostgreSQL with
  113. some other tools like pgadmin.
  114. 1) create a database user or use an assigned database user
  115. 2) create a blank database or use one which was created for you
  116. 3) load your web browser and connect to
  117. http://host.domain.com/private_html/ledger-smb/admin.pl
  118. to create the tables.
  119. TODO: Add bit about setting admin password
  120. Select the "Database Administration" link
  121. Host [database host] Port [ ]
  122. User [database user] Password [for your database]
  123. Connect to [your database]
  124. click on "Create Dataset"
  125. The next screen is for choosing a Chart of Accounts
  126. Create Dataset [your database]
  127. Multibyte Encoding [ ]
  128. Select a chart of accounts and click on "Continue".
  129. Your tables will now be created and the chart of accounts
  130. will be loaded.
  131. Go to the next step, "SET UP A USER"
  132. PREPARE YOUR SQL DATABASE SERVER:
  133. ---------------------------------
  134. add one database user with create database privileges
  135. to manage the datasets and tables for LedgerSMB
  136. # su postgres
  137. $ createuser -d ledger-smb
  138. Shall the new user be allowed to create databases? (y/n) y
  139. Shall the new user be allowed to create more new users? (y/n) n
  140. if you use passwords to access postgres use this command
  141. $ createuser -d -P ledger-smb
  142. SET UP A DATABASE AND TABLES:
  143. -----------------------------
  144. Load your web browser and connect to
  145. http://localhost/ledger-smb/admin.pl
  146. Select the "Database Administration" link,
  147. enter the user you created in the previous step.
  148. If the database has been pre-created for you (by
  149. your hosting company, you must leave the superuser
  150. credentials blank. If you want to create the
  151. database, fill in the superuser name and password.
  152. The "Create Dataset" link queries the server
  153. for existing datasets and displays them in a
  154. table. Enter a name for the new dataset (use
  155. lowercase letters only!) and select one of the
  156. Chart of Accounts and click on Continue.
  157. You cannot manage any other datasets from this
  158. interface, only the datasets used by LedgerSMB
  159. Template1 is only used to query
  160. the server, none of the information stored
  161. in template1 is manipulated in any way.
  162. You can connect to any other database you
  163. own, template1 is only a default.
  164. SET UP A USER:
  165. -------------
  166. Load your web browser and connect to
  167. http://localhost/ledger-smb/admin.pl
  168. Click on "Add User". In the Database
  169. section select the driver and enter
  170. the user you used to create the dataset.
  171. LOAD THE ACCOUNTING PROGRAM:
  172. ----------------------------
  173. Load your web browser and connect to
  174. http://localhost/ledger-smb/login.pl
  175. UPGRADING TO A NEWER VERSION:
  176. -----------------------------
  177. TODO: Add bit about upgrading to 1.2 here.
  178. UPGRADING WITH setup.pl:
  179. ------------------------
  180. run setup.pl from the command line and follow the prompts.
  181. INSTALLATION CHECKLIST:
  182. -----------------------
  183. 1. untar LedgerSMB somewhere (i.e /usr/local, /opt)
  184. 2. change permission for the users, templates, css and spool directory
  185. 3. edit httpd.conf
  186. 4. edit ledger-smb.conf
  187. 5. add the database user ledger-smb
  188. 6. load admin.pl
  189. 7. create datasets for companies
  190. 8. add users
  191. In the Database section enter
  192. a) PostgreSQL
  193. Host: for local connections leave blank
  194. Dataset: the dataset created in step 7
  195. Port: for local connections leave blank
  196. User: ledger-smb
  197. Password: password for ledger-smb
  198. IF SOMETHING DOESN'T WORK:
  199. --------------------------
  200. There is a FAQ in the doc directory.
  201. There are also several mailing lists at
  202. http://www.ledgersmb.org/
  203. where you can seek free help.
  204. For commercial support see http://www.ledgersmb.org/
  205. =====================================================================
  206. September 24, 2006