Re: CGI script executing and Apache help (2nd try & important)

2005-03-06 Thread Paul Schmehl
- Original Message - 
From: "Shawn B" <[EMAIL PROTECTED]>
To: 
Sent: Sunday, March 06, 2005 4:19 PM
Subject: CGI script executing and Apache help (2nd try & important)


I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.
In order to get CGI scripts to run in a directory other than the default 
cgi-bin directory, you have to define the directory and include the option 
+ExecCGI

So, in your case, it would be something like this:

   Options +ExecCGI

But, as others have said, you really should read the Apache docs and 
familiarize yourself with the syntax.  Also consider using mod_security to 
protect your server from attack.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CGI script executing and Apache help (2nd try & important)

2005-03-06 Thread Ean Kingston
On Sunday, March 6, 2005, at 05:19  PM, Shawn B wrote:
I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.
Try searching again. This time for 'cgi-bin'. You will notice there is 
a section similar to the htdocs bit that defines cgi-bin.

If you are going to run a web server it might be prudent to go through 
the apache configuration and documentation site to try and understand 
what the configuration file has set up for you. You can find the web 
server documentation at: http://httpd.apache.org/docs/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CGI script executing and Apache help (2nd try & important)

2005-03-06 Thread gabriel
How about pasting that httpd.conf?

Cheers!

On Sun, 6 Mar 2005 17:19:02 -0500 (EST), Shawn B <[EMAIL PROTECTED]> wrote:
> I am running FreeBSD-4.8 with Apache 1.3 installed. I
> changed the htdocs directory in httpd.conf to
> /home/user1/public_html/ and I added a /cgi-bin/ in
> the same user directory. Scripts will not execute from
> the cgi-bin, as the scripts contents are displayed in
> the browser window. I went through httpd.conf using
> the search feature in Easy Editor, editing sections
> that have .cgi in it. Now, I am stumped as to how to
> get the CGI scripts to execute.
> 
> Thanks,
> 
> Shawn B.
> FreeBSD newbie
> 
> __
> Post your free ad now! http://personals.yahoo.ca
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 


-- 
gabriel,

Member of:
FreeBSD-Announce
FreeBSD-Hardware
FreeBSD-Multimedia
FreeBSD-questions
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


CGI script executing and Apache help (2nd try & important)

2005-03-06 Thread Shawn B
I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.
 
 
 Thanks,
 
 Shawn B.
 FreeBSD newbie

__ 
Post your free ad now! http://personals.yahoo.ca
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: CGI script executing and Apache help

2005-03-04 Thread sn1tch
Try adding this


ScriptAlias /cgi-bin/ /home/user/site/public_html/cgi-bin/



On Fri, 4 Mar 2005 14:36:04 -0500 (EST), Shawn B <[EMAIL PROTECTED]> wrote:
> I am running FreeBSD-4.8 with Apache 1.3 installed. I
> changed the htdocs directory in httpd.conf to
> /home/user1/public_html/ and I added a /cgi-bin/ in
> the same user directory. Scripts will not execute from
> the cgi-bin, as the scripts contents are displayed in
> the browser window. I went through httpd.conf using
> the search feature in Easy Editor, editing sections
> that have .cgi in it. Now, I am stumped as to how to
> get the CGI scripts to execute.
> 
> Thanks,
> 
> Shawn B.
> FreeBSD newbie
> 
> __
> Post your free ad now! http://personals.yahoo.ca
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 


-- 
You've officially been Gmailed
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


CGI script executing and Apache help

2005-03-04 Thread Shawn B
I am running FreeBSD-4.8 with Apache 1.3 installed. I
changed the htdocs directory in httpd.conf to
/home/user1/public_html/ and I added a /cgi-bin/ in
the same user directory. Scripts will not execute from
the cgi-bin, as the scripts contents are displayed in
the browser window. I went through httpd.conf using
the search feature in Easy Editor, editing sections
that have .cgi in it. Now, I am stumped as to how to
get the CGI scripts to execute.


Thanks,

Shawn B.
FreeBSD newbie

__ 
Post your free ad now! http://personals.yahoo.ca
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache help

2003-07-25 Thread Jez Hancock
On Fri, Jul 25, 2003 at 12:27:01PM +0530, Sunil Sunder Raj wrote:
> Hi,
> There is an error in the shell script apache provides.
> 
> The line no.105 should be
> 
>if [ -z "${apache_start}" ]; then
> 
> check that the double codes are proper.
Which file is this, my rc script for apache only goes up to line 10 or
so... I thought you might have meant apachectl but there's no reference
to that line in there either...
-- 
Jez

