CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)


 
Thread Tools Search this Thread
Top Forums Web Development CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found)
# 1  
Old 12-05-2012
PHP 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:

Code:
H:/root/web

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
Code:
httpd -v

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
Code:
IP-of-the-target/cgi-bin/cgitest

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:

Code:
): No such file or directory.

Also if I try to run the script from the sh console with
Code:
./testcgi

I get
Code:
-sh: ./testcgi.sh: not found

or if I do the full path with
Code:
/root/web/cgi-bin/testcgi.sh

I still get "not found"

So I am completely stuck here, need you help please.

Oh and I checked some articles about httpd like:
Using the busybox HTTP server - ChumbyWiki
http://wiki.openwrt.org/doc/howto/http.httpd

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)
# 2  
Old 12-14-2012
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

New Responsive 404 Page for UNIX.com

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)
Discussion started by: Neo
2 Replies

2. Web Development

New "Page Not Found" (404) Page

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)
Discussion started by: Neo
0 Replies

3. UNIX for Advanced & Expert Users

Spacewalk repodata/repomd.xml [Errno 14] HTTP Error 404 - Not Found

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)
Discussion started by: James0806
0 Replies

4. Red Hat

HTTP/1.1 404 Not Found error in Web Server

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)
Discussion started by: hridan
1 Replies

5. Red Hat

Cant update yum what so ever [Errno 14] HTTP Error 404 - Not Found

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)
Discussion started by: ApacheOmega
2 Replies

6. Shell Programming and Scripting

Simple grep is not working properly on busybox

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)
Discussion started by: prvnrk
5 Replies

7. Shell Programming and Scripting

Perl CGI : unable to download the excel sheet from perl cgi page

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)
Discussion started by: scriptscript
2 Replies

8. Shell Programming and Scripting

How to pass data from server (CGI script) to client (html page)

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)
Discussion started by: naamabm
0 Replies

9. UNIX for Advanced & Expert Users

linux reverse page order+duplex is not working

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)
Discussion started by: uttamhoode
0 Replies
Login or Register to Ask a Question