This file is indexed.

/usr/share/doc/sql-ledger/faq.html is in sql-ledger 3.0.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
<ul>

<p><li><h4>Attempt to copy freed scalar</h4>
Perl 5 with thread support has a bug.
To get rid of panic errors and other issues the compiler can't handle,
recompile perl without thread support.

<p><li><h4>preamble.tex : No such file or directory</h4>
templates are provided as is, some templates may have links to other files
which are not included.
The preample.tex file is simply a separate file which holds
the header information for a template. Find a template with the header,
that is everything up to \begin document, and put the stuff into a file
called preamble.tex or simply cut and paste the header into the file and
remove the <%include preamble.tex%> directive.

<p><li><h4>wrong papersize</h4>
If the papersize for postscript and PDF does not match set the proper
size with texconfig-sys
<pre>
texconfig-sys pdftex paper letter
</pre>

<p><li><h4>Install Notes for Lighttpd</h4>
<ol>
<li>Make sure mod_cgi and mod_alias are in server.modules list
<li>Add sql-ledger directory as an alias, ie:
<p>alias_url = ( "/sql-ledger/" => "/usr/local/sql-ledger/" )
<li>Set up perl as hander for *.pl files.
<p>cgi.assign = ( ".pl" => "/usr/bin/perl" )
<p>Note: server.follow-symlink is on by default in lighttpd.
<li>Deny access to users directory
<p>$HTTP["url"] =~ "/sql-ledger/users" { url.access-deny = ("") }
</ol>


<p><li><h4>PostgreSQL 8.x</h4>
PostgreSQL added a restriction in v8.x that a sequence cannot be dropped
after if it is referenced by a table. However backups created with
SQL-Ledger v2.6.13 and earlier have a DROP SEQUENCE step in the backup
which will fail. To fix this edit the backup before restoring on a 8.x
system.

<p>This typically looks like this:
<pre>
DROP SEQUENCE id ;
CREATE SEQUENCE id START 10579;
--
DROP SEQUENCE invoiceid ;
CREATE SEQUENCE invoiceid START 11096;
--
DROP SEQUENCE orderitemsid ;
CREATE SEQUENCE orderitemsid START 178;
--
DROP SEQUENCE jcitemsid ;
CREATE SEQUENCE jcitemsid START 53;
</pre>

<p>Change it to:
<pre>
SELECT SETVAL('id', 10579);
SELECT SETVAL('invoiceid', 11096);
SELECT SETVAL('orderitemsid', 178);
SELECT SETVAL('jcitemsid', 53);
</pre>


<p><li><h4>PostgreSQL template1</h4>
template1 is a template to build new databases
from. Anything you put into template1 will be copied to a new database.
When you try to create a new dataset, the tables are already created from
template1 and when SQL-Ledger tries to create them you'll get an error that
the tables already exist.


<p><li><h4>PostgreSQL 8.0+ and SQL-Ledger v2.6.3 and older</h4>
To use SQL-Ledger < v2.6.3 with 8.0+ you have to modify the Pg-tables.sql file.
The file is in the sql directory.

<pre>
CREATE TABLE orderitems (
  trans_id int,
  parts_id int,
  description text,
  qty float4,
  sellprice float8,
  discount float4,
  unit varchar(5),
  project_id int,
  reqdate date,
  ship float4,
  serialnumber text,
  id int default nextval('orderitemsid')
) WITH OIDS;

CREATE TABLE inventory (
  warehouse_id int,
  parts_id int,
  trans_id int,
  orderitems_id int,
  qty float4,
  shippingdate date,
  employee_id int
) WITH OIDS;

CREATE TABLE assembly (
  id int,
  parts_id int,
  qty float,
  bom bool,
  adj bool
) WITH OIDS;
</pre>

This change is only required for SQL-Ledger versions 2.6.3 and older!

<p>If you already built a dataset without this change you will get
an error when you try to save a PO or assembly.
<p>"ERROR: column "oid" does not exist"

<p>Drop the tables and rebuild WITH OIDS.


<p><li><h4>Japanese characters</h4>
modify apache so that EUC_JP is the main additional language.
<br>comment out all unrelated languages except, UTF_8 shift jis, EUC_JP
<br>restart apache
<br>Fire up psql and do the encoding as per the table:-
<br>Table 5-2. Postgres Client/Server Character Set Encodings

<p>Server Encoding Available Client Encodings
<br>EUC_JP EUC_JP, SJIS
<br>EUC_TW EUC_TW, BIG5
<br>LATIN2 LATIN2, WIN1250
<br>LATIN5 LATIN5, WIN, ALT
<br>MULE_INTERNAL EUC_JP, SJIS, EUC_KR, EUC_CN, EUC_TW, BIG5, LATIN1 to LATIN5, WIN, ALT, WIN1250

<p>Create the dataset from admin.pl, now the Japanese shows up in multibyte encoding

<p>Now you can write in Hiragana, Katakana, Kanji and English


<p><li><h4>Error posting a check/receipt</h4>
<pre>
DBD::Pg::db do failed: ERROR: syntax error at or near "," at character 114
Error!
INSERT INTO acc_trans (trans_id, chart_id, transdate,amount)
VALUES (13314, , '03-22-2005',1.00 * 1)
ERROR: syntax error at or near "," at character 114 </pre>
This error is caused by a transaction which does not have links to
an AR/AP account.
<br>set up your chart of accounts properly and create at least one
AR and AP account. Then edit all your transactions and repost.


<p><li><h4>SELinux</h4>
<a href=http://fedora.redhat.com/docs/selinux-faq-fc3/index.html>http://fedora.redhat.com/docs/selinux-faq-fc3/index.html</a>

<p>modify /etc/selinux/conf and set SELINUX=permissive

<p>use audit2allow and add the following to policy.conf,
then run "make reload"

<p>#line 83
<br>allow httpd_sys_script_t port_type:{ tcp_socket udp_socket } { send_msg
recv_msg };
<br>allow httpd_sys_script_t sysctl_kernel_t:dir search;
<br>allow httpd_sys_script_t sysctl_t:dir search;
<br>allow httpd_sys_script_t tmp_t:sock_file write;
<br>allow httpd_sys_script_t httpd_sys_content_t:lnk_file read;
<br>allow httpd_sys_script_t sysctl_kernel_t:file read;
<br>allow httpd_sys_script_t unconfined_t:unix_stream_socket connectto;


<p><li><h4>session timeouts</h4>
If you get frequent timeouts or can't even log in synchronize
the clock with your server.


<p><li><h4>lineitems not printing</h4>
Templates edited on a UNIX platform don't work on a DOS platform.
To make them work load the template either with the builtin editor
or a text editor and save. Templates designed on a Windows platform have the
same problem and won't work on a UNIX platform. Once you strip the ^M's
the'll work just fine. This only affects the .tex templates because latex
can't process them properly.


<p><li><h4>UTF-8 character encoding</h4>
Most of the translations are in ISO format. To convert the translations
change directory to locale/cc and convert the files with iconv to UTF-8.
You should also convert the COAs too and make sure you select UTF-8
encoding when you set up a new dataset.


<p><li><h4>characterset problems</h4>
If you have problems displaying the correct characterset try adding
<pre>
  AddDefaultCharset On</pre>
in your httpd.conf file.

<p><li><h4>About installation</h4>
The easiest is to use the setup.pl script as root.
You don't need to know very much about your system, just login as root,
run 'perl setup.pl' and follow the prompts.
<p>setup.pl does not check for missing software packages and it is your
responsibility to have the required software
installed either from source or from a package.

<p>Requirements are clearly indicated in the README file and on the
download page.


<p><li><h4>cannot create function</h4>
<ol>
<li>either run createlang and install the plpgsql language handler or
install yourself. For more information how to do that, visit
<a href=http://www.postgresql.org/docs/>PostgreSQL</a> and
read the interactive documentation for procedural languages.

<li>load admin.pl
<li>unlock the system
<li>login
</ol>


<p><li><h4>The requested URL /sql-ledger/admin.pl was not found</h4>
Your webserver doesn't know where to find the script. Most commonly this
is from distributions hiding webserver configuration files in different
locations or files and setup.pl wasn't able to configure the location for
you. Find out which file (httpd.conf, httpdcommon.conf, ...)
controls your webserver configuration and add
<pre>
  # SQL-Ledger
  Include /etc/httpd/sql-ledger-httpd.conf</pre>

