Discussion:
CGI Not working on Apache 2.4.25
(too old to reply)
Eli the Bearded
2018-10-17 20:44:53 UTC
Permalink
Crossposted to comp.infosystems.www.servers.unix and follow-ups set.
I am running Apache2.4.25 under Raspbian on a Raspberry Pi 3. Prior to
enabling CGI, everything was working fine, but I need to implement
some scripts, so I ran a2enmod, and the system enabled CGI. Now I
can't get anything to work, however. I can't even get a flat html page
I believe all of the responses so far to your question are wrong in the
sense that they are looking at the symptoms and not the problem. For
starters, you posted to the wrong group.

For seconds, you changed your Apache config and DIDN'T POST WHAT CHANGE
YOU MADE. The problem is 100% in the config. A normal Apache install
does not execute .html files as CGI scripts. (Unless maybe they are
installed in a directory marked as all CGI.)

I'm a big fan of non-standard file extensions for CGI and have totally
made .html run as CGI sometimes, but mostly I want .html to be .html.

What do you have in your config? Something like this will be mighty
useful in giving a reader a chance to understand your config:

grep -hv '#' /etc/apache2/*.conf /etc/apache2/*-enabled/* >> USENETPOST

If you want limit it to blocks mentioning CGI, that would be cool too.
But blindly fixing your apache config without seeing it, no one wants to
do that.

Elijah
------
posting how you made the change isn't enough
Barry Margolin
2018-10-18 17:38:36 UTC
Permalink
Post by Eli the Bearded
For seconds, you changed your Apache config and DIDN'T POST WHAT CHANGE
YOU MADE. The problem is 100% in the config. A normal Apache install
does not execute .html files as CGI scripts. (Unless maybe they are
installed in a directory marked as all CGI.)
From what I could tell, that's not what's happening. It's executing a
bash script via the CGI mechanism, and the bash script contains "cat
/path/to/filename.html"

I'm not going to see the followups to this because of the redirect of
the thread to a newsgroup I don't subscribe to.
--
Barry Margolin, ***@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
The Doctor
2018-10-18 22:49:28 UTC
Permalink
Post by Barry Margolin
Post by Eli the Bearded
For seconds, you changed your Apache config and DIDN'T POST WHAT CHANGE
YOU MADE. The problem is 100% in the config. A normal Apache install
does not execute .html files as CGI scripts. (Unless maybe they are
installed in a directory marked as all CGI.)
From what I could tell, that's not what's happening. It's executing a
bash script via the CGI mechanism, and the bash script contains "cat
/path/to/filename.html"
I'm not going to see the followups to this because of the redirect of
the thread to a newsgroup I don't subscribe to.
Athe cgi and cgid modules activated on this sever?
Post by Barry Margolin
--
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism
Love much. Earth has enough of bitter in it. -Ella Wheeler Wilcox
Loading...