Xem mẫu

Installation and Configuration Installing the Alfresco WAR on any platform Use the Web Archive (WAR) file to install Alfresco on any platform. A WAR file is a JAR file used to distribute a collection of files (JavaServer Pages, servlets, Java classes, XML files, tag libraries, and static web pages) that together constitute a web application. Use this method of installing Alfresco if you already have installed a JDK, a supported database, an application server, and the additional Alfresco components. The WAR zip includes the binaries for ImageMagick and pdf2swf. To download and install the Alfresco WAR file you need to carry out the following: 1. Browse to the Alfresco Community Edition download area. 2. Select and download one of the following files: alfresco-community-war-3.2.zip alfresco-community-war-3.2.tar.gz 3. Specify a location for the download. 4. Extract the downloaded file. 5. Copy the alfresco.war file and share.war file to the appropriate location for your application server, for example: /webapps. If you deployed previous versions of Alfresco, you must remove any temporary files created by your application server. Modifying the directory paths for Tomcat 6.x If you install Tomcat 6.x separately, some of the directories that were present in Tomcat 5.x will not be present in the former. For example, Tomcat 6.x does not contain the shared/classes and shared/lib directories. Alfresco uses these directories to locate some of the configuration override files. This section describes how to configure Tomcat 6.x to use the correct directory structure and files for Alfresco: 1. Locate . 2. Create the shared/classes directory. 3. Open the /conf/catalina.properties file. 4. Change the value shared.loader= to the following: shared.loader=${catalina.base}/shared/classes,${catalina.base}/ shared/lib/*.jar 5. Copy the JDBC drivers for the database you are using to lib/. [ 52 ] Download from Wow! eBook Chapter 2 6. Ensure that a copy of the commons-el.jar file is in the lib directory. 7. If you are using Java SE 6, copy any .jar files that needed to go into the Tomcat common/endorsed directory into the following directory: ...jdk6/jre/lib/endorsed. Downloading the extension samples Each Alfresco distribution includes a download containing sample extension files, such as the Spring configuration. You can use these sample extensions for advanced Alfresco customizations by downloading and installing the files mentioned below, as follows: 1. Browse to the Alfresco Community Edition downloads area. 2. Select and download one of the following files: alfresco-community-sample-extensions-3.2.zip alfresco-community-sample-extensions-3.2.tar.gz 3. Specify a location for the download. The extension samples are available for you to configure. Once you have downloaded the sample files, copy them into . Deploying Share into a separate Tomcat instance This task provides information for running Share in a separate Tomcat instance. These instructions are for Windows deployments, but Linux-based deployments can use the same methods: 1. Install a new Tomcat instance. 2. Modify the /conf/server.xml file for the new Tomcat instance as follows: a. Change the port number in the line (for example, to 8006): b. Change the port number in the section (for example, to 8180): Installation and Configuration 4. (Optional) Configure the original Alfresco Tomcat deployment. 5. Start the original Tomcat. You can use Alfresco-supplied batch files. 6. Ensure that a copy of the commons-el.jar file is in the Share Tomcat lib directory. 7. If you are running the Share Tomcat on a separate machine, you must modify the override file in the Share Tomcat web-extension directory, as follows: 1. Open the webscript-framework-config-custom.xml file. 2. Change any instance of the server and port to the correct name or IP address of the Alfresco server: http://:8080. 3. Start the new Share Tomcat. You can use copies of the Alfresco-supplied batch files, or your own. Installing Alfresco components This section describes how to install components that integrate with Alfresco. These can be installed any time before or after installing Alfresco. This section will take you through the installation of these components: • Alfresco WCM • WCM standalone deployment receiver • OpenOffice • ImageMagick • Microsoft Office Add-ins • Flash Player • SWFTools • TinyMCE language packs • Alfresco Module Package • Microsoft Office SharePoint Protocol Support Installing Alfresco WCM This section describes how to set up Alfresco Web Content Management (WCM) to an existing instance of Alfresco: 1. Browse to the Alfresco Community Edition download area. [ 54 ] Download from Wow! eBook Chapter 2 2. Select one of the following files: ° Windows: alfresco-community-wcm-3.2.zip ° Linux: alfresco-community-wcm-3.2.tar.gz 3. Download the file into the Alfresco home directory. For example: ° Windows: C:\Alfresco ° Linux: /opt/alfresco 4. Browse to the Alfresco home directory and unzip the downloaded file. 5. If your unzip program asks about existing directories, allow this because no existing files will be overwritten. 6. In the root of the Alfresco home directory, copy the wcm-bootstrap-context.xml file to the directory. 7. Restart the Alfresco server. This ensures that the Alfresco server starts to use the installed WCM components. To restart the Alfresco server, see the Starting the Alfresco server section further on in this chapter. WCM is installed and configured. Verifying the WCM installation Verify the WCM installation after you have installed, configured, and started the Alfresco server: 1. In the Alfresco home directory, open alfresco.log. 2. In alfresco.log, search for the following text: The Web Forms folder was successfully created: and The Web Projects folder was successfully created: 3. Check that the following additional spaces are in your Alfresco repository: ° Web Projects in Company Home ° Web Forms in Data Dictionary WCM has been installed, configured, started, and verified. To use the Website Preview feature, start the Alfresco virtualization server (see the Starting the Alfresco virtualization server section later in this chapter). [ 55 ] Download from Wow! eBook Installation and Configuration Installing the WCM standalone deployment receiver The standalone deployment receiver allows a web project from WCM to be deployed to a remote file server, typically a web or application server. The published files are then typically published by a web server such as Apache for static content, or an application server such as Tomcat or JBoss for dynamic content. To carry out the installation follow the steps mentioned below: 1. Browse to the Alfresco Community Edition download area. 2. Download one of the following files: ° Windows: Alfresco-DeploymentCommunity-3.2-Setup.exe ° Linux: Alfresco-DeploymentCommunity-3.2-Linux-x86-Install 3. At the Language selection prompt, click on OK. 4. At the Install Alfresco Standalone Deployment Receiver prompt, click on Yes. 5. In the Welcome to the Alfresco Standalone Deployment Receiver window, click on Next. 6. In the Choose Destination Location window, click on Next to accept the default location for Alfresco or choose another location. For example, C:\alfresco\deployment on Windows or /opt/alfresco/deployment on Linux. 7. In the Deployment Settings window, enter the following settings: Deployment setting Temporary Data Log Location Metadata Location Target Location Name of default filesystem target Description The directory in which to store temporary data files The directory in which to store log data The directory in which to store metadata The directory in which to store deployment files The default name of the filesystem target is default 8. For Windows directory locations, the backslashes need to be changed. For example, use C:\\directory1\\directory2. Alternatively, you can use the slash character as a separator, for example, C:/directory1/directory2. 9. Click on Next. 10. Enter a username and password for the user account that will administer the deployment receiver. [ 56 ] Download from Wow! eBook ... - tailieumienphi.vn