Unix/Linux 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

httpd busybox cgi script linux

Thread Tools Search this Thread Display Modes
Old Unix and Linux 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

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
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

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:

): No such file or directory.

Also if I try to run the script from the sh console with

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

or if I do the full path with

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

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
Old Unix and Linux 12-14-2012
DGPickett DGPickett is offline Forum Advisor  
Registered User
Join Date: Oct 2010
Last Activity: 1 February 2016, 3:35 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,673
Thanks: 8
Thanked 587 Times in 560 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 07:58 AM.