Create a file 'sql-ledger-httpd.conf' in /etc/httpd and copy the next part
into the file.

<pre>
  AddHandler cgi-script .pl
  AddDefaultCharset On
  Alias /sql-ledger /var/www/sql-ledger/
  &lt;Directory /var/www/sql-ledger&gt;
    Options ExecCGI Includes FollowSymlinks
  &lt;/Directory&gt;

  &lt;Directory /var/www/sql-ledger/users&gt;
    Order Deny,Allow
    Deny from All
  &lt;/Directory&gt;</pre>
replace '/etc/httpd' and '/var/www' with the appropriate directories.

<p>If you run Apache and configuration files are in a conf.d directory
you don't need to change httpd.conf but simply copy sql-ledger-httpd.conf
into /etc/apache/conf.d and restart apache.


<p><li><h4>users/members : Permission denied</h4>
Your webserver must have write access to the users directory.
If your server runs as user/group 'apache:apache' then set the
users directory to owner/group apache:apache.
<pre>
  # chown -R apache:apache users</pre>


<p><li><h4>Dataset newer than version</h4>
You are trying to use an older version with a dataset which was
created with a newer version.


<p><li><h4>PDF option not working</h4>
Check if you have latex and pdflatex installed.


<p><li><h4>Apache 2.0 "error 500"</h4>
Some of the early versions of Apache 2.0 (< patchlevel 44) had a rewrite engine
which unescaped escaped strings. This created a lot of problems and I worked
around it by escaping strings twice.
If you get a server 500 error 'filename too long' or if collapsed menus
don't expand you may have to adjusted the following code in
SL/Form.pm and change the number (44) on line 84.
<pre>
  # for Apache 2 we escape strings twice
  if (($ENV{SERVER_SIGNATURE} =~ /Apache\/2\.(\d+)\.(\d+)/) && !$beenthere) {
    $str = $self->escape($str, 1) if $1 < 2 && $2 < 44;
  }</pre>


<p><li><h4>IDENT Authentication failed for user "sql-ledger"</h4>
Edit pg_hba.conf and change authentication to

<pre>
  local           all        all           trust</pre>

The file is in the 'data' directory of your postgresql installation.
This is different with every distribution so look for it.
<pre>
  # find / -name 'pg_hba.conf'</pre>

<p>Some people can't read and seem to think 'localhost' is just some
fancy name for a local machine.
'localhost' is a host like any other host on a network.
A 'local' entry in pg_hba.conf will allow local connections ONLY and
not allow host connections. If you then try to connect to 'localhost'
postgres will come back with an authentication error because you tried
to connect to a host.

<p><b>WARNING!</b> DO NOT just put a 'host all all trust' in pg_hba.conf
unless you know what you are doing.


<p><li><h4>DBD-Pg for Mandrake 9.0</h4>
Mandrake did not package a compiled DBD-Pg package again, so install DBD-Pg
from the source package.
Install perl-DBD-Pg-1.01-4mdk.i586.rpm from the 'contrib' area.
(Mandrake / 9.0 / contrib / RPMS)


<p><li><h4>LaTeX error</h4>
If for some reason LaTeX produces an error message check for strange
characters in your account description and parts description
and use \usepackage[latin1]{inputenc} in the preamble.


<p><li><h4>LaTeX templates</h4>
If you don't want to edit tex code by hand,
you could use Lyx, Abiword, or any WYSIWYG editor capable of exporting
latex code.
To do that you must change the tokens for the variables <% and %> to something
like << and >>. % is the comment character in tex. There is also a
pagebreak block which must be commented out.
When you are done with the changes
replace << and >> with <% and %> and uncomment the pagebreak block.

<p>LaTeX is difficult but it also offers a much superior environment
to produce professionally looking forms in postscript and PDF format.
Unfortunately with all that power there is also a steep learning curve.


<p><li><h4>W3M</h4>
pass terminal=mozilla when you start w3m
<pre>
  $ w3m -F http://localhost/sql-ledger/login.pl?terminal=mozilla</pre>

To use without frames
<pre>
  $ w3m http://localhost/sql-ledger/login.pl?terminal=lynx</pre>