http://www.munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache help

2003-07-24 Thread Sunil Sunder Raj
Hi,
There is an error in the shell script apache provides.
The line no.105 should be

   if [ -z "${apache_start}" ]; then

check that the double codes are proper.

Regards
SSR

From: Dzevad Fazlic <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Apache help
Date: Mon, 21 Jul 2003 14:33:10 -0600
Hello there
I just installed freeBSD 4.8 with apache 1.3.27
Everthing works perfect but when   i shutdown system or when i startup 
system
i am receiving this apache error
(/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted 
string )
Can somebudy help please
But if i start apache with this command   on shell  > apachectl start <
It will work fine
Thanks
Dzevad



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
_
Nagesh Kukunoor's back! With 3 Deewarein. 
http://server1.msn.co.in/sp03/3deewarein/index.asp Win tickets here.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache help

2003-07-23 Thread Vitali Malicky

- Original Message -
From: "Adam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 22, 2003 11:36 PM
Subject: Re: Apache help


> On Mon, 2003-07-21 at 16:33, Dzevad Fazlic wrote:
> > I just installed freeBSD 4.8 with apache 1.3.27
> > Everthing works perfect but when   i shutdown system or when i startup
system
> > i am receiving this apache error
> > (/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted
string )

Selfobvious!
file /usr/local/etc/rc.d/apache.sh
line 120
check it! may be you forgot to terminate quoting: " or '


> > Can somebudy help please
> > But if i start apache with this command   on shell  > apachectl start <
> > It will work fine
>
> Just a thought, did you ever edit that script with a Win32 text editor?
> Those kind of weird errors are frequently caused by Win32 terminating
> characters. Might be worth checking out, just to rule it out.

Or just when copying text files from windows to UNIX-like, copy them in
ASCII mode so that not to have "^M" at the end of each line... or develop
good habits and begin to edit scripts in "vi" or so...

>
> --
> Adam <[EMAIL PROTECTED]>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache help

2003-07-22 Thread Jez Hancock
On Mon, Jul 21, 2003 at 02:33:10PM -0600, Dzevad Fazlic wrote:
> Hello there 
> I just installed freeBSD 4.8 with apache 1.3.27
> Everthing works perfect but when   i shutdown system or when i startup system 
> i am receiving this apache error
> (/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted string )
FWIW here's a working 1.3.28 rc script for apache (no diff from that for
1.3.27):

#!/bin/sh

case "$1" in
start)
[ -x /usr/local/sbin/apachectl ] \
&& /usr/local/sbin/apachectl start > /dev/null && echo -n ' apache'
;;
stop)
[ -r /var/run/httpd.pid ] \
&& /usr/local/sbin/apachectl stop > /dev/null && echo -n ' apache'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac

exit 0

I've broken the lines with \ chars to make it more readable/less likely
to break in the mail(!), just copy the above piecemeal into
/usr/local/etc/rc.d/apache.sh and ensure the file is executable and you
should be ok.

HTH
-- 
Jez

http://www.munk.nu/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache help

2003-07-22 Thread Adam
On Mon, 2003-07-21 at 16:33, Dzevad Fazlic wrote:
> I just installed freeBSD 4.8 with apache 1.3.27
> Everthing works perfect but when   i shutdown system or when i startup system 
> i am receiving this apache error
> (/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted string )
> Can somebudy help please
> But if i start apache with this command   on shell  > apachectl start <
> It will work fine

Just a thought, did you ever edit that script with a Win32 text editor?
Those kind of weird errors are frequently caused by Win32 terminating
characters. Might be worth checking out, just to rule it out.

-- 
Adam <[EMAIL PROTECTED]>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Apache help

2003-07-22 Thread Dzevad Fazlic
Hello there 
I just installed freeBSD 4.8 with apache 1.3.27
Everthing works perfect but when   i shutdown system or when i startup system 
i am receiving this apache error
(/usr/local/etc/rc.d/apache.sh:120: Syntax error :Unterminated quoted string )
Can somebudy help please
But if i start apache with this command   on shell  > apachectl start <
It will work fine
Thanks
Dzevad



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Apache Help

2002-11-11 Thread Kent Stewart


Kevin D. Kinsey, DaleCo, S.P. wrote:

From: "Tim Peters" <[EMAIL PROTECTED]>
To: "Bryan Cassidy" <[EMAIL PROTECTED]>
Subject: Re: Apache Help




On Sun, Nov 10, 2002 at 04:27:00PM -0600, Bryan Cassidy wrote:


Ok here is the deal. I've been "trying" to get apache to work on



