http://192.168.2.3/jhp/examples/index.html shows up fine
http://192.168.2.3/jhp/examples/ht1.jhp Access forbidden! You don't have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact the webmaster <[EMAIL PROTECTED]>. Error 403 192.168.2.3 Sun Apr 8 09:59:27 2007 Apache/2.0.54 (Linux/SUSE) I tried to place the dirs in various places http://192.168.2.3/j601/addons/web/jhp/examples/index.html Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster <[EMAIL PROTECTED]>. Error 404 192.168.2.3 Sun Apr 8 10:02:07 2007 Apache/2.0.54 (Linux/SUSE) 2007/4/8, Oleg Kobchenko <[EMAIL PROTECTED]>:
This is the output when you navigate directly to /cgi-bin/jhp.sh Now could you navigate to /jhp/examples/ht1.jhp And return the output of the same. Limit jhp.sh to (see comments for now) #!/bin/sh # export PATH_TRANSLATED=`echo $SCRIPT_NAME | sed -e 's|^/|/srv/www/htdocs/|'` export JPATHj601=/srv/www/j601 echo "Content-Type: text/plain" echo "" env # $JPATHj601/jconsole web/jhp/run "$PATH_TRANSLATED" $* --- Bj�rn Helgason <[EMAIL PROTECTED]> wrote: > ---------------------- jhp.sh > > #!/bin/sh > export PATH_TRANSLATED=`echo $SCRIPT_NAME | sed -e 's|^/|/srv/www/htdocs/|'` > export JPATHj601=/srv/www/j601 > echo "Content-Type: text/plain" > echo "" > env > $JPATHj601/jconsole web/jhp/run "$PATH_TRANSLATED" $* > $JPATHj601/jconsole web/jhp/run > /srv/www/j601/addons/web/jhp/examples/ht1.jhp $* > ~ > ------------------------------ http://192.168.2.3/cgi-bin/jhp.sh > > SERVER_SIGNATURE=<address>Apache/2.0.54 (Linux/SUSE) Server at > 192.168.2.3 Port 80</address> > > HTTP_KEEP_ALIVE=300 > HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) > Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16 > SERVER_PORT=80 > HTTP_HOST=192.168.2.3 > JPATHj601=/srv/www/j601 > DOCUMENT_ROOT=/srv/www/htdocs > HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7 > SCRIPT_FILENAME=/srv/www/cgi-bin/jhp.sh > REQUEST_URI=/cgi-bin/jhp.sh > SCRIPT_NAME=/cgi-bin/jhp.sh > HTTP_CONNECTION=keep-alive > REMOTE_PORT=2476 > PATH=/sbin:/usr/sbin:/sbin:/usr/sbin:/sbin:/usr/sbin:/home/bh/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin > PWD=/srv/www/cgi-bin > [EMAIL PROTECTED] > HTTP_ACCEPT_LANGUAGE=en-us,en;q=0.5 > PATH_TRANSLATED=/srv/www/htdocs/cgi-bin/jhp.sh > HTTP_ACCEPT=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,image/png,*/*;q=0.5 > REMOTE_ADDR=192.168.2.3 > SHLVL=1 > SERVER_NAME=192.168.2.3 > SERVER_SOFTWARE=Apache/2.0.54 (Linux/SUSE) > QUERY_STRING= > SERVER_ADDR=192.168.2.3 > GATEWAY_INTERFACE=CGI/1.1 > SERVER_PROTOCOL=HTTP/1.1 > HTTP_CACHE_CONTROL=max-age=0 > HTTP_ACCEPT_ENCODING=gzip,deflate > REQUEST_METHOD=GET > _=/usr/bin/env > Content-Type: text/plain > > <pre> > Not found /srv/www/htdocs/cgi-bin/jhp.sh > </pre> > <pre> > J error in /srv/www/htdocs/cgi-bin/jhp.sh > |domain error: toJ > | frun<CGIPATH_j_ > > </pre> > Content-Type: text/plain > > <pre> > Not found /srv/www/htdocs/cgi-bin/jhp.sh > </pre> > <pre> > J error in /srv/www/htdocs/cgi-bin/jhp.sh > |domain error: toJ > | frun<CGIPATH_j_ > > </pre> > > > ------------------------------------ > > 2007/4/8, Oleg Kobchenko <[EMAIL PROTECTED]>: > > > > I believe the CGI for Apache is not configured properly, > > because I don't see any of CGI variables in env output. > > > > See again in "Paths and Folders" at http://olegykj.sourceforge.net/jhp/ > > > > Paths can also be obtained from environment variables > > > > env 'SCRIPT_FILENAME' > > /home/groups/o/ol/olegykj/cgi-bin/jhp.sh > > env 'SCRIPT_NAME' > > /cgi-bin/jhp.sh > > env 'SCRIPT_URL' > > /jhp/ht6.jhp > > > > At least some of these must return values through evn > > for any CGI not just J cgi. > > > > Please read your Apache httpd config files. > > Does it have CGI disabled? Is there a parameter > > section for CGI? Etc. > > > > Make sure it's not FastCGI etc, put plain CGI. E.g. > > > > LoadModule cgi_module modules/mod_cgi.so > > > > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > > > > # > > # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased > > # CGI directory exists, if you have that configured. > > # > > <Directory "/var/www/cgi-bin"> > > AllowOverride None > > Options None > > Order allow,deny > > Allow from all > > </Directory> > > > > jhp.sh must reside in a cgi-bin folder, e.g. > > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" > > > > Also maybe you should try configuring for user > > home directory, not server. > > > > Anyway the configuration in config/.htaccess > > must be either in the main server config or > > local .htaccess. There are alternatives: > > ScriptAliasMatch or Rewrite... > > > > cgi-bin/jhp.sh must be read/exec for all, > > *.jhp must be read for all in chmod. > > > > But first get those env vars compliant for simple bash script. > > > > > Content-Type: text/plain > > > > is a red flag that CGI is not working properly: > > it should be treated as header, not plain text. > > What a minute: are you running it from shell? > > It should be run from Web Browser by navigative > > to the url: > > http://host/cgi-bin/env_test.sh > > > > > > --- Bj�rn Helgason <[EMAIL PROTECTED]> wrote: > > > > > I get this when I try to execute the example in the menu > > > > > > http://192.168.2.3/jhp/examples/menu.html > > > > > > *<li><a* href="#" onclick="v('ht1.jhp')"*>*Random Test*</a></li>* > > > > > > 192.168.2.3 - - [07/Apr/2007:16:48:29 +0000] "GET > > > /jhp/examples/viewsrc.jhp?ht1.jhp HTTP/1.1" 403 998 " > > > http://192.168.2.3/jhp/examples/menu.html" "Mozilla/5.0 (X11; U; Linux > > i686; > > > en-US; rv:1.7.10) Gecko/20050715 Firefox/1.0.6 SUSE/1.0.6-16" > > > > > > [Sat Apr 07 16:20:50 2007] [error] [client 192.168.2.2] client denied by > > > server configuration: /cgi-bin, referer: > > > http://192.168.2.3/jhp/examples/index.html > > > > > > Access forbidden! > > > > > > You don't have permission to access the requested object. It is either > > > read-protected or not readable by the server. > > > > > > If you think this is a server error, please contact the webmaster < > > [EMAIL PROTECTED]>. > > > > > > Error 403 192.168.2.3 > > > > > > Calling jhp.sh gets PATH_TRANSLATED empty > > > SCRIPT_NAME and SCRIPT_URL are not there > > > > > > I have put traces in the run.ijs but it does not seem to get called from > > the > > > menu.html > > > > > > > > > > > > > > > Content-Type: text/plain > > > > > > LESSKEY=/etc/lesskey.bin > > > > > MANPATH=/usr/share/man:/usr/local/man:/usr/X11R6/man:/opt/gnome/share/man > > > INFODIR=/usr/local/info:/usr/share/info:/usr/info > > > NNTPSERVER=news > > > HOSTNAME=linux > > > XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB > > > GNOME2_PATH=/usr/local:/opt/gnome:/usr > > > TERM=xterm > > > SHELL=/bin/bash > > > HOST=linux > > > HISTSIZE=1000 > > > PROFILEREAD=true > > > QTDIR=/usr/lib/qt3 > > > USER=root > > > JRE_HOME=/usr/lib/jvm/jre > > > GROFF_NO_SGR=yes > > > JPATHj601=/srv/www/j601 > > > > > > > > LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: > > > XNLSPATH=/usr/X11R6/lib/X11/nls > > > HOSTTYPE=i386 > > > FROM_HEADER= > > > PAGER=less > > > XDG_CONFIG_DIRS=/usr/local/etc/xdg/:/etc/xdg/:/etc/opt/gnome/xdg/ > > > MINICOM=-c on > > > > > > > > PATH=/sbin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin > > > CPU=i686 > > > JAVA_BINDIR=/usr/lib/jvm/jre/bin > > > PWD=/srv/www/cgi-bin > > > INPUTRC=/etc/inputrc > > > JAVA_HOME=/usr/lib/jvm/jre > > > LANG=POSIX > > > PYTHONSTARTUP=/etc/pythonstart > > > PATH_TRANSLATED= > > > TEXINPUTS=:/root/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX > > > HOME=/root > > > SHLVL=2 > > > OSTYPE=linux > > > LESS_ADVANCED_PREPROCESSOR=no > > > XCURSOR_THEME=crystalwhite > > > LS_OPTIONS=-a -N --color=tty -T 0 > > > WINDOWMANAGER=/usr/X11R6/bin/kde > > > GTK_PATH=/usr/local/lib/gtk- 2.0:/opt/gnome/lib/gtk-2.0:/usr/lib/gtk-2.0 > > > LOGNAME=root > > > MACHTYPE=i686-suse-linux > > > LESS=-M -I > > > ACLOCAL_FLAGS=-I /opt/gnome/share/aclocal > > > LC_CTYPE=en_GB.UTF-8 > > > > > > > > XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/etc/opt/kde3/share/:/opt/kde3/share/:/opt/gnome/share/ > > > LESSOPEN=lessopen.sh %s > > > PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig:/opt/gnome/share/pkgconfig > > > INFOPATH=/usr/local/info:/usr/share/info:/usr/info:/opt/gnome/share/info > > > DISPLAY=:0.0 > > > LESSCLOSE=lessclose.sh %s %s > > > G_BROKEN_FILENAMES=1 > > > XAUTHORITY=/root/.xauth1r0iDn > > > COLORTERM=1 > > > JAVA_ROOT=/usr/lib/jvm/jre > > > _=/usr/bin/env > > > linux:/srv/www/cgi-bin # > > > > > > I guess I need to get a trace into menu.html or index.html the logs do > > not > > > tell me much > > > > > > > > > 2007/4/7, Oleg Kobchenko <[EMAIL PROTECTED]>: > > > > > > > > Yes, it's better to get the JHP addons folder > > > > cleaned up and re-installed, and the profile to > > > > restore from J installation. There aren't any other > > > > dependensies for basic screens. > > > > > > > > The error messages are informative so far. > > > > Also you can check the apache httpd log file, > > > > it should capture stderr. > > > > > > > > If it says 'Not Found', see the sections in Configuration doc > > > > about Troubleshooting, esp. $SCRIPT_URL vs $SCRIPT_NAME > > > > and system/main/break.ijs. > > > > > > > > See how the path to script is passed using simple bash CGI: > > > > > > > > #!/bin/sh > > > > echo "Content-Type: text/plain" > > > > echo "" > > > > env > > > > exit > > > > > > > > > > > > --- Bj�rn Helgason <[EMAIL PROTECTED]> wrote: > > > > > > > > > I actually installed Linux/J/JAL and everything new yesterday. > > > > > > > > > > Since then I got more working than before - like I did never get CGI > > > > before > > > > > now working. > > > > > > > > > > I did not patch the profile now because I noticed that instruction > > > > missing. > > > > > > > > > > I also nticed that the CGI examles from earlier are missing in > > JAL - I > > > > was > > > > > looking for them. > > > > > > > > > > I have tried to put J601 and JHP in various places so something > > migth be > > > > > messed up as it is. > > > > > > > > > > The instructions have been loking a bit confusing to me being new to > > > > apache > > > > > but I am beginning to get the hang of it. > > > > > > > > > > I am not sure what to do next > > > > > > > > > > Should I throw everything out again and start al over one more time? > > > > > Somewhere I can look to see what is happening in JHP? > > > > > > > > > > 2007/4/7, Oleg Kobchenko <[EMAIL PROTECTED]>: > > > > > > > > > > > > These examples show the old way to run JHP, > > > > > > which required patching profile.ijs. > > > > > > > > > > > > Currently supported version is the one that > > > > > > comes with the latest JAL. Please install and > > > > > > configure as descirbed in the Help files and > > > > > > in the config folder. > > > > > > > > > > > > See http://olegykj.sourceforge.net/jhp/ for latest demo. > > > > > > > > > > > > > > > > > > --- Bj�rn Helgason <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > I have spent some time on geting jhp working > > > > > > > I have got cgi working and am beginning to get the ang of what > > goes > > > > > > where > > > > > > > but there are many loose ends > > > > > > > > > > > > > > [Sat Apr 07 11:24:56 2007] [error] [client 192.168.2.2] client > > > > denied by > > > > > > > server configuration: /cgi-bin, referer: > > > > > > > http://192.168.2.3/jhp/examples/index.html > > > > > > > > > > > > > > http://192.168.2.3/jhp/examples/index.html > > > > > > > > > > > > > > Shows up fine but when I try to try the test cases > > > > > > > Access forbidden! > > > > > > > > > > > > > > You don't have permission to access the requested object. It is > > > > either > > > > > > > read-protected or not readable by the server. > > > > > > > > > > > > > > If you think this is a server error, please contact the > > webmaster < > > > > > > [EMAIL PROTECTED]>. > > > > > > > > > > > > > > Error 403 192.168.2.3 > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > #!/bin/sh > > > > > > > echo "Content-type: text/plain" > > > > > > > echo "" > > > > > > > echo "Username="`whoami` > > > > > > > > > > > > > > export JPATHj601=/srv/www/j601 > > > > > > > $JPATHj601/jconsole /srv/www/htdocs/jhp/examples/ht1.jhp > > > > > > > > > > > > > > gives me > > > > > > > > > > > > > > Username=wwwrun > > > > > > > |value error: ContentType > > > > > > > | <% ContentType'text/html'[Expires 0%> > > > > > > > |[-0] /srv/www/htdocs/jhp/examples/ht1.jhp > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------------------- > > > > > > > > > > > > > > http://192.168.2.3/cgi-bin/showuser2.cgi > > > > > > > > > > > > > > Username=wwwrun > > > > > > > TEST0 ======================================== > > > > > > > 3 : 0]0 > > > > > > > println '<h1>Test</h1>' > > > > > > > ) > > > > > > > > > > > > > > TEST1 ======================================== > > > > > > > 3 : 0]0 > > > > > > > print '<h1>' > > > > > > > print 'Test' > > > > > > > println '</h1>' > > > > > > > ) > > > > > > > > > > > > ____________________________________________________________________________________ > > Now that's room service! Choose from over 150,000 hotels > > in 45,000 destinations on Yahoo! Travel to find your fit. > > http://farechase.yahoo.com/promo-generic-14795097 > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > -- > Bj�rn Helgason, Verkfr��ingur > Fugl&Fiskur ehf, �erneyjarsund 23, Box 127 > 801 Gr�msnes ,t-p�st: [EMAIL PROTECTED] > Skype: gosiminn, gsm: +3546985532 > Landslags og skr��gar�ager�, gr�fu�j�nusta > http://groups.google.com/group/J-Programming > > > T�knikunn�tta h�ndlar hi� fl�kna, sk�punarg�fa er meistari einfaldleikans > > g��ur kennari getur stigi� � t�r �n �ess a� glansinn fari af sk�num > /|_ .-----------------------------------. > ,' .\ / | Me� l�ttri lund ver�ur | > ,--' _,' | Dagurinn � dag | > / / | Enn betri en g�rdagurinn | > ( -. | `-----------------------------------' > | ) | (\_ _/) > (`-. '--.) (='.'=) > `. )----' (")_(") > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ____________________________________________________________________________________ Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. http://farechase.yahoo.com/promo-generic-14795097 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Björn Helgason, Verkfræðingur Fugl&Fiskur ehf, Þerneyjarsund 23, Box 127 801 Grímsnes ,t-póst: [EMAIL PROTECTED] Skype: gosiminn, gsm: +3546985532 Landslags og skrúðgarðagerð, gröfuþjónusta http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) `. )----' (")_(")
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