<p><li><h4>PDF option disappeared</h4>
Edit sql-ledger.conf and set $latex = 1;
<br>sql-ledger.conf is perl code. If there is a mistake in the file it
will not be loaded and
the internal defaults are used which turn off $latex, hence no PDF option.


<p><li><h4>Installation on Windows (WIN32)</h4>
<ul>
<li>install Apache, perl,
<a href=http://techdocs.postgresql.org/guides/InstallingOnWindows>Postgres</a>
or Oracle, DBI and the appropriate DBD
module
<li>download the latest version of <a href=/cgi-bin/nav.pl?page=source/index.html&title=Download>SQL-Ledger</a>
<li>extract the files to c:\apache\sql-ledger
<li>run 'perl shebang' to change the first line of the scripts. If perl
is not in c:\perl\bin' change '#!c:\\perl\\bin\\perl' to the location where
your perl binary is.
<li>edit c:\apache\conf\httpd.conf and add
<pre>
Alias /sql-ledger "c:/apache/sql-ledger/"
&lt;Directory "c:/apache/sql-ledger"&gt;
  AllowOverride All
  AddHandler cgi-script .pl
  AddDefaultCharset On
  Options +ExecCGI
  Order Allow,Deny
  Allow from All
&lt;/Directory&gt;

&lt;Directory "c:/apache/sql-ledger/users"&gt;
  Order Deny,Allow
  Deny from All
&lt;/Directory&gt;
</pre>

<li>start Apache
<li>start Postgres|Oracle|DB2
<li>connect to http://localhost/sql-ledger/admin.pl and set up users
and datasets
<li>connect to http://localhost/sql-ledger/login.pl and login

</ul>

<p><li><h4>Installation on Windows /w cygwin</h4>
<ul>
<li>install <a href=http://sources.redhat.com/cygwin/>cygwin</a>
Apache, perl, postgres, gcc and lynx
<li>install <a href=http://search.cpan.org/search?module=DBI>DBI</a>
<li>tar zxvf DBI-1.30.tar.gz
<li>cd DBI-1.30
<li>perl Makefile.PL
<li>make install
<li>install <a href=http://search.cpan.org/search?dist=DBD-Pg>DBD-Pg</a>
<li>tar -zxvf DBD-Pg-1.13.tar.gz
<li>export POSTGRES_INCLUDE=/usr/include/postgresql
<li>export POSTGRES_LIB=/usr/lib/postgresql
<li>cd DBD-Pg-1.13
<li>perl Makefile.PL
<li>make install
<li>edit /etc/apache/httpd.conf and add
<pre>
AddHandler cgi-script .pl
AddDefaultCharset On
Alias /sql-ledger /var/www/sql-ledger/
&lt;Directory /var/www/sql-ledger&gt;
  Options +ExecCGI
&lt;/Directory&gt;

&lt;Directory /var/www/sql-ledger/users&gt;
  Order Deny,Allow
  Deny from All
&lt/Directory&gt;
</pre>
<li>install SQL-Ledger
<li>cd /var/www
<li>mkdir sql-ledger
<li>download <a href=/cgi-bin/download.pl?setup.pl>setup.pl</a> and save the file
in /var/www/sql-ledger
<li>cd /var/www/sql-ledger
<li>perl setup.pl
</ul>

<p><li><h4>What do I enter for the language</h4>
If you use English, nothing, if you want to use a foreign language for
the login screen and admin stuff enter the language code, this is the
directory in the locale directory.


<p><li><h4>printing to a printer</h4>
Printers are defined in sql-ledger.conf

<pre>
%printer = ( 'Default' => 'lpr', 'Color' => 'lpr -PEpson' );</pre>

Check in your /etc/printcap file for the names of available printers.

<p>If you have LaTeX installed set
<pre>
  $latex = 1;</pre> in sql-ledger.conf

<p>To send the document to the printer check the "Postscript" or "PDF" format,
enter the number of copies and click on the "Print" button.

<p>The printer you enter in your preferences is the default printer.
You can choose any other available printer. This makes it possible
to print from anywhere on the network to any printer.

<p>Note: html format is for screen preview. Use the "Print" option from your
browser to print to a printer.


