Auto-install a new web server instance

Hi, i'm attempting to install a Sun ONE Web Server on my workstation as part of a tutorial for Sun Identity and Acess Management Servers.
Within the tutorial it is stated that this web server is completely seperate from the web server within the Identity Server, and simply involves running an auto-install script called "install-webserver.sh".
Each time i attempt to run this script I am recieving a "bad interpreter: Permission denied" error message.
The line !/bin/sh is at the top of my file and yet this error is still occuring. The file was ftp'd from my windows NT directory across to my Unix directory "/export/home/opt/SUNWam/bin", and it is in this directory that I am attempting to run this scrpt.
So, does this sound in any way familiar to anyone?? I can provide you with the script if necessary.
Kind regards,
Stephen

6.1 unfortunately does not provide a way to create instances through command line tool. With 7.0 (soon to be released as Beta in the coming weeks) will have a full fledged command line tool for all server administration tasks
meanwhile, as a temporary work around one could do the following within a shell or perl script.
[ this approach is totally not supported by Sun. You are on your own ]
1. cd INSTALL_ROOT
2. copy https-HOSTNAME to https-test (/bin/cp -Rf https-HOSTNAME https-TEST) - assuming TEST is the new instance name that you want to create.
3. use a script to edit the following files and replace 'https-HOSTNAME' to https-TEST in all occurrences.
list of files to change:
start , stop , reconfig , restart , rotate
config/magnus.conf
config/server.xml
4. finally, you can use 'HttpServerAdmin' to change the listener port, security settings etc
./bin/https/bin/HttpServerAdmin -h
http://docs.sun.com/source/819-0130/agcmdln.html
for eg ( i would do something like this )
(to create instance https-TEST from default server instance, assuming you do not have special ACL file configured in the default instance, I would do something like )
use a perl script to copy https-HOSTNAME to https-TEST
(/bin/cp -Rf https-HOSTNAME https-TEST)
/bin/cp httpacl/generated.http-HOSTNAME.acl httpacl/generated.http-TEST.acl
cd https-TEST
replace https-HOSTNAME to https-TEST in following files (start, stop, restart, reconfig, rotate, config/magnus.conf, config/server.xml)
cd ..
now delete the listener socket id
./bin/https-TEST/bin/HttpServerAdmin delete -l -id ls1 -sinst https-TEST -d INSTALL_ROOT (where you server is installed)
followed by create a new listener socket id
./bin/https-TEST/bin/HttpServerAdmin create -l -id ls1 -ip ANY -port NEW_PORT -sname HOSTNAME -defaultvs https-TEST -sinst https-TEST -d INSTALL_ROOT
[ similarly, you can perform other server admin tasks using this command' ]

Similar Messages

  • Creating a new web server instance using script

    Hi
    We have to create 10 instances of sun one 6.1 web server again and again. Creating them from GUI and deleting them after testing is going to be a time consuming process. Is there a way to copy an existing instance with the help of some command line tool or shell script (If we know what enteries should be there in each configuration file). Any help will be appreciated.
    Thanks
    Anoop

    6.1 unfortunately does not provide a way to create instances through command line tool. With 7.0 (soon to be released as Beta in the coming weeks) will have a full fledged command line tool for all server administration tasks
    meanwhile, as a temporary work around one could do the following within a shell or perl script.
    [ this approach is totally not supported by Sun. You are on your own ]
    1. cd INSTALL_ROOT
    2. copy https-HOSTNAME to https-test (/bin/cp -Rf https-HOSTNAME https-TEST) - assuming TEST is the new instance name that you want to create.
    3. use a script to edit the following files and replace 'https-HOSTNAME' to https-TEST in all occurrences.
    list of files to change:
    start , stop , reconfig , restart , rotate
    config/magnus.conf
    config/server.xml
    4. finally, you can use 'HttpServerAdmin' to change the listener port, security settings etc
    ./bin/https/bin/HttpServerAdmin -h
    http://docs.sun.com/source/819-0130/agcmdln.html
    for eg ( i would do something like this )
    (to create instance https-TEST from default server instance, assuming you do not have special ACL file configured in the default instance, I would do something like )
    use a perl script to copy https-HOSTNAME to https-TEST
    (/bin/cp -Rf https-HOSTNAME https-TEST)
    /bin/cp httpacl/generated.http-HOSTNAME.acl httpacl/generated.http-TEST.acl
    cd https-TEST
    replace https-HOSTNAME to https-TEST in following files (start, stop, restart, reconfig, rotate, config/magnus.conf, config/server.xml)
    cd ..
    now delete the listener socket id
    ./bin/https-TEST/bin/HttpServerAdmin delete -l -id ls1 -sinst https-TEST -d INSTALL_ROOT (where you server is installed)
    followed by create a new listener socket id
    ./bin/https-TEST/bin/HttpServerAdmin create -l -id ls1 -ip ANY -port NEW_PORT -sname HOSTNAME -defaultvs https-TEST -sinst https-TEST -d INSTALL_ROOT
    [ similarly, you can perform other server admin tasks using this command' ]

  • LDAP is not working on new Web Server

    Hi, I configured LDAP authentication and it was working fine. After this I installed a new web server. I copied the security certificate etc ( copied everything from other web server) onto new webserver. When I try to login into Infoview or CMC then I get error message "Security plugin error: Failed to set parameters on plugin" from the new web server. Its working fine from the old web servers.
    Not sure what else I have to do now as I have done the same thing on old servers in the past.
    We are on BOXI R2 SP3 with web server on IIS 6.0. We have three web servers  and 3 processing servers ( with all services) in cluster env.
    Thanks,

    I am sorry I got confused with Pure Enterise authentication. I should have referred to my notes. I apologize for this. Web application server is involved in communicating to LDAP. Below is the process
    1) User logs into the application
    2) Web application server security plugin sends credential to LDAP directory
    3) LDAP directory authenticate users.
    4) Web application server's security plugin sends users credential to LDAP
    5) CMS requests user and group info from LDAP
    6) The LDAP returns this information to CMS Security plugin
    7) CMS will grant access if users is member of mapped group
    8) If access is granted then both CMS and WAS plugin create a session
    9) The WAS sends an enterprise session token to user's browser
    I was referring to login into Infoview using LDAP.
    Thanks,

  • Embedded font errors after migrating pdfs to new web server

    Hi All,
    After hundreds of working pdfs were moved to new web server, they produce variations of the "cannot extract the embedded font" (name of font) "some characters may not display or print correctly" error. The first page loads perfectly and the rest never load. All these files open fine when I open local copies in Reader (9.1.3) and Professional (7.1.0).They also open fine when moved to another server. When I delete copies on the server and re-upload using the working copies, the errors persist. Doesn't make sense. I also occasionally get the error "there were problems reading this document (14)".
    I was told by the IT department that a possible cause was that the new server environment used fonts installed on the server rather than the local machine to display pdfs.  This doesn't make sense to me.  I've researched these errors and haven't found anything applicable or that has worked. Any suggestions? Has anyone else expeienced this?
    The server is IIS and is running ASP.net. The IT dudes are saying they need to install all the refferenced fonts on the web server but due to the expense of this, they can't.This will nessecitate a really bizzarre and Rube Goldbergesque workaround (that I'm not even going to try to explain here) that I'd really like to avoid.  Any suggestions? Are there any Acrobat settings that need to be twekaed?

    Hi,
    I read the following on another discussion in this forum:
    it appears that with the shortkey ctrl+shift+Y you can force the pc to work around the system fonts
    Maybe that helps.
    Jenny

  • Where is "Web Server Instance Location" for SWSE installation in HP-UX?

    Hi there,
    We are using Siebel CRM SIA 8.1.1, our database version is Oracle 10g 10.2.0.2.
    For Siebel Web Server Installation in HP-UX, it will asked where is the location for "Web Server Instance Location" in HP-UX.
    Previously we also having problem for SUN Solaris, but there's a metalink on this (someone else raised it) and we manage to solve it.
    For HP-UX, we are using HP Web Server. According to bookshelf, we should use HP Apache Web Server?
    Kindly advice where is the location for "Web Server Instance Location" as per question in the installation.
    I believe our Web Server is installed in /opt/hpws.
    Regards,
    Rizwan

    Issues solved.
    Basically the location will /opt/hpws/apache32
    Currently Siebel 8.1.1 is only support apache32 bit.
    Things that need to consider, make sure you installing the same user as the user in apache32 folder.
    Means if you install apache32 as root, then you need to install SWSE as root.
    In my case, even thought i install as root, the apache32 folder will belong to BIN user. Not sure why.
    Then we had to install SWSE as bin user, then we manage to get the execution successfull msg.l
    Thanks

  • Iplanet 6 - set jdk for specific web server instance

    I am running iPlanet 6 with many web server instances. All web server instances are using the same jdk except for one which I must upgrade.
    Is there a way to set the jdk for a single web server instance?

    It is possible in V6.0 too:
    1. Copy start-jvm script from https-admserv/ into each https-* that needs a different JVM.
    2. Modify it to load the appropriate JVM
    3. Modify each https-*/start script to use this new start-jvm script instead of the one in https-admserv.
    Frankly speaking it is not my idea and it is not officially documented by Sun but it works!

  • Sun One Web Server instance not starting

    I have installed Sun One Web server 6.1. The administrator server is starting up. However, the instance of the web server through which I want to serve the web pages is not starting. Altough, there are no error messages that are shown when I am starting the server. Please help.

    I would check the logs directory for a PID file. It could be that there is a bogus pid file and when it tries to start you will get no error message. If there is a PID file delete it and try again.

  • How to configure single web server instance to multiple application servers..

    Hi all,
    we are running single instance of IWS6.0 SP2 on solaris, we want to comfigure this single instance to multiple application servers(JRun). Can any one advise me whether it is possible to do.
    Thanks
    Raj

    Hi Raj,
    "how to configure single web server instance to multiple application servers.."
    It's not possible for setting up multiple applicataion servers for Single iWS instance.
    Thanks,
    Dakshin.

  • Error when creating a new Reports Server instance

    Hi,
    I have tried to create and start a new reports server instance using the following method:
    1- Creating the report server instance:
    rwserver server=%newrepserver% start
    2- Stopping the OPMN:
    *%ORACLEHOME%\opmn\bin\opmnctl stopall*
    3- Adding a new server target to OPMN.XML
    *%ORACLEHOME%\bin\addNewServerTarget.bat %newrepserver%*
    4- Updating the configuration with new OPMN settings:
    *%ORACLEHOME%\dcm\bin\dcmctl.bat updateconfig -ct opmn -v -d*
    *%ORACLEHOME%\dcm\bin\dcmctl.bat resyncinstance -v -d*
    5- Starting the OPMN again:
    *%ORACLEHOME%\opmn\bin\opmnctl startall*
    However, when I try to start the OPMN again, I receive the following error:
    opmn id="##########:6200 5 of 6 processes started
    ias-instance id=red.########.########.lan
    ++++++++++++++++++++++++++++++++++
    ias-component/process-type-process-set:
    *%newrepserver%/ReportsServer/%newrepserver%*
    Error --> Process (pid=6888) failed to start a managed process after the maximum retry limit.
    Log: %ORACLEHOME%\opmn\logs\%newrepserver%~ReportsServer~%newrepserver%
    Any ideas as to why the reports server instance cannot be started?
    I have tried rebooting the server many times and have recreated other reports server instances but with no luck.
    Many thanks in advance,
    Chris

    On Windows this is caused most often by the temporary directory setting.
    Change the temporary directory to some fixed directory writable by anybody, e.g. "C:\temp".
    Change this in:
    Registry entry: hkey_local_machine\software\oracle\key_<oashome>\REPORTS_TMP
    <oashome>\opmn\conf\opmn.xml: search for environment variable TEMP (under ias-instance)
    Good luck!

  • Installing a New Windows Server 2008 R2 Child Domain by Using the Command Line

    Installing a New Windows Server 2008 R2 Child Domain by Using the Command Line:
    http://technet.microsoft.com/en-us/library/cc731873%28v=ws.10%29.aspx
    dcpromo /unattend /InstallDns:yes /ParentDomainDNSName:mysite.com /replicaOrNewDomain:domain /newDomain:child /newDomainDnsName:gridview.mysite.com /childName:gridview /DomainNetbiosName:gridview
    /databasePath:"c:\Windows\ntds" /logPath:"c:\Windows\ntds" /sysvolpath:"c:\Windows\SYSVOL" /safeModeAdminPassword:pass1 /forestLevel:4 /domainLevel:4 /rebootOnCompletion:yes
    Error Code:
    The specific argument 'childName' is not recognized.
    I am trying to insert gridview as a childname.

    Hi,
    Before going further, can we try another domain name to see what will happen?
    Besides, if the issue persists, we can try installing a new child domain by using the GUI.
    Installing a New Child Domain by Using the Graphical User Interface (GUI)
    http://technet.microsoft.com/en-us/library/cc771856(v=ws.10).aspx
    Best regards,
    Frank Shen

  • Add request header for a iplanet web server instance

    Hello
    Does any one know how can I add a request header for a iplanet web server instance?

    I believe you want to add request header :
    Adding request header :
    AuthTrans fn="set-variable" $headers{"myheader1"}="myheadervalue"
    Adding response header
    Output fn="set-variable" $srvhdrs{"myresphdr"}="myresphdrvalue"

  • Can user roles by transferred to new web server?

    Our ISP moved our files to a new web server since we were
    running out of room on their old server. However, our user roles
    did not get transferred. The settings for Administrator, Publisher
    and Writer were moved, but our custom roles were not. Is there a
    way for these roles to be transferred from the old server?
    Thanks,
    Kathy

    Thanks for your response.
    We aren't using CPS, but it looks like our ISP moved the
    files from the _mm directory. But the cthub....csi file on the new
    server is much smaller than it was on the old server (11 K vs 53
    K). It looks like the default roles (Administrator, Publisher,
    Writer) were moved somehow because the user names associated with
    those roles are displayed. But none of our other roles are showing
    up.
    One other bit of information ... the name of our web
    server/URL has changed with this move. I don't know if that would
    make a difference.
    Kathy

  • Install OC4J without web server

    Can you install OC4J with out the web server, so that you only have the application server portion running on a machine? Thanks in advance.

    Can you install OC4J with out the web server, so that you only have the application server portion running on a machine? Thanks in advance. Hi
    I dont think u can install OC4J without web server. But u can for sure disable the web server by commenting the following line in server.xml
         <web-site path="./default-web-site.xml" />
    now, only the application server portion will b running
    regards
    Raees

  • Problems installing Sun ONE Web Server 7.0 on an x86 with Solaris 10

    I am trying to install the new Sun ONE Java Web Server 7.0 on my Solaris 10 machine. This is the error I am getting:
    |-1%--------------25%-----------------50%-----------webResources:errorCreatingLogFile
    Task Failed: java.lang.NullPointsswhereException
    java.lang.NullPointerException
    at com.sun.web.installer.web.actions.PostInstall_core.install(PostInstall_core.java:273)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1465)
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:1086)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1457)
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:1086)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1457)
    at com.sun.install.products.Product.performInstallation(Product.java:651)
    at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(Thread.java:595)
    This is not a permissions issue, and there are no errors in the /var/sadm/install/logs. Please keep!
    Kristie N. Howard

    Hope, you are considering Sun Web Server 6.1 (formerly known as iPlanet Enterprise Server ) for this task. Yes, it is possible to host multiple instances of web server on a same machine.
    you can create multiple instances using our GUI. here is the pointer to our docs on how to do this - http://docs.sun.com/app/docs/doc/819-6512/6n8h7gq1n?a=view#bhabr
    If you are willing to give Sun Java System Web Server 7 (our latest release - http://www.sun.com/webserver) , then you can do this by CLI as well.
    sun one portal server 3.0 - is a very old release. Are you sure, is this what you want to run ?
    hope this helps

  • Creating New (multiple) server instance for a single domain

    Hi,
    I am trying to create a new server instance under a domain and deploy a web application under that.
    Ex:
    I have domain: ABC
    default admin server: Admin_server
    New server Instance: server2
    New server instance: server3
    I deployed a webapplication on "Admin_server" and when i try to access the webapplication it works fine.
    But when i try to deploy the same webapplication(or a new webapplication) i do get a nullpointerexception error.
    I am new to weblogic and hence a bit lost here.
    Also when the admin server "Admin_server" is created for domain "ABC" a new folder called "Admin_server" would be created under "ABC" [EX: C:\bea\user_domains\ABC\Admin_server]
    the "Admin_server" would have a upload dir under which the webapplication files/folder would be deployed.
    I was under the impression when u create a new server instance "Server1" a simliar dir structure would be created but this is not the case.
    I am new to weblogic and this seems to a minor config which i am missing.
    Any suggestions , hints would be appreciated

    The node manger is installed as a service. I am using Nodemanager to start the managed server.
    Actually now i have created a new domain DCM and the admin server is DCM_ADMIN. i deplyed a web app called DCM on this and do get the error. This is what exactly i got when deployed on a managed server [tested this on a different domain - but then it did work on the admin server]
    ERROR:
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at com.documentum.web.formext.config.ConfigService.(ConfigService.java:565)
         at com.documentum.web.formext.config.ConfigService.getInstance(ConfigService.java:68)
         at com.documentum.web.formext.config.ConfigService.getConfigLookup(ConfigService.java:83)
         at com.documentum.web.formext.config.ClientEnvQualifier.bindHttpRequest(ClientEnvQualifier.java:142)
         at com.documentum.web.env.WDKController.setBindings(WDKController.java:372)
         at com.documentum.web.env.WDKController.doStartRequest(WDKController.java:150)
         at com.documentum.web.env.WDKController.processRequest(WDKController.java:88)
         at com.documentum.web.env.WDKController.doFilter(WDKController.java:79)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6987)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    MY config.xml
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Domain ConfigurationVersion="8.1.5.0" Name="DCM">
    - <Server ListenAddress="" ListenPort="1120" Name="DCM_ADMIN" NativeIOEnabled="true" ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.5.0">
    <SSL Enabled="false" HostnameVerificationIgnored="false" IdentityAndTrustLocations="KeyStores" Name="DCM_ADMIN" />
    </Server>
    <JMSFileStore Directory="rmfilestore" Name="FileStore" />
    <WSReliableDeliveryPolicy DefaultRetryCount="10" DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore" />
    <Security Name="DCM" PasswordPolicy="wl_default_password_policy" Realm="wl_default_realm" RealmSetup="true" />
    <EmbeddedLDAP CredentialEncrypted="{3DES}f42Gd5I8pTqrAXW1bntpvYdF9kQxUOm0+Sf9Liq9Wrg=" Name="DCM" />
    <SecurityConfiguration CredentialEncrypted="{3DES}yA8jh/8xZqf+6HyuA5YesVFLKkpMBpCfOgJ7Gf0G+qOce7Pr8dtby+FnJY3lYu/7p5vqYw7Yw36vk98Vqb6P3ZE/bnahPhwu" Name="DCM" RealmBootStrapVersion="1" />
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm" />
    <FileRealm Name="wl_default_file_realm" />
    <PasswordPolicy Name="wl_default_password_policy" />
    - <JMSServer Name="WSStoreForwardInternalJMSServerDCM_ADMIN" Store="FileStore" Targets="DCM_ADMIN">
    <JMSQueue CreationTime="1141142209450" JNDIName="jms.internal.queue.WSStoreForwardQueue" JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueDCM_ADMIN" />
    <JMSQueue CreationTime="1141142209653" JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue" JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueDCM_ADMIN" />
    </JMSServer>
    - <Server ListenPort="9201" Name="DCM_TEST" ServerVersion="8.1.5.0">
    <ServerDebug Name="DCM_TEST" />
    <SSL IdentityAndTrustLocations="KeyStores" Name="DCM_TEST" />
    <KernelDebug Name="DCM_TEST" />
    <Log Name="DCM_TEST" />
    <ServerStart Name="DCM_TEST" OutputFile="C:\dev\bea\weblogic81\DOMAINS\DCM\.\NodeManagerClientLogs\DCM_DCM_TEST\startServer_02_28_2006-10_58_26-1.log" PasswordEncrypted="{3DES}zluy0BrZ/DYTcUwAKEgovg==" Username="elisadmin" />
    <WebServer Name="DCM_TEST" />
    <COM Name="DCM_TEST" />
    <IIOP Name="DCM_TEST" />
    <JTAMigratableTarget Name="DCM_TEST" UserPreferredServer="DCM_TEST" />
    <JTARecoveryService Name="DCM_TEST" />
    </Server>
    - <Application Name="da" Path="C:\dev\bea\weblogic81\DOMAINS\DCM\DCM_ADMIN\upload" StagingMode="nostage" TwoPhase="true">
    <WebAppComponent Name="da" Targets="DCM_ADMIN" URI="da.war" />
    </Application>
    </Domain>

Maybe you are looking for