Sun Java System Application Server 9.1 Update 1 Installation Guide

ProcedureTo Install Application Server 9.1 Update 1 with MySQL Community Server

Before You Begin

Use this procedure if you are using the CLI or GUI mode of the file-based installer for the Application Server 9.1 Update 1 with MySQL Community Server distribution. Verify that your system meets the requirements specified in Hardware and Software Requirements in Sun Java System Application Server 9.1 Update 1 Release Notes

Solaris and Linux installations support both root and non-root user installations. Users of Windows installations should have Power User or Administrator access. If you are installing as a non-root user on Solaris or Linux, you must have read-write access to the following directories:

  1. Navigate to the directory where you downloaded the distribution file.

  2. If you have downloaded a .bin file, change the permission of the distribution file so that you have execute access:

    chmod +x distribution_filename

  3. Run the installation program.

    • If you are installing from a .bin file, use the following command to run the installation program :

      ./distribution_filename

      Use the -console option to run the installation program in command-line mode.

    • If you are installing from a .zip file, unzip the file, navigate to the extracted folder, and run the following command:

      ./setup

      Use the -console option to run the installation program in command-line mode.

      On Mac OS systems, you need download JDK (version 1.5.0_12 or above) separately.

    • If you are installing from an .exe file on Windows, double-click the file.

  4. Read and accept the license agreement.

  5. Specify the directory where you want to install the software or accept the default installation directory.


    Caution – Caution –

    On Windows, ensure that there are no spaces within the installation directory you specify. Installation paths with embedded spaces are not supported.


  6. Choose to install JDK 5 or use a pre-installed JDK 5.

  7. In the Administration Configuration page (or when prompted at the command line), enter the following:

    • Admin User Name – Name of the user who administers the server.

    • Password – Admin user’s password to access the Admin Server (8-character minimum).

    • Choose whether you want to be prompted for the Admin User Name and Password.

    • Admin Port – Administration port number for initial server instance. The default value is 4848.

    • HTTP Port - Port number to access the default server instance. You need to provide this value only if you had selected to install DAS.

    • HTTPS Port - Secure port number to access the default server instance. You need to provide this value only if you had selected to install DAS.


    • Note –

      The installation program automatically detects ports in use and suggests unused ports for the default settings.

      The default ports are:

      • Administration Server - The default is 4848

      • HTTP server - The default is 8080

      • HTTPS sever - The default is 8181

      In addition, five other ports are automatically assigned. You can change the automatically assigned values after installation using the Admin Console. The default ports assigned are:

      • Sun Java System Message Queue - The default is 7676

      • IIOP - The default is 3700 for IIOP, and 3820 and 3890 for IIOP/SSL

      • JMX - The default is 8686

      If these default port numbers are in use, the installation program assigns random port numbers from the dynamic port range. This number may not be the next available port number.


  8. In the Installation Options page, select the options that you want. Installation Options are:

    • Upgrade from Previous Version: Select this option to upgrade from configuration data from an earlier installation of Application Server.


      Note –

      If you are running the installer in command-line mode, you need to run the asupgrade command manually.


    • Enable Updatecenter Client: Select this option to enable Updatecenter to check for available updates and collect system data.

    • Create Desktop Shortcut to the AutoDeploy directory: Select this option to automatically deploy items dragged to this directory. You see this option only if you are using Windows.

    • Add bin Directory to PATH: Select this option to add install-dir/bin to the PATH variable for simplifying the process of running the server and tools from the command line. You see this option only if you are using Windows.

    • Create a Windows Service for Application Server: Select this option to create a Windows Service for starting and stopping Application Server.


      Note –

      To create a Windows service, the sc.exe utility must be available on the system. Windows 2000 users may need to install the Windows 2000 Resource Kit to get this utility. For other supported Windows versions, the utility is included in the operating system.


    • Create a Windows Service for MySQL Community Server: Select this option to create a Windows Service for MySQL, with startup type configured as manual.

  9. In the MySQL Configuration panel, choose the size of your machine.

    This installation creates a preconfigured options or configuration file to be used for MySQL Community Server. The parameters in this options file depend on the size of your machine.

    • SMALL: Select this option for a system with 64 MB memory or lesser and does not run MySQL regularly. Ensure that mysqld daemon does not use many resources.

    • MEDIUM: Select this option for a system that has 32 MB - 64 MB memory and runs MySQL regularly. Select this option for a system with a maximum of 128 MB and if you are using MySQL with other software (such as a web server).

    • LARGE: Select this option for a system with 512 MB or lesser and runs mainly MySQL.

    • HEAVY: Select this option for a system with 4 GB of memory and runs mainly MySQL using InnoDB-only tables and performs complex queries with few connections.

    • HUGE: Select this option for a system with memory of 1 GB - 2 GB and runs mainly MySQL.

    After installation, the MySQL options file, mysql.ini, is created at install-dir/mysql. Refer http://dev.mysql.com/doc/refman/5.0/en/option-files.html for more information on the MySQL options file. Ensure that you read this option file and change values as appropriate and as documented at http://www.mysql.com, prior to server startup.

  10. On the Ready to Install page, click Install Now.

  11. After installation completes, use the Registration Options screen for registering your installation of application server. For instructions, see To Register Your Installation of Application Server.

Next Steps

After installing Application Server 9.1 Update 1 with MySQL Community Server, start the application server using the instructions at Starting the Server in Sun Java System Application Server 9.1 Quick Start Guide.

The MySQL installation is located at install-dir/mysql. Set up MySQL using the instructions at To Set Up MySQL, if you are using Solaris, Linux, or Mac OS. Start MySQL using the instructions at To Start MySQL.

Troubleshooting

For solutions to installation problems, see Chapter 3, Installation Problems, in Sun Java System Application Server 9.1 Troubleshooting Guide.