<p><li><h4>Using samba to send printjobs to a printer attached to a Windows XP workstation</h4>
The next part applies to roll your own print filters only. If you use CUPS or
LPRng use this as a guide how printing works.
I use the printer 'Epson' as an example which is
attached to a XP workstation called Raven.

<pre>
/etc/printcap entry on the server which runs lpd
 
epson:Epson\
  :sh:\
  :lp=/dev/null:\
  :sd=/var/spool/output/epson:\
  :if=/usr/libexec/lpr/epson/prnfilter:\

# end of entry in /etc/printcap


# prnfilter shell script
#!/bin/sh
# Filter for Epson Stylus

PATH="$PATH:/usr/local/bin"

#read first_line
read tmp
first_line=`echo $tmp | cut -b1-2 | sed -n '1p'`

first_chr=`expr "$first_line" : '\(.\)'`
first_two=`expr "$first_line" : '\(..\)'`
rewindstdin

if [ "$first_two" = "%!" ]; then # Postscript file
  gs @st640p.upp -dSAFER -dNOPAUSE -q -sOutputFile=/tmp/$$ -
else
  # text file
  cat &gt; /tmp/$$
  echo -n "^L" &gt;&gt; /tmp/$$
  smbclient '\\Raven\Epson' "" -c 'printmode text'
fi

smbclient '\\Raven\Epson' "" -P -c "print /tmp/$$"
rm /tmp/$$

# EOF


rewindstdin is a small program to rewind the filehandle for STDIN
save the next part up to EOF to a file rewindstdin.c and compile

#include &lt;sys/types.h&gt;
#include &lt;unistd.h&gt;
extern int errno;
main()
{
  if( lseek(0,0,0) == 0 ){
    errno = 0;
  }
  return( errno );
}

# EOF

compile to an executable

gcc -o /usr/local/bin/rewindstdin rewindstdin.c
</pre>


<p><li><h4>beginning balances</h4>
Add a GL Journal entry and enter the beginning balance for your accounts.
Beginning balances are the balances from your last balance sheet. If you also
add open invoices to account for COGS for inventory, add the invoices
and make the appropriate adjustments.


<p><li><h4>establish a beginning inventory</h4>
add the parts with a vendor invoice. Use the <b>real cost</b> for the items,
not zero. If you use zero cost then the cost of goods will be zero when you
sell the item.


<p><li><h4>Assemblies</h4>
Assemblies are manufactured goods assembled from parts, services and
assemblies.  Because you do not buy assemblies you 'stock assemblies' by
adding assembled units to your inventory. The quantity for individual parts 
is reduced and the quantity for the assembly increased. To disassemble an
assembly you simply return the parts to inventory by entering a negative
quantity for the number of assemblies to stock.


<p><li><h4>customizing SQL-Ledger</h4>
The <a href=/cgi-bin/nav.pl?page=feature/api.html&title=Application%20Interface>application interface</a>
consists of a global and private interface.


<p><li><h4>DBD-Pg not installed</h4>

Most modern distributions now package DBD-Pg. If it is
not packaged follow this recipe to get it working.

<ul>
  <li>check if you have the header files for PostgreSQL
  <br>$ find / -name 'libpq-fe.h'
  <br>if nothing shows up install the development package for PostgreSQL
  <li>download and untar DBD-Pg
  <li>set the environment variables POSTGRES_LIB and POSTGRES_INCLUDE
  <li>cd to DBD-Pg directory
  <br>as ordinary user
  <br>$ perl Makefile.PL
  <br>$ make
  <br>$ make test
  <br>if all went well su to root
  <br># make install
  <li>remove DBD-Pg
</ul>


<p><li><h4>login.pl has compilation error</h4>

This could be because of a missing configuration file in the users directory

<p>check the permission for the users directory. The directory must be
set writeable for the webserver. If your webserver runs as user/group
nobody.nogroup set the directory to
<pre>
drwx--x--x   2 nobody   nogroup    1024 May 26 16:49 users

or

drwxrwx--x   2 johndoe  nogroup    1024 May 26 16:49 users</pre>


<p><li><h4>script not executing, shows in browser instead</h4>

Add
<pre>
  AddHandler cgi-script .pl</pre>
in your httpd.conf file.


