CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)
I have some industrial ARM linux board with 2.6.34 Linux on it with Busybox
v1.15.0.
The https.conf is located in /etc/ and contains:
In the www directory I also have 'cgi-bin' folder with chmod 777 and in that folder a file called 'testcgi'.
Now I start the server with
on the target. I can access the index.html by typing the IP of the target from my host. But If I want to execute my cgi script by calling
in the browser I get "404 page not found".
I also tried to put some directives in my https.conf like A:* or /root/web/cgi-
bin:foo:bar but then if I try to run the server in the console I get:
Also if I try to run the script from the sh console with
I get
or if I do the full path with
I still get "not found"
So I am completely stuck here, need you help please.
and they don't tell anything about turning the CGI on,
imlplying the CGI should work on httpd by default.CGI not working with httpd server on busybox 1.15.0 on ltib linux 2.6.34 (404 page not found)
One very informative trick is to put an strace on the server and see what it is doing with the request in terms of system calls when you hit it once. If there is a daemon process, you use -p and the pid, else use a wrapper that inetd can call. Heap on the options: -faelo log_file.tr -rall -wall Hopefully, your cgi is executable to the daemon user/group and has any necessary #! if scripted.
Just created (actually, only modified... it was created by ShoutOut) a new responsive 404 "not found" page with the help of ShoutOut free templates.
https://www.unix.com/status/404.html
Same for 401 and 403 errors.
Picture sans animation:
... (2 Replies)
Made some changes to the forum, so when a page is not found and generates a 404 error, the site redirects to "Today's Posts" page and added a "Not Found" message:
<?php
header('HTTP/1.0 404 Not Found', true, 404);
header("Location: https://www.unix.com/search.php?do=getdaily&redirect=404");... (0 Replies)
I Configured spacwalk 2.7 and synchronized the channels as the root FS was and the server was unresponsive through gui i deleted the cache in /var/cache/rhn & /var/cache/yum and ran yum clean all on the server as well as spacewalk client i could see the following error
Loaded plugins: rhnplugin... (0 Replies)
I am running 2 jboss instances with ports 8585 and 8686 in my web server.
Now trying to get header using the command
curl -s --connect-timeout 360 -m 360 --head http: // localhost:8686/ then i get the following error
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0... (1 Reply)
Hello!!!
I am so frustrated I'm about to snap!!!
I cant hear any sound in Firefox or re-install Chrome.
Every time I try to do anything with YUM inside my terminal (like update or install) I keep getting this error:failure: repodata/repomd.xml from virtualbox: No more mirrors to try.
I... (2 Replies)
Hi,
I'm trying to write shell scripts on busybox bash on windows and grep is not working for simple regular expression like
$ grep FEN *
bash: grep: Invalid argument
but the same grep works fine if use the single file instead of asterisk
$ grep FEN test
$
Am I doing something... (5 Replies)
Hi All,
I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet.
I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet.
print "<center><table... (2 Replies)
Hi
I know how to pass data from client side (html file) to server using CGI script (POST method).
I also know how to re-create the html page from server side after receiving the data (using printf).
However I want to write static pages on client side (only the structure), and only to pass... (0 Replies)
hi all,
i have a postscript file with duplex print commands. When i print it with
lpr command it prints in duplex.
lpr -pprintername filename.ps
but when i try to print the pages in reverse order with -outputorder=reverse
it is not printing in reverse order (but pages are prited... (0 Replies)