Motion - Support Question 2006x 05x 27x 123932

Getting nph-mjprox to run


Thanks for your reply to question 2006x05x23x092215. Sorry to bother you again, I can't get the nph-mjprox to work. In your applet snippet, you state cambozolar6.jar, I believe the 6 is not required as it is not in the cambozola dist. Motion is streaming on 8081 ok, but cambozola apparently can't connect to nph-mjprox? The cambozola works fine directly without the mj-prox.

/*  running motion */
server:~# motion -c /etc/motion/indoor.conf
[0] Processing thread 0 - config file /etc/motion/indoor.conf
[0] Thread is from /etc/motion/indoor.conf
[1] Thread started
[0] motion-httpd/3.2.6 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 9080
[1] Started stream webcam server in port 8081

/* nph-mjprox.c  on the same server as motion */
#define IPADDR "" /* IP address of motion server, = localhost */
#define PORTBASE 8080      /* If your camera 1 is on port 8081 set this to one lower = 8080 */
#define UPPERCAMERANUMBER 13  /* Set this to your upper limit of cameras */

/*java console */
Java(TM) Plug-in: Version 1.4.2
Using JRE version 1.4.2-03 Java HotSpot(TM) Client VM
User home directory = /root
// Cambozola V0.68-0041 (c) Andy Wilcock, 2006
// Build date: 19-February-2006 11:34:AM
// Available from
 /*--- lot of garbled special characters ---*/
..Failed to connect to server (denied?)

/* /kabi/cam.html  */
<applet code=com.charliemouse.cambozola.Viewer archive=cambozola.jar 
width=320 height=240><param name=url value="/kabi/nph-mjprox?1"> </applet>'


Motion version: 3.2.6
ffmpeg version: none
Server OS: Debian 3.1 Sarge, 2.6.8

-- JensBoegenhold - 27 May 2006


Is /kabi your cgi directory?

Either you need to put nph-mjprox in the real cgi directory (often called cgi-bin) or you need to setup Apache to see the kabi directory as a cgi directory with a scriptalias setting in httpd.conf.

Try and move it to cgi-bin and use /cgi-bin/nph-mjprox?1 instead.

-- KennethLavrsen - 27 May 2006
Topic revision: r2 - 27 May 2006, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.