<p><li><h4>unknown terminal!</h4>
the frontend script couldn't figure out which browser you are using
<p>include the terminal variable on the URL
<pre>
  http://localhost/sql-ledger/login.pl?terminal=lynx</pre>
Valid terminal variables are lynx and mozilla


<p><li><h4>permission denied</h4>

Check if your webserver has write permission to write to the following
files and directories:
<pre>
  users/
  templates/
  users/members

  # chown nobody:nogroup users templates users/members
</pre>


<p><li><h4>permission denied to access tables</h4>
The user you entered in the "Database section" must be a valid
database user who has rights to access the tables.

<p>If the tables are owned by 'joe' and you enter 'mary' as the dba
you might run into this problem if mary doesn't have the rights to
access tables owned by joe.


<p><li><h4>html and graphics files don't show up on screen</h4>

Enable Includes and FollowSymlinks Options in your httpd.conf file
<pre>
  &lt;Directory /usr/local/sql-ledger&gt;
    Options ExecCGI Includes FollowSymlinks
  &lt;/Directory&gt;
</pre>


<p><li><h4>switch display to a foreign language</h4>

Load your preferences and select the language.
<br>Language selection is in accordance to 
<a href=http://www.unece.org/cefact/locode/service/main.htm>
ISO 3166-1</a> standards.


<p><li><h4>Text shows in English when I use a foreign language</h4>

This is because the corresponding hash entry is missing.
Add the missing text in the locale/cc/all or locale/cc/missing
file and run 'perl locales.pl' from the command line to rebuild
the individual files.

<br>cc refers to the country code.


<p><li><h4>switch to a foreign language for the login and admin screen</h4>

Edit sql-ledger.conf and enter the code for the $language variable
<pre>
  $language = "de";</pre>

<p>This is a global change and applies to all logins, individual settings
can be changed by setting the language in your Preferences.


</ul>

<p>
<hr>
<h1>SQL-Ledger security</h1>

<ul>
<li>The security features built into SQL-Ledger provide password
and access control.
If you expose your server on the Internet we strongly advise to use your
web server's authentication mechanism as well.

<p>SQL-Ledger was not designed to be run wide open on the Internet.

<p>Some precautions which are out of our control must also be taken.
It matters where you install SL and how you configure your web server and
SQL database server.

<pre>
  Typical setups:
  
  /usr/local/vh/www                   <- DocumentRoot for virtual host
  /usr/local/vh/sql-ledger            <- Alias for sql-ledger
  /usr/local/vh/users                 <- users directory out of reach

<hr width=60% align=left>
  /usr/local/vh/www                   <- DocumentRoot for virtual host
  /usr/local/vh/www/sql-ledger        <- Alias for sql-ledger
  /usr/local/vh/www/sql-ledger/users  <- users configuration files and tmp space

  &lt;Directory /usr/local/vh/www/sql-ledger/users&gt;  <- disable webserver access
    Order Deny,Allow                                 for users directory
    Deny from All
  &lt;/Directory&gt;

</pre>

The location for the users directory can be specified in sql-ledger.conf

<p><li>Set permission for the users and templates directory to 711

<p><li>If you do not want anyone to change the templates with the builtin
editor set the files in templates/directory/ to read only or disable
the menu item to edit the templates.

<p><li>You can set up a read-only environment if you disable the menu items
to add data. i.e 'Add Transaction' if unchecked you will not be able to add
a transaction or repost a transaction. You may look at it but nothing else.

<p><li>There are various settings for audit control and you can disable
reposting entirely or up to a certain date. And with audit trails enabled
you can keep tab of who is doing what.

<p><li>For PostgreSQL you can also set who has access to the server in the file
pg_hba.conf
<br>Authentication crypt does not work because not all SQL servers
accept encrypted passwords.

<p><li>in addition you can secure the tables from unauthorized access by
setting up a different database user and GRANT rights. For instance,
users without DELETE rights will still be able to use the program, change
customers and vendors, add transactions but will not be able to delete or
repost transactions.
<br>To lock all the tables to create a RO system GRANT SELECT rights only.

<p><li>Other security options include a secure shell, your webserver's
authentication system, SSL, encrypted tunnels, ...

</ul>

</BODY>
</HTML>