Results 21 to 28 of 28
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
11-26-2012 #21
- Join Date
- May 2011
- Posts
- 4,353
Code:The requested URL /search/cgi-bin/search.py was not found on this server. Apache/2.2.14 (Ubuntu) Server at localhost Port 80
Code:sudo cp /var/www/search/search.py /usr/lib/cgi-bin
Code:chmod +x /usr/lib/cgi-bin/search.py
-
12-13-2012 #22
- Join Date
- Sep 2012
- Posts
- 15
Alright, so I executed the commands and that went fine. Then I tried "localhost/search/Search.html" (And yeah I did mean to say "Search.html") and that also worked.
The problems I ran into were when I tried to use the search engine. It looks like "Search.html" submitted the text to "/search/cgi-bin/search.py" even though it say's <form action="/cgi-bin/search.py" method="POST">
When I searched something I got:
Not Found
The requested URL /search/cgi-bin/search.py was not found on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
Its also weird how "localhost/cgi-bin/" receives:
Forbidden
You don't have permission to access /cgi-bin/ on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
and localhost/cgi-bin/hello.pl receives:
Hello from /usr/lib/cgi-bin/hello.pl
-
12-13-2012 #23
- Join Date
- May 2011
- Posts
- 4,353
That is odd. On my Ubuntu box, that same Search.html page sends the form correctly to /cgi-bin/search.py (which is /usr/lib/cgi-bin/search.py). Now the search.py script itself has problems, b/c the browser throws up a 500 Internal Server Error, so the search engine doesn't even work for me, but it does not sound like that is your problem.
Is there anything helpful in the apache log?
Its also weird how "localhost/cgi-bin/" receives:
Forbidden
You don't have permission to access /cgi-bin/ on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80
and localhost/cgi-bin/hello.pl receives:
Hello from /usr/lib/cgi-bin/hello.pl
-
12-14-2012 #24
- Join Date
- Sep 2012
- Posts
- 15
It looks like the Apache2 access log file returned this (below) after requesting localhost/search/cgi-bin/search.py
::1 - - [13/Dec/2012:21:42:36 -0500] "GET /favicon.ico HTTP/1.1" 404 501 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:42:38 -0500] "POST /search/cgi-bin/search.py HTTP/1.1" 404 505 "localhost/search/Search.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:42:39 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:42:47 -0500] "-" 408 0 "-" "-"
::1 - - [13/Dec/2012:21:46:38 -0500] "POST /search/cgi-bin/search.py HTTP/1.1" 404 506 "localhost/search/Search.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:46:38 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:47:10 -0500] "GET /favicon.ico HTTP/1.1" 404 501 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:47:13 -0500] "POST /search/cgi-bin/search.py HTTP/1.1" 404 505 "localhost/search/Search.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:47:13 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:47:21 -0500] "-" 408 0 "-" "-"
::1 - - [13/Dec/2012:21:50:47 -0500] "POST /search/cgi-bin/search.py HTTP/1.1" 404 506 "localhost/search/Search.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
::1 - - [13/Dec/2012:21:50:47 -0500] "GET /favicon.ico HTTP/1.1" 404 500 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/10.04 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19"
Okay I understand the "/cgi-bin/" thing now
-
12-14-2012 #25
- Join Date
- May 2011
- Posts
- 4,353
what about the error log? that one might have more helpful info.
-
12-14-2012 #26
- Join Date
- Sep 2012
- Posts
- 15
Yeah forgot to add that one in. Here's what it returned:
[Thu Dec 13 21:42:26 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.17 with Suhosin-Patch configured -- resuming normal operations
[Thu Dec 13 21:42:36 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Thu Dec 13 21:42:38 2012] [error] [client ::1] File does not exist: /var/www/search/cgi-bin, referer localhost/search/Search.html
[Thu Dec 13 21:42:39 2012] [error] [client ::1] File does not exist: /var/www/favicon.ico
Maybe i'm wrong but it looks like its searching for the cgi-bin inside the search folder.
-
12-14-2012 #27
- Join Date
- May 2011
- Posts
- 4,353
-
01-31-2013 #28
- Join Date
- Sep 2012
- Posts
- 15
Sorry I have not replied in a while, I had some computer problems. I executed the command and received:
<form action="/cgi-bin/search.py" method="POST">