Re: Apache, Euphoria, and include files

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg Haberek wrote:
> 
> 
> Ok, so I've installed RedHat 9.0 (text-mode) on my laptop for testing
> purposes.
> I setup Apache 2.0.4 and installed Euphoria 2.4. I wrote a quick little script
> and threw it into the /var/www/cgi-bin directory.

<snip>

> So, there you have it, a simple "Hello World!" page. No problem, right? Right.
> Here's my problem: I'm trying to write a little library to assist me in my
> HTML endeavors, called html.e. If I insert a line "include html.e" then the
> script
> doesn't run. Instead, from my web brower (on another computer on my network)
> I get a "Server error!" "Error Message: Premature end of script headers:
> test.exu"
> I've looked through Rob's code for asearch.exu (for the Archive) and he has
> plenty
> of
> include files, so where am I going wrong? If I have no inlude files the script
> runs
> fine,
> the second there is an include file the script crashes.

Apache, for security reasons, doesn't have access to most of the programs, 
directories, files in your computer. 

You can copy the needed include files into the cgi directory, or put them 
somewhere else where Apache can access them - not in your user space!
You may also have to change owner and group to apache:apache for those 
files. And make them read-only!

The \n's in your code are fine, they make debugging the resulting HTML 
easier.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu