> for some reason all our installations are 755 not 744 like yours...  try a
> chmod 755 on the directory and see if that rectifies it.

chmod 755 doesn't solve the problem.

> check your error logs and see where it is trying to retrieve from?

it is trying to open index.html in the correct directory.

i modified sqwebmail/sqwebmail.c to gte a closer look at what was going on:

line 402, sqwebmail.c:

        printf("Content-type: text/html\n\n");
                printf("formpath: %s<BR>", formpath);
 
                f=fopen(formpath, "r");
                printf("f(descriptor): %d<BR>", (int) f);

this results in the following output when sqwebmail is run:

formpath: /usr/local/share/sqwebmail/html/en-us/index.html
f(descriptor): 0
Content-type: text/html formpath: 
/usr/local/share/sqwebmail/html/en/index.html
f(descriptor): 0

Can't open form template.

any ideas?

thanks-

dan


> Dave
>
> >-----Original Message-----
>
> From: Daniel Kelley [mailto:[EMAIL PROTECTED]]
>
> >Sent: Tuesday, August 21, 2001 9:47 PM
> >To: [EMAIL PROTECTED]
> >Subject: Can't open form template
> >
> >
> >hi-
> >
> >i'm trying to set up sqwebmail alongside qmail-ldap.
> >
> >i'm using 3.0.0, and
> >./configure --with-authldap
> >
> >everything compiles and installs cleanly.
> >
> >when i start up apache (1.3.20), and point a browser at
> >/cgi-bin/sqwebmail, i get "Can't open form template" as an error message.
> >
> >i checked out the source, and it looks like by default, sqwebmail will try
> >to open HTMLLIBDIR/HTTP11_DEFAULTLANG/index.html
> >(/usr/local/share/sqwebmail/html/en/index.html) if HTMLLIBDIR isin't
> >overridden by the SQWEBMAIL_TEMPLATEDIR environment variable.
> >
> >I've tried running this as is, and also injecting SQWEBMAIL_TEMPLATEDIR
> >into the cgi's environment with an identical value to HTMLLIBDIR.
> >
> >partial listing of /usr/local/share/sqwebmail/html/en:
> >
> >[root@mx1 html]# ls -al /usr/local/share/sqwebmail/html/en/[ail]*
> >-rw-r--r--  1 root  wheel   5805 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/abooklist.html
> >-rw-r--r--  1 root  wheel   8659 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/attachments.html
> >-rw-r--r--  1 root  wheel   7540 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/autoresponder.html
> >-rw-r--r--  1 root  wheel    876 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/index.html
> >-rw-r--r--  1 root  wheel   1778 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/invalid.html
> >-rw-r--r--  1 root  wheel  12806 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/ldaplist.html
> >-rw-r--r--  1 root  wheel   5710 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/ldapsearch.html
> >-rw-r--r--  1 root  wheel   1724 Aug 21 19:30
> >/usr/local/share/sqwebmail/html/en/login.html
> >
> >any ideas why this is happening?
> >
> >os: freebsd 4.4-STABLE
> >apache: 1.3.20
> >qmail-1.03
> >latest qmail-ldap patch.
> >sqwebmail-3.0.0
> >
> >thanks-
> >
> >dan

Reply via email to