Apache config question

2006-03-29 Thread Darryl Hoar
Greetings,
I have a Freebsd 6.0-Release system that I just
installed.  I have installed Apache 1.3.33 from the
ports system.

I can see the index.html file when I point my browser
to the server.  What I can't do is :

browse to : http://server/cgi-bin/cscripts/myscript.cgi

I get a 404 Not found.
The requested URL /cgi-bin/myscript.cgi was not found
on this server.

The file myscript.cgi is located in the /usr/local/www/cgi-bin
directory.  I verified this.

I have added:
Directory /usr/local/www/cgi-bin/cscripts
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
/Directory

to the http.conf file.
I did /usr/local/sbin/apachectl stop
/usr/local/sbin/apachectl start.

of course /usr/local/sbin/apachectl configtest says the config file is OK.

What am I missing here ?

thanks,
Darryl

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


Re: Apache config question

2006-03-29 Thread Nathan Vidican

Darryl Hoar wrote:

Greetings,
I have a Freebsd 6.0-Release system that I just
installed.  I have installed Apache 1.3.33 from the
ports system.

I can see the index.html file when I point my browser
to the server.  What I can't do is :

browse to : http://server/cgi-bin/cscripts/myscript.cgi

I get a 404 Not found.
The requested URL /cgi-bin/myscript.cgi was not found
on this server.

The file myscript.cgi is located in the /usr/local/www/cgi-bin
directory.  I verified this.

I have added:
Directory /usr/local/www/cgi-bin/cscripts
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
/Directory

to the http.conf file.
I did /usr/local/sbin/apachectl stop
/usr/local/sbin/apachectl start.

of course /usr/local/sbin/apachectl configtest says the config file is OK.

What am I missing here ?

thanks,
Darryl

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


First, and foremost - check the Apache error log, and make sure it's looking 
where you expect it to. You might find a line saying File not found: 
/usr/some/where/you/didnot/expect/cgi-bin ... next, check the permissions of 
the sub-dir you created in cgi-bin, and lastly, the permissions of the cgi-bin 
itself, both should be world read/executable.



--
Nathan Vidican
[EMAIL PROTECTED]
Windsor Match Plate  Tool Ltd.
http://www.wmptl.com/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache config question

2006-03-29 Thread Greg Barniskis

Darryl Hoar wrote:

Greetings,
I have a Freebsd 6.0-Release system that I just
installed.  I have installed Apache 1.3.33 from the
ports system.

I can see the index.html file when I point my browser
to the server.  What I can't do is :

browse to : http://server/cgi-bin/cscripts/myscript.cgi

I get a 404 Not found.
The requested URL /cgi-bin/myscript.cgi was not found
on this server.

The file myscript.cgi is located in the /usr/local/www/cgi-bin
directory.  I verified this.

I have added:
Directory /usr/local/www/cgi-bin/cscripts
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
/Directory

to the http.conf file.
I did /usr/local/sbin/apachectl stop
/usr/local/sbin/apachectl start.

of course /usr/local/sbin/apachectl configtest says the config file is OK.

What am I missing here ?


well, is your script really in www/cgi-bin/ or is it really in 
www/cgi-bin/cscripts/ ?


Your config and testing examples are not consistent as written 
above. That may just be transcription error due to writing email in 
a state of puzzlement/frustration, but if not, that inconsistency is 
clearly part of the problem.


Also, you may have reasons for trying to do things this way, but it 
is really not necessary to give any special httpd.conf directives 
(e.g. ExecCGI) for subdirectories of cgi-bin, which is already 
configured as a ScriptAlias by default. Everything under it is 
considered to be executable if file system permissions are correct 
and Apache's access controls allow entry. The configtest only tells 
you that your config file is syntactically valid, not that it's the 
right thing to do.


One would normally only need to add the ExecCGI option to a special 
directory in your normal document space (storage areas not already 
designated as ScriptAlias content), but not to children of cgi-bin. 
Just make your script files executable by permissions (755) and let 
the default config handle it.


In short, your config seems rather odd to me, but I'm no expert 
beyond the simplest CGI needs and as I said, maybe you have reasons 
for added complexity. If not, don't add complexity where not needed.



--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Apache config question

2006-03-29 Thread Darryl Hoar
Sorry for the top post but I don't want anyone wasting any
more time on this.

The problem was simple.  Operator error.  The script was in
cscript folder.  When I typed in the browser, I omitted the
folder name  ie  http://servername/cgi-bin/myscript.cgi  instead
of the correct http://servername/cgi-bin/cscript/myscript.cgi

Sorry for the wasted bandwidth.
Must find more coffee.

