Pointing ItunesU.class to a cgi-bin directory.

Our school is setting up an ITuneU page and we have successfully compiled the ITunesU.class file but for some reason our web server does not have a cgi-bin directory to put these files into. Can we put the Java files into a different directory or is cgi-bin required?

Our Itunes university is up and running.

Similar Messages

  • Java ITunesU within cgi-bin

    I am unable to run the shell script that contains:
    java ITunesU
    within the cgi-bin directory. We are currently using SUSE Linux.
    We are able to run this on the command line and can tell that it generates HTML.
    When trying to run with the url: http://oes.tiu.edu/cgi-bin/itunesu
    we get the following message:
    Error 500
    Error message:
    Premature end of script headers: itunesu
    Has anyone successfully implemented the java version of authentication?

    First Time i'm getting this error before this (from last 7 months) i didn't get any error.....nothing is install new everything is same.....

  • Apache, virtual hosts & cgi-bin

    Hello all,
    I have an AL server running apache, qmail, vpopmail (&mysql), bincimap, squirrelmail.
    I've setup apache to have 2 virtual hosts :
    www.mydomain.com (with docroot /home/httpd/html/www.mydomain.com) as http & mail.mydomain.com (with docroot /home/httpd/html/mail.mydomain.com) as https.
    Everything is working fine so far, except when I ask for http://mail.mydomain.com (not https) it shows the contents of www.mydomain.com. Minor annoyance, but I'd like to fix it some time. Any suggestions ?
    My main problem is that I want to install qmailadmin in mail.mydomain.com, so I can access it via ssl, so I installed it as /home/httpd/cgi-bin/qmailadmin & made a symlink to /home/httpd/html/mail.mydomain.com/cgi-bin.
    When I try to access it (https://mail.mydomain.com/cgi-bin/qmailadmin), I get "500 Internal server error" & in error_log:
    [error] [client MY_IP] Premature end of script headers: qmailadmin
    and in ssl_request_log :
    [14/Jan/2004:17:00:45 +0200] MY_IP TLSv1 RC4-MD5 "GET /cgi-bin/qmailadmin HTTP/1.1" 674
    I've never setup cgi-bin in virtual hosts before & it's driving me nuts, any suggestions ?
    btw, qmailadmin works fine on my home server without any virtual hosts in apache...

    This isn't perfect, but it's probably pretty close to what you're looking for.  You may need to play around with some <Directory/> tags for your cgi-bin directory, or (as the example illustrates below), just put your cgi scripts in the document root for mail.mydomain.com.
    <Directory "/home/httpd/html/www.mydomain.com">
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>
    <Directory "/home/httpd/html/mail.mydomain.com">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
    </Directory>
    NameVirtualHost 192.168.1.114:80
    NameVirtualHost 192.168.1.114:443
    <VirtualHost www.mydomain.com:80>
    SSLDisable
    Servername www.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/www.mydomain.com
    DirectoryIndex index.html index.htm index.cgi
    ErrorLog logs/www.mydomain.com_error.log
    CustomLog logs/www.mydomain.com_access.log combined
    </Virtualhost>
    # redirect 80 to 443
    <VirtualHost mail.mydomain.com:80>
    SSLDisable
    Servername mail.mydomain.com
    Redirect / https://mail.mydomain.com
    </Virtualhost>
    <VirtualHost mail.mydomain.com:443>
    SSLEnable
    SSLCertificateFile /home/httpd/conf/mail.mydomain.com.pem
    ServerName mail.mydomain.com
    ServerAdmin [email protected]
    DocumentRoot /home/httpd/html/mail.mydomain.com
    ErrorLog logs/mail.mydomain.com_error.log
    CustomLog logs/mail.mydomain.com_access.log combined
    </Virtualhost>
    hth,
    farphel

  • Why is cgi-bin special?

    I have a server side perl script running in the cgi-bin
    directory that returns html to the client. It embeds a flash object
    with the standard &lt;object&gt; and &lt;embed&gt;
    tags. The HTML is received correctly by the client, but the flash
    object does not display.
    If you save the received page as static html, it displays
    just fine, so the syntax is correct. Obviously saved someplace
    other than the cgi-bin directory, as it is not readable, generally.
    Once the html is returned to the client, how can the
    rendering be different from a static html page? I'm saying that if
    you do &quot;view source&quot;, once from the returned html
    and once from the static page, you see no differences, whatsover.
    The only difference is the URL of the page. When
    &quot;cgi-bin&quot; is in the URL, the object does not
    display.

    Thanks, Barbara! That did the trick. I was in expert mode but I clicked on 'guided' then clicked on 'expert' again and it showed up.

  • Webgate installation - not able to find .cgi file in bin directory

    Hi friends,
    I am trying to install webgate on ohs server (after webpass installation). But as told in installation document for webgate, we need to configure the webgate by giving relative path to dll or cgi file in bin directory.
    But when I tried to search .cgi file in bin directory, there is no cgi file there, there is only webgate.dll file.
    Please tell me what exactly is the issue I am facing here?
    Thanks in Advance,
    Amit

    Hi,
    Let me know which document you are following. While installing webgate, we need to provide the path configuration file of webserver. In your case, it is httd.conf.
    Regards
    GK Goalla

  • Cgi-bin folder in 10.4.11

    I'm running 10.4.11 (the regular edition, not server) and I'm running a small website through the personal web sharing feature. I want to integrate a perl script. Do I create a cgi-bin folder in the root folder of my website and put the script in there, or is the cgi-bin folder I'm looking for elsewhere? Thanks.

    So where is the apache config file?
    /etc/httpd/httpd.conf
    Also, by main web content directory, do you mean the root folder of my website, the folder that you mentioned above, or some other folder?
    I mean whatever folder you're using for your web content - by default that's either /Library/WebServer/Documents, or the 'Sites' directory in individual user's home directories.
    My point is that any CGI scripts should be outside of the normal web content.

  • Where is /cgi-bin/ and who puts files in it?

    One of my clients is trying to make a form work with /cgi-bin/mailto but I can't figure out:
    1) Where is the global /cgi-bin/ supposed to be?
    2) Who is responsible for putting files in it?
    Thanks!

    If you wan't to make the CGIs work server-wide, the default location is /Library/WebServer/CGI-Executables. The default web server setting already has a ScriptAlias directive pointing any address written as www.example.com/cgi-bin redirect to this directory. The global webmaster... the server administrator is responsible for all CGIs in this directory.
    If you want to let each individual webmasters take care of their own CGIs, each website can override this by creating their own cgi directory within their own web directory. This directory can be named anything (e.g. "/scripts/"). Generic form-to-mail type CGIs are usually placed in the /Library/Web... directory for global usage, but if a script is only used by a single website, it's usually put inside their own web directory. You may want to tweak their httpd.conf file to assign this folder as the ScriptAlias target. When you do this, websites can execute the CGIs with the .cgi extension (i.e. pass the script on to whatever compiler/interpretor, like perl). Otherwise, you'll need to name each script like scriptname.pl or scriptname.c instead of scriptname.cgi.
    Extended Keyboard Server   Mac OS X (10.4.8)  

  • Java.exe problems. - can't run without class being placed in bin

    this is weird, but it's happened to me before. Something on my pc isn't letting me run my class files unless I actually place them in the bin directory under jdk1.3.1_02.
    what's the deal?
    I've checked my env. variables, but I don't know if I have them wrong or what.
    Can someone please help?!
    c:\ java Client
    Exception in thread "main" java.lang.NoClassDefFoundError: Client
    Sam

    Actually I would bet money all he needs is the classpath statment such as I directed a few posts up..
    He needs the period at the end to tell the java interpeter to search the present directory...
    Most of you are mistakeing his questions. If the compiler could not find the class files it wouldn't compile. Since he said he get's the error when:
    c:\ java Client
    Exception in thread "main" java.lang.NoClassDefFoundError: Client
    Tells me that he wrote a program called Client and the interpeter can't find his compiled class file..
    Because the class path variable isn't set to present directory (the piriod) I had this same problem the first time I installed java.. It drove me nuts. I spent 2 months programming out of the bin directory before I found the classpath statment.. hehe (hey we were all beginners once)
    Gehan
    Ps. If you want convermation on what I said go read the link I posted on classpath statments

  • Applets can be viewed only from the bin directory

    My applets show up in the browser only when the class file and the html are both in the bin directory. When I move them to any other directory the applet stops showing up on the html page. Any pointers?

    nimonika wrote:
    My applets show up in the browser only when the class file and the html are both in the bin directory. When I move them to any other directory the applet stops showing up on the html page. Any pointers?Post an URL to the broken applet.
    As an aside, this has more to do with applets, than Swing. So in future you might post questions to the forum for [Java Applet Development|http://forums.sun.com/forum.jspa?forumID=421]. But please, whatever you do, do not post this question in the JAD forum now. If need be, the thread can be moved by a moderator.

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • Executing cgi-bin from a java program

    I am trying to develop a Java HTTP server that also includes support for CGI-BIN but the last weeks i am stack at the same point ! I am trying to execute the cgi and then give it an argument but i never have an output ! Please help cause the deadline is coming near !!!
         //Set environment variables
    String[] setVar = {"REQUEST_METHOD=POST","CONTENT_LENGTH="+extra.length};
    String[] cgi = {"/bin/bash","./home/pap/jhttp"+Petition_Analysis.pt.uri.path,"/n"};
    //Execute the cgi-bin with the appropriate input
    Process cgiOut = Runtime.getRuntime().exec(cgi,setVar);
    // get its output (your input) stream
    DataOutputStream put = new DataOutputStream(cgiOut.getOutputStream());
    put.writeBytes(Petition_Analysis.pt.Pet_Body);
    DataInputStream in = new DataInputStream(cgiOut.getInputStream());
    // Read and print the output
    String line;
    StringBuffer page = new StringBuffer();
    while ((line = in.readLine()) != null) {
    page.append(line);
    //Send page to client
    out.print("HTTP/1.1 200 OK\r\n");
    out.print("Content-Length: " + page.toString().length() +"\r\n\r\n");
    System.out.print(page);
    Cgi call is like that:
    ./post_from.cgi
    first_operand=342&second_operand=32&operation=-
    Note that there is a blank line !

    Well no, the script works perfectly, here is the output of the console in Linux system and this exactly what i want to do in the program:
    [pap@laptop pap]$ export CONTENT_LENGTH=11
    [pap@laptop pap]$ export REQUEST_METHOD=POST
    [pap@laptop pap]$ /home/pap/jhttp/cgi-bin/post_form.cgi
    op1=1&op2=2
    Content-Type: text/html
    <html><head><title>Script results</title></head>
    <body>
    <p>Number of sent fields: 2</p>
    <p>
    <b>Field:</b> op1<br>
    <b>Valor:</b> 1
    </p>
    <p>
    <b>Field:</b> op2<br>
    <b>Valor:</b> 2
    </p>
    </body></html>
    So the question is how to this inside a Java program and better forget my code which is erroneous
    also forgive my english :)

  • Cgi-bin, form set-up

    I want to create a registry on our website wherein a customer can setup his/her own registry page, type in what products he/she wants, their quantities, etc.
    I understand that to do this one has first to have a "cgi-bin" file on their site to which all such forms point.
    I currently cannot find any cgi-bin folder on our site. So, am I correct in stating I need one, and if so, how do I go about creating same?
    Bill

    First you mention cgi processing of scripts and then databases? There is no necessary connection between the two.
    cgi form processing has largely been replaced by PHP or other server side languages. Again, there is no connection between PHP/ASP and server-side includes. You can have one without the other.
    You will have to find out from your host what they offer. You will also need to determine what it is that you want to do. Two separate yet equally important questions.

  • Using ADL when Application.xml and Content.swf are not in the BIN directory

    Hello, I am trying to use the air debug launcher (ADL) to
    launch a simple air app. My issue is I am trying to have ADL launch
    this app from outside of the bin directory of the SDK. Whenever I
    try to pass adl the full path to the Applicaiton.xml file it says
    "application descriptor not found" Does anyone know how to get
    around this? How can I run an AIR app that is outside of the bin?
    My situation C:\AIR has the Applicaiton.xml and Content.swf
    files, then a directory way below C:\Program Files\....\..... has
    the bin directory. I can run adl using its full path C:\Program
    Files\....\bin\adl, but when I pass it the full path for
    Application.xml it fails.
    By the way when I put everything in the bin, or below the bin
    it works just fine.

    If you're receiving this error message then the full path
    you're specifying for application.xml must be incorrect.

  • Video plays on Root folder but not in Cgi-bin folder...Help!

    Hello-
    I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain.  I do not understand why and need your help to figure it out since I am not a flash guy.
    Here is the link to the videos that are not working correctly.  http://www.healthywaterlife.com/cgi-bin/d.cgi/phil/videos.html
    My cgi guy says that all of the cgi is working correctly and he has stated that the problem lies within the code of the html.  So here is the html code for one of the videos...
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="605" height="350" id="FLVPlayer1">
               <param name="movie" value="FLVPlayer_Progressive.swf" />
               <param name="salign" value="lt" />
               <param name="quality" value="high" />
               <param name="scale" value="noscale" />
               <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" />
               <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" quality="high" scale="noscale" width="605" height="350" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />        
    </object>
    And yes, my server, codero, supports all of the cgi as the old domain worked well and was operating on the codero server.
    Thanks for your help!

    Are you sure that all the files have been uploaded?
    The player.swf, the skin.swf, the actual .flv video file, and what about any javascript files used for Flash detection? So that could be as many as 4 files.
    To test, paste the entire absolute address to each of those files directly into your browser address bar, like this:
    http://www.healthywaterlife.com/videos/FLVPlayer_Progressive.swf
    You should not see ANY file not found messages.
    After verifying that each file exists on the server, then it's only a matter of correctly pathing all the Flash assets, and pathing includes correctly spelling file names (upper or lower case.. must be exact) as well using correct folder names.
    To review Flash pathing:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    If that doesn't fix it, post a link. That really give us the best chance to help you.
    Best of luck!
    Adninjastrator

  • Servlets in the CGI-BIN

    Can servlets go in the CGI-BIN???
    my server has a CGI-BIN.... does it surport servlets??

    Servlets were conceived to replace cgi-bin programming.
    Servlets can be put anywhere, even in the cgi-bin folder, but servlets need a servlet engine to run, such as Tomcat(jakarta.apache.org/tomcat) or Jrun (from www.macromedia.com), among others.

Maybe you are looking for

  • Pass a value to the procedure from jsp

    Hi I need a help.. I have a jsp page which has the value , And I have one stored procedure in a java file. I have to pass this selected month to that stored procedure. there are 2 input parameters and one out parameter which returns a date files. If

  • MAX 14.0 broken and database corrupt after installing LV2014 and latest device drivers

    I have LV2012 and 2013 (both 32-bit) installed on my Win8.1 64-bit system and have used them without problem.  I recently went through the agony of installing LV2014 32-bit from Dev Suite 2014 DS2 and the latest device drivers from the August 2014 DV

  • How to download internal table data to excel in WebUI

    Hi everyone, I am trying to download the contents of an internal table to excel in CRM Web UI. One way, would be to create a table view and use the export to excel button. However, wish to avoid this and directly download using code. Also tried conve

  • Getting KEYS from a database!

    Hi Everybody, I have a serious problem! I have to get the Keys(Column Names) from a Database (MS-ACCESS) Table. JDBC2.0 contains a class called DatabaseMetaData. It has functions like getPrimaryKeys(), getImportedKeys() and getExportedKeys(), all of

  • 10.4.8 and dock

    Is there a correlation between the upgrade to the new OS and my dock? When I upgraded, a day later, my dock was defaulted to the factory settings, along with my icon sizes.