CGI not working with httpd server on busybox 1.15.0 on ltib Linux 2.6.34 (404 page not found) | Unix Linux Forums | Web Programming

  Go Back    


Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

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

Web Programming


Tags
httpd busybox cgi script linux

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-05-2012
Roboserg Roboserg is offline
Registered User
 
Join Date: Dec 2012
Last Activity: 15 January 2013, 1:59 AM EST
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Sponsored Links
    #2  
Old 12-14-2012
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 22 September 2014, 5:23 PM EDT
Location: Southern NJ, USA (Nord)
Posts: 4,413
Thanks: 8
Thanked 540 Times in 518 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ash busybox read command not working inside function.... tesser Shell Programming and Scripting 8 08-23-2012 12:12 PM
How to pass data from server (CGI script) to client (html page) naamabm Shell Programming and Scripting 0 08-22-2010 10:18 AM
linux reverse page order+duplex is not working uttamhoode UNIX for Advanced & Expert Users 0 06-02-2008 06:06 AM
CGI: refresh page and timeout man Shell Programming and Scripting 0 03-01-2005 01:53 PM



All times are GMT -4. The time now is 02:19 AM.