CGI Has a problem writing to a file (text and html)

CGI Has a problem writing to a file (text and html)

Post by Boogers Mall » Sat, 10 Jul 1999 04:00:00



Howdy,

I'm running apache 1.3.6 on Mandrake 6.0. The setup went well (apache) but I'm
having a CGI problem. The CGI works and executes fine until it needs to write
to something. It will not write to

1) a flat text file or
2) an html file (like a guestbook where the html file is updated with new data)

Is there some sort of option I'm overlooking. Thank you.

Gary

 
 
 

CGI Has a problem writing to a file (text and html)

Post by John Imri » Sat, 10 Jul 1999 04:00:00



> Howdy,

> I'm running apache 1.3.6 on Mandrake 6.0. The setup went well (apache) but I'm
> having a CGI problem. The CGI works and executes fine until it needs to write
> to something. It will not write to

> 1) a flat text file or
> 2) an html file (like a guestbook where the html file is updated with new data)

> Is there some sort of option I'm overlooking. Thank you.

> Gary

The CGI script runs as the same user and group as Apache, check the User and Group
configuration directives. Then check that the directory you wish to write your
file in is write accessable by this user or group.

The Pilgrim.

 
 
 

1. Output from cgi scripts displaying as text not html formatted text

I am running Solaris 2.5.1 with Apache 1.2.b8 and am having problems with
cgi (Perl) script output not being formatted in the browser.  The conf
files seem to be in order, and the script is definitely running and
producing output.  I can run the script manually and redirect the output to
a file and the browser display the html created without a problem, but when
the output is directed to the browser the html goes to the screen as raw
html text and it not formatted.  I have successfully written cgi scripts
that run under Netscape server that display without a problem.  I have
reviewed the headers repeatedly and don't see a problem.  I feel at this
point that it must be an Apache config thing.  Anyone encounter this one?  

2. Solaris Patch files <CKE>

3. Serving text/x-server-parsed-html not text/html

4. Apple's idiotic sound system

5. CGI outputting text/x-server-parsed-html?

6. Dumb Terminal Problems

7. Apache 1.2b6 - CGI HTML output being handled as text.

8. stdtypes.h on gcc2.5.8, where?

9. NCSA: generating text/x-server-parsed-html (from CGI)

10. converting an html file into a text file

11. How to convert text files to HTML files?

12. Converting text files to html files in HP-UX.

13. serving cgi files and html files in same directory