Installing CGI on SunOne Web Server - Help!

I'm new to the SunOne WebServer and am trying to get CGI/Perl to work. I've tried all I know at the CGI directory page but still can't get Hello World to show up.
Running it as *.cgi shows a 405 - Method Not Allowed Error.
Running it as *.pl prompts me to save the file - you only get that when path to Perl is not correct, no?
What else do I need to know/change on the web server to get it to run?

You have not indicated the web server version and OS that you are using. Anyway, the error that you report is probably because the CGI is not configured correctly on this server. Here are the docs for Web Server 6.1 to enable CGI:
http://docs.sun.com/source/819-0130/agprgrm.html#wp21207
Thanks
Manish

Similar Messages

  • Silent install of Sun Web Server help

    I tried to do a silent install of the Sun Web Server and I get the following errors....
    while doing /path.../setup -s -f /path..../install.inf
    after checking this is the error log I saw...I dont even see a SUNWwbsvr folder created under /opt.
    [05/09/11:18:09:38] - [Setup] Info Start...
    [05/09/11:18:09:38] - [Setup] Info Start silent installation...
    [05/09/11:18:09:38] - [Setup] Fatal No components are specified to be installed.
    [05/09/11:18:09:38] - [Setup] Fatal ServerRoot is not specified.
    [05/09/11:18:09:38] - [Setup] Fatal Can't initialize installation!
    [05/09/11:18:09:38] - [Setup] Info DONE
    Can anyone help me on what needs to be done??
    Thanks!
    Anand

    Did you follow the supported way for the silent install ? ===>
    For windows :
    http://docs.sun.com/source/819-0131/win.html#wp25280
    For UNIX :
    http://docs.sun.com/source/819-0131/unix.html#wp28818

  • How to install the FRMI to Web Server 7.0

    Hi I need a little help, which is like being able to install the service FRMI web server,
    when the installation made the mistake of telling it not to install the service for the initialization
    at system start up.
    How can I add it to boot,
    Web Server version
    root@msfront1 # /opt/SUNWwbsvr7/lib/webservd -v
    Sun Microsystems, Inc.
    Sun Java System Web Server 7.0 B12/04/2006 10:15
    OS
    root@msfront1 # cat /etc/release
    Solaris 10 11/06 s10s_u3wos_10 SPARC
    Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
    Use is subject to license terms.
    Assembled 14 November 2006
    Edited by: arosbar on 08-04-2009 09:39 AM

    hope you installed the web server as a root user. if you have done, it is easy to take it from there . you can use wadm create-server
    <install-root>/bin/wadm create-server user=admin ..  config=.. --node=<hostname> <hostname>
    finally, you should able to start/stop using Solaris 10 SVCS commands like
    svcs -a | grep http
    svcadm enable -s https-.. (for server instance)
    if you chose enabling SMF during installation, you can do so for admin server a well. (so that you can start/stop using commands like svcadm enable -s admin-server)

  • SunOne web server sp6 on RH9

    Dear all,
    I would like to install SunOne web server sp6 on Redhat 9.0 for evaluation.
    I set some parameters as following.
    * make libncurses.so.4 link file
    * set LD_ASSUME_KERNEL=2.4.1
    * change name from netscape to mozilla in startconsole.
    * set firewall to pass port 80, etc
    When I touch ./startconsole, admin server is displayed and I touch ID and password.
    But browser display "The administration server was unable to fulfill your request."
    If I install Sunone web server 6.1, I don't see this message and I can turn web service on.
    If there is more set information on RH9.0, please give me advices.
    Regards,
    Masaaki Kato

    WS6.0 and 6.1 are not certified to run on RH9. They may behave in unexpected ways if you run them in that environment.
    If you must run on RH9, I recommend that you only test/use WS6.1.

  • Problem running WebLogic as plugin for SunOne web server on Solaris

    I tried to set up WebLogic (8.1) as plugin for SunONE (iPlanet) web server. I followed instraction from http://e-docs.bea.com/wls/docs81/plugins/nsapi.html#110496. SunONE server start up successfully. But I have problem to connect my web application, and SunONE web server returns following error:
    "for host 172.23.54.5 trying to GET /arsys/home, wl-proxy reports: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters"
    I tried both SunOne (6.1 sp3) and iPlanet (6.0), I saw same problem.
    Can anyone help me on this?
    Thanks
    Charlie

    To configure sunone to work with WLS, you need to make entires in the magnus.conf and the obj.conf.From the error, it seems as if u missed the entries in the obj.conf.

  • Does URL Policy Agent of SunONE Web Server 6.1 works with Identity Server 6

    Hi,
    I'm using URL Policy Agent of SunONE Web Server 6.1, and using Identity Server 6.1 to configure policy to access web resource such as http://myweb.org.cn/test/*
    After configyration, I try to access the resources http://myweb.org.cn/test/test.html
    The redirection is ok, the IS login appear, but after login successfully, it still tell me that I don't have permission to view this web page.
    Is this because of URL policy agent don't support IS 6.1?
    Many thanks,

    Can anybody help me with the steps to generate core for this issue.. I followed the steps as said in http://blogs.sun.com/meena/entry/troubleshooting_server_crashes_enabling_core but I don't see any core generated when server crashes..
    Setup Info:
    - OS is RHEL 4.0
    - Sun ONE Web Server 6.1SP7
    - Policy Agent 2.2

  • Memory leak on SunOne Web Server 6.1 on application reload

    Hi!
    I am pretty sure that i have found a memory management problem in
    SunOne Web Server 6.1 .
    It started with an OutOfMemory error we got under heavy load . After
    some profiling with Jprofiler i didn't find any memory leaks in the
    application.Even under heavy load (generated by myself) i can't find
    anything ,more, i can't reproduce the error! The memory usage is
    about 20Mb and does not go up .
    However it is pretty simple to see the following behavior:
    [1] Restart the server (to have a clear picture) and wait a little for
    memory usage to stabilize.
    [2] In the application dir. touch .reload or one of the classes:
    The memory usage goes up by another 50Mb (huge amount of mem. taking
    into account the fact that it used only 20Mb under any load befor).
    Do this another time and another 20Mb gone etc..
    The JProfiler marks the memory used by classes . And it can be
    clearly seen the GC can't release most of it.
    I AM sure this is not the application that takes all the memory.
    Another hint : after making the server to reload application i can see
    that the number of threads ON EVERY RELOAD is going up by ~10-20
    threads .The # of threads goes lower over time but not the mem usage.
    My system:
    Sparc Solaris 9 ,Java 1.4.2_04-b05, Sun ONE Web Server 6.1SP5
    Evgeny

    my guess is that - because of '.reload' , web container tries to
    recompile all the classes that you use within your web application and
    hence the memory growth is spiking up.What do you mean by "tries to recompile"?The classes in
    Web-inf are already compiled! And i have only ~5 jsp's .
    (the most part of the applic. is a complicated business logic)
    If you are talking about reloading them ,yes,that's the purpose of .reload,
    isn't it? :).But it seems that container uses the memory for it's own
    classes: the usage of memory for my classes don't really grow
    that much (if at all) after reload (according to profiler)
    Also the real problem is that the memory usage grows to much for
    too long (neither seen it going down) and thus ends with OutOfMemory.
    if you are seeing the memory growth to be flat in stress environment,
    then I am not sure that why do you think that there is a memory leak ?There is no memory leak in stress environment.
    There is memory leak while reloading the application.
    It is a memory hog for sure (~20-30Mb for every reload).
    Memory leak?It seems that way because i can't see memory usage go
    down and after a lot of reloads OutOfMemory is thrown.
    also, what is jvm heap that you use ? did you try jvm tune options like -
    XX:+AggressiveHeap ?256Mb.I can set it bigger ,but how do i know that it will not just delay
    the problem ?
    Thanks for response.
    Evgeny

  • NSAPI plugin has high CPU utilization on Sunone web server 6.0 SP5

    Hi,
    I am running WL 6.1 SP3 with pluginProxy SP03 on Sunone web server 6.0SP5 on Solaris.
    Seeing very high CPU utilization with 3 threads running wl_proxy (about 33% each).
    Any latest NSAPI pluginproxy patch I can use to fix this?
    Walter

    I'm having the same problems as all the above posts. I run a colloborative tool which uses IPlanet as a directory server and I receive the Event ID:25 Source: WebServer 6.0 error as well as Event ID:0 Source:https-admnserv6.0 which gives "the local computer may not have the necessary registry information or message DLL files to display messages from a remote computer". I have 3 servers built and all exhibit the same errors.

  • Access Control for SunOne Web Server 6.0.5 vs. 6.0.4

    This question is about bypassing an appserver by specifying an alias without the appserver vitual host so as to download a class or jar file. With only the default ACL on the 6.0.4 version of the Sunone web server I found that .class and .jar files were not downloadable. However, on version 6.0.5 they are. For example, the URL:
    https://myhost/appserv/alias/path/file.jsp
    would return the html resulting from that file.jsp file being processed by my application server. But by contrast, the URL:
    https://myhost/alias/path/file.jsp
    will prompt the user as to where they want to save the file. Specifying the alias immediately after the hostname (omitting appserv) will allow free access to any files under that aliases target directory. This is a problem especially for .class and .jar files which contain server side programs. I have created an ACL as described in the administrators guide and this does solve the problem (thank goodness for that). My question is, why didn't I experience this problem before?

    To Disable directory listing : http://www.sun.com/bigadmin/features/hub_techtips/dir_list_web_srvr.jsp

  • Can SunOne Web Server get REMOTE_USER?

    Scenario:
    Users authenticate to Active Directory on Windows and browse an application from their IE browser to a web application hosted by SunOne Web Server 6.1.
    Will the SunOne Web Server application be able to pick up the REMOTE_USER HTTP header?
    Thanks in advance.

    IE will not send user id in http headers. You can get the user id if you do NTLM authentication which the web server does not support. If your app is java based you can look into doing NTLM auth in Java and get the user id that way.
    See:
    http://www.rgagnon.com/javadetails/java-0441.html

  • SunOne Web Server (JSP & class)

    I have tried to read the documentation but I am just not getting it. I have 2 files myjsp.jsp and mybean.class that I would like SunOne Web Server to display my jsp using the javabean. Where do I put the files? (I have seen all kinds of things on deploying a WAR file etc. I just want to place these two files on the web server and go.)
    I have my jsp located at c:\iPlanet\Servers\docs\webdev and my class file located at[b] c:\iPlanet\Servers\docs\webdev\web-inf\classes. What do I need to tell the server how to load the javabean?

    Hi, elving
    This is good information. Thanks very much.
    Actually, I am not using SSL, just plain http connection with basic auth. It might be the cache-control header that causes the head ache. 6.0 response does not have the cache-control header, but 6.1 has.
    The interesting thing is that adding a servlet mapping on 6.1 solves the problem.
    I will take a further look tomorrow.
    Cheers,
    Harry
    I doubt the problem has to do with the Content-Length
    header.
    I'd guess that you're using SSL. Are you? If so,
    you're almost certainly bumping into a known bug (or,
    as Microsoft describes it, a "feature") in Internet
    Explorer. Microsoft article KB316431 at
    http://support.microsoft.com/default.aspx?scid=316431h
    as some information on the problem. As the article
    points out, the problem occurs when Internet Explorer
    needs to invoke an external application to handle a
    file that was served over SSL with Cache-Control:
    no-cache and/or Pragma: no-cache headers.
    A work around would be force Web Server to send
    Cache-Control and Pragma headers that don't include
    the no-cache directive. For example, the following
    lines could be added to the obj.conf configuration
    file:<Object ppath="*.jnlp">
    Output fn="set-variable" set-srvhdrs="Cache-Control:
    private"
    Output fn="set-variable" set-srvhdrs="Pragma:
    private"
    </Object>Fortunately, it sounds like you've already
    found another viable work around.

  • Maximum number of simultaneous CGIs on iPlanet Web Server 6.0

    I have installed iPlanet Web Server 6.0 on a Windows 2000 Advanced Server SP2 machine. I have configured a directory as CGI directory. The actual CGI is an exe written using C++.
    Now when I try to access this CGI from the browser, only 1 CGI is loaded at a time even if I send requests for multiple CGIs. I have added the following lines to my "magnus.conf" file:
    RqThrottle 128
    MinCGIStubs 10
    CGIExpirationTimeout 36000
    MaxCGIStubs 100
    CGIStubIdleTimeout 0
    But still the CGI launching is being serialized with only 1 CGI being launched at a time. What could be the reason for this? Can anyone help me out on this one?
    Thanks in advance.
    Varun Goswami

    You can try adding the following directive to your config\magnus.conf configuration file:
    KernelThreads 1
    This directive instructs the web server to use native (kernel) threads to service requests.

  • SunOne Web Server 6.1 and JSP response content-length

    Hi,
    I am looking for help for a problem in my previous post
    http://swforum.sun.com/jive/thread.jspa?threadID=58612.
    It seems to me the only significant difference of the response to the same jsp file from 6.0 and 6.1 server is the content-length header.
    6.0 response has the content-length header;
    6.1 response does not have the content-length header.
    HttpUrlConnection::getContentLength() returns the actual content length of the 6.0 response;
    HttpUrlConnection::getContentLength() returns -1 for the 6.1 response.
    Here is the dump,
    SunOne WebServer 6.0
    allowUserInteraction? false
    content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1eed786
    contentEncoding? null
    contentLength? 999
    contentType? application/x-java-jnlp-file
    Date? 1131378080000
    DefaultAllowUserInteraction? false
    DefaultUseCaches? true
    DoInput? true
    DoOutput? false
    Expiration? Wed Dec 31 19:00:00 EST 1969
    FileNameMap? java.net.URLConnection$1@1a1c887
    lastModified? Wed Dec 31 19:00:00 EST 1969
    requestMethod? GET
    responseCode? 200
    responseMessage? OK
    HEADER::Set-cookie=[JSESSIONID=pkand013-1%253A436f75a0%253A5b909ee2e5bbe3bc;path=/]
    HEADER::Date=[Mon, 07 Nov 2005 15:41:20 GMT]
    HEADER::Server=[Netscape-Enterprise/6.0]
    HEADER::null=[HTTP/1.1 200 OK]
    HEADER::Content-length=[999]
    HEADER::Content-type=[application/x-java-jnlp-file]
    SunOne WebServer 6.1
    allowUserInteraction? false
    content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1fee6fc
    contentEncoding? null
    contentLength? -1
    contentType? application/x-java-jnlp-file
    Date? Mon Nov 07 10:49:07 EST 2005
    DefaultAllowUserInteraction? false
    DefaultUseCaches? true
    DoInput? true
    DoOutput? false
    Expiration? Wed Dec 31 14:00:00 EST 1969
    FileNameMap? java.net.URLConnection$1@1503a3
    lastModified? Wed Dec 31 19:00:00 EST 1969
    requestMethod? GET
    responseCode? 200
    responseMessage? OK
    HEADER::null=[HTTP/1.1 200 OK]
    HEADER::Expires=[Wed, 31 Dec 1969 19:00:00 EST]
    HEADER::Set-cookie=[JSESSIONID=44A318F4BC0802A4C70C27FD4AB1C115;Path=/]
    HEADER::Transfer-encoding=[chunked]
    HEADER::Date=[Mon, 07 Nov 2005 15:49:07 GMT]
    HEADER::Pragma=[No-cache]
    HEADER::Server=[Sun-ONE-Web-Server/6.1]
    HEADER::Content-type=[application/x-java-jnlp-file]
    HEADER::Cache-control=[no-cache]
    In my test env, 6.0 and 6.1 are installed on the same machine (Win2K), using the same directory as web root, same http port. Browser runs on a different machine.
    Thanks
    Harry

    Hi, elving
    This is good information. Thanks very much.
    Actually, I am not using SSL, just plain http connection with basic auth. It might be the cache-control header that causes the head ache. 6.0 response does not have the cache-control header, but 6.1 has.
    The interesting thing is that adding a servlet mapping on 6.1 solves the problem.
    I will take a further look tomorrow.
    Cheers,
    Harry
    I doubt the problem has to do with the Content-Length
    header.
    I'd guess that you're using SSL. Are you? If so,
    you're almost certainly bumping into a known bug (or,
    as Microsoft describes it, a "feature") in Internet
    Explorer. Microsoft article KB316431 at
    http://support.microsoft.com/default.aspx?scid=316431h
    as some information on the problem. As the article
    points out, the problem occurs when Internet Explorer
    needs to invoke an external application to handle a
    file that was served over SSL with Cache-Control:
    no-cache and/or Pragma: no-cache headers.
    A work around would be force Web Server to send
    Cache-Control and Pragma headers that don't include
    the no-cache directive. For example, the following
    lines could be added to the obj.conf configuration
    file:<Object ppath="*.jnlp">
    Output fn="set-variable" set-srvhdrs="Cache-Control:
    private"
    Output fn="set-variable" set-srvhdrs="Pragma:
    private"
    </Object>Fortunately, it sounds like you've already
    found another viable work around.

  • Unable to install Sun Java System Web Server 6.1 Service Pack 7 on Wndows

    Dear All,
    I recently downloaded Sun Java System Web Server 6.1 Service Pack 7 and now I am trying to install it.
    The previous version of Web Server 6.1 that i installed is running successfully on Windows 2000 Prof. though it is not meant for it.
    To install SP7, i uninstalled the previous Web Server 6.1. I also removed the folder Sun and all the child folders of it. The Sun ONE Web Server services are still available and i can't able to delete them even from registry so i disabled them.
    Then I tried to install SP7. But after few steps, it gives error:
    You already have a Sun ONE Web Server installed. Install can not proceed.
    I am sure that i am able to remove completely the previous instance of webserver as i removed all the entries from registry also and also disabled the services related to it.
    Still why i am getting this error?
    Will it work on Windows 2000 Professional like its previous version?
    If not can i able to install previous version of the Web server 6.1 (without SP7) on Windows 2000 Prof?
    Please help me regarding this.
    -Sameer

    Sameer, you should have uninstalled Web Server 6.1 using the Web Server uninstallation program instead of just deleting its files and directories. Your Windows registry is now in an inconsistent state.
    If you can restore your previous Web Server 6.1 installation from a backup, you can run the uninstaller to correctly uninstall it.
    If you cannot uninstall Web Server 6.1 using its uninstallation program, you will need to manually delete the Windows services and edit the Windows registry to remove all references to the files you deleted. Note that you can render your computer inoperable by deleting services or modifying the Windows registry. Don't do this if you're not confident with what you're doing.
    To delete the services using SC.EXE:C:\>sc delete https-admserv61
    C:\>sc delete https-hostname(You can find the hostname for the Web Server 6.1 service(s) using the Services program in the Administrative Tools folder of the Control Panel.)
    To clean up the registry, use REGEDIT.EXE to delete HKEY_LOCAL_MACHINE/Software/Sun Microsystems/WebServer.

  • How to Add a New CGI-Handler to Web Server?

    I need to setup a website that will have pages coded in "LiveCode" (http://livecode.com/), an English-like scripting language, that can be used as an 'easier-to-program' replacement for PHP. It has its own interpreter ("livecode-server"), which is supposed to work under Apache as a cgi script. The idea is that the programmer writes web pages in LiveCode, composed of HTML with embedded LiveCode scripting, and these pages are saved using their own extension (".lc"). When a ".lc" page is requested, Apache should send the page for processing by the 'livecode-server' cgi.
    The installation instructions for 'livecode-server' are quite simple. They state that it should be able to be easily installed via an '.htaccess' file, like this:
    1) in the website's root directory, add a ".htaccess" file with the following directives:
    Options ExecCGI
    AddHandler livecode-script .lc
    Action livecode-script /cgi-bin/livecode-server
    2) put the 'livecode-server' executable inside your 'cgi-bin' folder
    These instructions are obviously for users in a shared host environment, but I thought I should be able to do the same with OS X Web Server. But... where can I find a site's "cgi-bin" folder?
    Any guidance is truly appreciated.

    I tried using a custom httpd_livecode.conf file, and storing it in /Library/Server/Web/Config/apache2/other, but without success. To be totally honest, I'm not certain as to whether the configuration is not loading, or whether there is just something wrong with my syntax, and right now I just don't have the time to troubleshoot.
    I did manage to get it working with the .htaccess file, which was quite easy, once I knew where to put the executable - which, as you mentioned, had to be in /Library/Server/Web/Data/CGI-Executables.
    So, for future reference, the 'recipe' for adding a new cgi handler via .htaccess is:
    place the cgi executable (usually a language parser or interpreter) into
    /Library/Server/Web/Data/CGI-Executables
    make sure the parser/interpreter (and any accompanying files or directories) are readable and executable (usually permissions should be set to '755')
    in your site folder, add a .htaccess file with the following contents:
    Options ExecCGI
    AddHandler script-type .extensionType
    Action script-type /cgi-bin/script-interpreter
    In the case of LiveCode, my .htaccess file looks like this:
    Options ExecCGI
    AddHandler livecode-script .lc
    Action livecode-script /cgi-bin/livecode-server
    And the 'livecode-server' executable, as well as its accompanying files, were downloaded directly from the LiveCode website, and placed in /Library/Server/Web/Data/CGI-Executables.
    last of all in Server.app, in the Advanced settings for your site, make sure you have enabled "Allow overrides using '.htaccess' files"

Maybe you are looking for

  • Display last month revenue

    Hi All, I have below requirement. i have data in my table as below. Month Name Revenue Jan-2013 500 Feb-2013 300 Mar-2013 null April-2013 null May-2013 900 Jun-2013 null Jul-2013 450 Aug-2013 null requirement is to display last month revenue where ev

  • Screen brightness no longer works

    never mind... glitch in Windows. Closing the screen and reopening solved it. Originally I posted a question about why my screen brightness wasn't responding any more. The HP service responded to my Fn+ key strokes by showing the brightness bar on the

  • How do you change the # of photos in slideshow??

    Hello, I have been trying all bloody day to change the settins in the Adobe Bridge CS4 webgallery to show all 33 prints.. all it will do is 10! WHERE do you go to change that? Itried the edit..preferences... but it still will nly create a slideshow w

  • InfoCube Design and Partitioning

    Hi All, when we design an InfoCube, like when we decide which craracteristics to go in which dimension, does partitioning decided at this time as well? If os, please provide some details? Can somebody guide me on this? thanks in advance.

  • LookupService with Xi Adapter supported?

    Hi, Does anybody know if the LookupService API supports use of XI adapter (ABAP Proxies) or is it only RFC and JDBC? Kind Regards Johan