[users@httpd] Re: Thanks for your response

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The reason is that httpd.conf has a directive
ScriptAlias /usr/local/apache2/cgi-bin /cgi-bin/
which makes that cgi-bin and try this
change the conf file, like this
ScriptAlias /usr/local/apache2/cgi-bin /something/
and restart apache or give it a HUP (killall -HUP httpd)
Now you will hit it at http://localhost/something/test-cgi

The error is due to permissions - the file should be executable by the user apache is running as. So if you have apache running as apache user the file should have executable for that user.

HTH
Aman Raheja

PS: Try to respond back in a way so that it goes to the mailing list (use Reply All).


Larry Owens wrote:

Thank you, that was the access problem.  Having to put the /cgi-bin,
e.g. http://localhost/cgi-bin/test-cgi, in the path surprised me because
to access an html file, it is not necessary to put /htdocs, e.g.
http://localhost/htdocs/example.html, in the path.  That is
http//localhost/example.html works OK and including /htdocs does not.

One more problem, if you have the time.  Once the test-cgi is found, the
servers prints "Internal Server Error".  The error log is shown below.
The path is correct.  The file, test-cgi, is the test file that was
included with the install.  The error is "Permission denied".  Is there
some permission, in Debian Linux, required for a server to access a cgi
file?
[Mon Apr 04 12:09:01 2005] [error] [client 127.0.0.1] (13)Permission
denied: exec of '/usr/local/apache2/cgi-bin/test-cgi' failed
[Mon Apr 04 12:09:01 2005] [error] [client 127.0.0.1] Premature end of
script headers: test-cgi
[Mon Apr 04 12:09:01 2005] [error] [client 127.0.0.1] File does not
exist: /usr/local/apache2/htdocs/favicon.ico


On Mon, 2005-04-04 at 08:52 -0500, Aman Raheja wrote:
It looks like you are accessing the script incorrectly.
You are doing

http://server-ip/test-cgi

but you should be doing

http://server-ip/cgi-bin/test-cgi

NOTE the cgi-bin there.
HTH
Regards
-Aman Raheja

Larry Owens wrote:

I unsubscribed from the mailing list as I was getting many email
messages, all unrelated to the question.

The error log shows that the file does not exist.  Would this be the
error if permissions were wrong?  I don't know what file "favicon.ico"
is.

[Sun Apr 03 22:44:54 2005] [error] [client 127.0.0.1] File does not
exist: /usr/local/apache2/htdocs/test-cgi
[Sun Apr 03 22:44:54 2005] [error] [client 127.0.0.1] File does not
exist: /usr/local/apache2/htdocs/favicon.ico


On Sun, 2005-04-03 at 23:29 -0500, Aman Raheja wrote:


what does the error log show?
it could be a permissions issue.
HTH

- Aman

Larry Owens wrote:

I installed default build and install of apache2 under Debian linux
on a


pc.  The server displays an html document from /htdocs OK but can not
find test-cgi in /cgi-bin.  The browser error is "Not Found.  The
requested URL /test-cgi was not found on this server."

Any suggestions would be appreciated.  My first install.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.


See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
"   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx















--

Regards
Aman Raheja
http://www.techquotes.com



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux