fpweb/cgi newbie here.
Server: Apache2 on Debian x64 Linux, using fpc 2.6.0 (alternatively FPC trunk).
I'm working on an fpweb cgi application to scan documents. Later on, I will build a Lazarus client that communicates using json with the cgi application.
I currently have the cgi application and a command line server application sharing common code.
I'm running into problems with the cgi app getting stuff from my database (on the server: tigerserver --list or the TFPWebModule1.listRequest in the tigercgi application): works fine on the server but got a rude Access violation. Suspect the db connection is not set up properly.
Decided to add some logging; used TEventLog.
Unfortunately, once again, the command line server logs nicely to /var/log/syslog; no log output from the cgi.
Should I fiddle with permissions (allow the www-data user to log to syslog or something)
Is there something I'm missing?
I'd be happy to post the code but don't know where the problem lies. If you want to have a look, you can find the tagged revision that shows my problems:
http://bitbucket.org/reiniero/papertiger/src/?at=lazforumquestion... or download a zip:
https://bitbucket.org/reiniero/papertiger/downloads/tigerserver_20130216_forumquestion.zipAny hints/tips/suggestions gratefully received.
Edit: clarification