apache

apache

Post by Tony McGuinnes » Sun, 04 Mar 2001 22:44:09



I have installed apache and it appears to be up and running correctly -
however when I set up a html document pointing to a Perl script, the
script is displayed rather than being executed. I am using RedHat 7.0.

Thanks in advance for any help.

 
 
 

apache

Post by Rick Mille » Tue, 06 Mar 2001 17:43:49



> I have installed apache and it appears to be up and running correctly -
> however when I set up a html document pointing to a Perl script, the
> script is displayed rather than being executed. I am using RedHat 7.0.

        There are typically 2 methods you can choose to use here.  Leaving cgi
scripts in the DocumentRoot and executing them from there or executing
them from within cgi-bin/.

        IMO (and there may be others), it's best to just do it within
cgi-bin/.  This can be accomplished simply by setting up the appropriate
ScriptAlias directive.  Thsi script alias will point to a safe location
outside your DocumentRoot such as $APACHE_INSTALL_DIR/cgi-bin/.

        Secondly, you could put the CGI scripts in your DocumentRoot (not
suggested) and add a AddHandler or SetHandler directive to you conf
file.  You'll have to set the 'OPTIONS ExecCGI' directive too.

--Rick

 
 
 

1. apache module with pthread library linked crashes Apache 1.3.12 on RedHat Linux 6.2

A simple module just by linking pthread library
crashes apache 1.3.12 server,
i.e  httpd doesn't comes up.

This happens on RedHat 6.2 Linux.

any idea on apache module which links pthread library
for apache1.3.12 is appreciated.

steps to reproduc the problem:

downloaded apache_1.3.12.tar.gz on a RedHat 6.2 Linux machine.

compiled and installed with

#configure --enable-shared=max --enable-module=most \
--prefix=/usr/local/apache
#export PATH=/usr/local/apache/bin:$PATH
#apxs -g -i -n testMod
#cd testMod
#make
apxs -c    mod_testMod.c
gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE
-I/usr/local/apache/include  -c mod_testMod.c
gcc -shared -o mod_testMod.so mod_testMod.o
#rm mod_testMod.so
#gcc -shared -o mod_testMod.so mod_testMod.o -lpthread
#make install
#/usr/local/apache/sbin/apactrl start

httpd dossn't comes up.

Thanks,
Datta.

Sent via Deja.com http://www.deja.com/
Before you buy.

2. Testing now being done for developers... read below

3. Apache POST (from Apache newbie)

4. want opinions on possible glitch in 2.4 network error reporting

5. Apache Doc & Startup procedure for Apache NT

6. Create binary package from ports.

7. apache listen to port 80, another standalone apache+modssl listen port 443, not working..?!

8. Canon LBP-660 and Linux?

9. Can Apache be used as a tunnel to another Apache.

10. Apache: delay after cgi / apache::registry scripts

11. cannot install apache after installed frontpage 2000 patch apache

12. Apache Gurus: Apache virtual server using SSI???

13. Apache: mod_servlet for Apache 1.2?