-Original Message-
From: Philip Hallstrom [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 29, 2006 10:23 AM
To: Darryl Hoar
Cc: freebsd-questions@freebsd.org
Subject: Re: Apache config question


 Greetings,
 I have a Freebsd 6.0-Release system that I just
 installed.  I have installed Apache 1.3.33 from the
 ports system.

 I can see the index.html file when I point my browser
 to the server.  What I can't do is :

 browse to : http://server/cgi-bin/cscripts/myscript.cgi

 I get a 404 Not found.
 The requested URL /cgi-bin/myscript.cgi was not found
 on this server.

 The file myscript.cgi is located in the /usr/local/www/cgi-bin
 directory.  I verified this.

 I have added:
 Directory /usr/local/www/cgi-bin/cscripts
 deny from all
 Options ExecCGI
 AllowOverride AuthConfig
 Order deny,allow
 /Directory

 to the http.conf file.
 I did /usr/local/sbin/apachectl stop
 /usr/local/sbin/apachectl start.

 of course /usr/local/sbin/apachectl configtest says the config file is OK.

 What am I missing here ?

deny from all.

Unless I'm reading it wrong, you're denying access to that directory for
everyone.  There's no allow from ... statement.

-philip


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


Apache config question

2004-06-16 Thread LW Ellis
Ok I installed Apache and when I try to start apache I get
the following error message.
Could not determine services fully qualified domain name, 
using 127.0.0.1 for service name.
apache_1.3.29 HTTPD could not be started.

I am on DSL (not static) and have a netgear router, which functions
as a DHCP server.
Do I have my network card configured wrong or is it something else.

Later, 
Leon
A fanatic is one who can't change his mind and won't change the subject.
Sir Winston Churchill
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache config question

2004-06-16 Thread Kjell Midtseter
On 16 Jun 2004 at 0:50, LW Ellis wrote:

 Ok I installed Apache and when I try to start apache I get
 the following error message.
 Could not determine services fully qualified domain name, 
 using 127.0.0.1 for service name.
 apache_1.3.29 HTTPD could not be started.
 
 I am on DSL (not static) and have a netgear router, which functions as
 a DHCP server. Do I have my network card configured wrong or is it
 something else.
 
Try editing /usr/local/etc/apache/httpd.conf
What is your ServerName?

Kjell


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


Re: Apache config question

2004-06-16 Thread LW Ellis
Kjell, 
Thanx that cleared up the error message.
Now I get httpd cannot start.
What did I do wrong.
Leon

  - Original Message - 
  From: Kjell Midtseter 
  To: LW Ellis 
  Sent: Wednesday, June 16, 2004 3:20 AM
  Subject: Re: Apache config question


  On 16 Jun 2004 at 2:07, LW Ellis wrote:


   
   What do you mean by server name???
   New to unix, mostly a windows guy.
   - Original Message - 
   From: Kjell Midtseter 
   To: LW Ellis 
   Cc: [EMAIL PROTECTED] 
   Sent: Wednesday, June 16, 2004 1:47 AM
   Subject: Re: Apache config question
   
   On 16 Jun 2004 at 0:50, LW Ellis wrote:
   
Ok I installed Apache and when I try to start apache I get
the following error message.
Could not determine services fully qualified domain name, 
using 127.0.0.1 for service name.
apache_1.3.29 HTTPD could not be started.

I am on DSL (not static) and have a netgear router, which functions
as a DHCP server. Do I have my network card configured wrong or is
it something else.

   Try editing /usr/local/etc/apache/httpd.conf
   What is your ServerName?
   
  If I look in my inetd.conf I find the following:


  # ServerName allows you to set a host name which is sent back to clients for
  # your server if it's different than the one the program would get (i.e., use
  # www instead of the host's real name).
  #
  # Note: You cannot just invent host names and hope they work. The name you 
  # define here must be a valid DNS name for your host. If you don't understand
  # this, ask your network administrator.
  # If your host doesn't have a registered DNS name, enter its IP address here.
  # You will have to access it by its address (e.g., http://123.45.67.89/)
  # anyway, and this will make redirections work in a sensible way.
  #
  # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your 
  # machine always knows itself by this address. If you use Apache strictly for 
  # local testing and development, you may use 127.0.0.1 as the server name.
  #
  ServerName www.la3sg.net


  If you have not done any editing, the ServerName is commented out.
  In that case I believe you will receive your error message.


   Kjell
   

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


Re: Apache config question

2004-06-16 Thread Lee Ellis
The message I get is:
httpd cannot start
I cannot find the file you mention.
There is no apache dir. there
usr/local/etc/apache has no error log

 
 !DSPAM:40d111b0915279889095524!

 LW:

 What is the output of: /usr/local/apache/bin/apachectl start

 Also, paste the output of:  tail -10 /usr/local/apache/logs/error_log

 -Matt

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