my


FreeBSD 4.6.2 box. Here is what I was told I should do to install
apache/php http://lith.hn.org/apache.php I know it install this



way


but want to make sure it is the "correct" way to install



apache/php on


freebsd.


There's nothing wrong with the instructions on the page you refer
to.  A more freebsd-ish solution might be to use the ports:

   # cd /usr/ports/www/mod_php4; make install; apachectl start

The only major difference being that ports will make PHP a loadable
module instead of compiling it directly into the apache binary.

Then just make sure your domain name points to the right machine.
It should Just Work(tm).  If not, tell us where it goes wrong (be
specific).  If your problems are with dyndns.org, I can't help you.



I happened to check on this after seeing the post earlier today.
hisname.dyndys.org is available to nameservice, but a telnet
to port 80 on that IP rang up 'connection refused.'  Without
him telling us his IP, it'll be hard to determine from outside
without more information.

Brian, you're going to have to give some details as to what
exactly you've done, and what you're seeing
in terms of error messages, whether from the console,
/var/log/messages, or the apache error log, or we're
not gonna be *able* to help


InsightBB.com has one of those _no_internet_server rules and they may 
be blocking any service under 1024.

Kent

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Apache Help

2002-11-10 Thread Kevin D. Kinsey, DaleCo, S.P.
From: "Tim Peters" <[EMAIL PROTECTED]>
To: "Bryan Cassidy" <[EMAIL PROTECTED]>
Subject: Re: Apache Help


> On Sun, Nov 10, 2002 at 04:27:00PM -0600, Bryan Cassidy wrote:
> > Ok here is the deal. I've been "trying" to get apache to work on
my
> > FreeBSD 4.6.2 box. Here is what I was told I should do to install
> > apache/php http://lith.hn.org/apache.php I know it install this
way
> > but want to make sure it is the "correct" way to install
apache/php on
> > freebsd.
>
> There's nothing wrong with the instructions on the page you refer
> to.  A more freebsd-ish solution might be to use the ports:
>
> # cd /usr/ports/www/mod_php4; make install; apachectl start
>
> The only major difference being that ports will make PHP a loadable
> module instead of compiling it directly into the apache binary.
>
> Then just make sure your domain name points to the right machine.
> It should Just Work(tm).  If not, tell us where it goes wrong (be
> specific).  If your problems are with dyndns.org, I can't help you.
>
I happened to check on this after seeing the post earlier today.
hisname.dyndys.org is available to nameservice, but a telnet
to port 80 on that IP rang up 'connection refused.'  Without
him telling us his IP, it'll be hard to determine from outside
without more information.

Brian, you're going to have to give some details as to what
exactly you've done, and what you're seeing
in terms of error messages, whether from the console,
/var/log/messages, or the apache error log, or we're
not gonna be *able* to help

Kevin Kinsey
DaleCo, S.P.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Apache Help

2002-11-10 Thread Tim Peters
On Sun, Nov 10, 2002 at 04:27:00PM -0600, Bryan Cassidy wrote:
> Ok here is the deal. I've been "trying" to get apache to work on my
> FreeBSD 4.6.2 box. Here is what I was told I should do to install
> apache/php http://lith.hn.org/apache.php I know it install this way
> but want to make sure it is the "correct" way to install apache/php on
> freebsd.

There's nothing wrong with the instructions on the page you refer
to.  A more freebsd-ish solution might be to use the ports:

# cd /usr/ports/www/mod_php4; make install; apachectl start

The only major difference being that ports will make PHP a loadable
module instead of compiling it directly into the apache binary.

Then just make sure your domain name points to the right machine.
It should Just Work(tm).  If not, tell us where it goes wrong (be
specific).  If your problems are with dyndns.org, I can't help you.

HTH,

-tim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Apache Help

2002-11-10 Thread Bryan Cassidy
Ok here is the deal. I've been "trying" to get apache to work on my
FreeBSD 4.6.2 box. Here is what I was told I should do to install
apache/php http://lith.hn.org/apache.php I know it install this way
but want to make sure it is the "correct" way to install apache/php on
freebsd. The domain name I am trying to use with apache is
bsdsys.dyndns.org and I just can't get it. Sorry, I've RTFM many times
and just don't know what I'm doing wrong. I hope someone will help me
out here. I am going to do a new install of apache/php from those
instructions on that site I just provided here unless someone says I
should do it different. All I want for starters is to get apache
working to where when someone hits bsdsys.dyndns.org it shows the
apache stuff so atleast "I" know I have things setup right then I will
work on the rest to add the content. So if no one minds to help me I
would really appreciate it.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message