Deployment Steps

  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Deployment Steps as PDF for free.

More details

  • Words: 360
  • Pages: 2
Deployment Steps This is based on the fact that the server is a Linux box with PHP5, MySql 5, Apache2 is pre-installed on it along with JDK 1.5.0+ 1. Installing Solr a. Download the apache solr 1.3 release from http://mirrors.devlib.org/apache/lucene/solr/1.3.0/ b. Decompress the Solr release file apache-solr-1.3.0.zip c. Rename the directory to solr. d. Copy the entire director to the web root for eg if it is /var/www/html, copy the directory solr to /var/www/html e. This is where the configurations are located – conf/schema.xml and conf/solrconfig.xml f. Specify the indices directory in solr/conf/solrConfig.xml like ${solr.data.dir:/var/www/html/solr/data} Preferably in the solr directory itself.

2. Installation of Tomcat 5 or 5+from http://tomcat.apache.org/ 3. Install solr webapp on Tomcat a. Rename solr/dist/apache-solr-1.3.0.war to solr.war and copy to Tomcat webapps directory b. Change the tomcat/conf/server.xml file to add the URIEncoding Connector element

4. 5. 6.

7.

c. Add a Context entry in the tomcat for the solr and set solr home <Environment name="solr/home" type="java.lang.String" value="/opt/lampp/htdocs/solr" override="true" /> Here, docBase is the location of the solr war file Enviroment tag value property is the solr home directory d. Create setenv.sh in Tomcat/bin/ export CATALINA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=128m" and save it e. Restart the tomcat f. Check http://localhost:8080/solr/admin (Replace localhost with the actual IP) to ensure that solr is running properly Create a data directory in webroot/solr/ and copy solr indexes to this folder. Ensure that data directory is granted full permissions. Create two directories gofavo and gofavo Staging (for staging) inside the web root and copy the code (including php scripts, templates and smarty) in both the directories. Create and populate database from gofavodb.sql Create a virtual Host for gofavoStaging (Staging server) in Apache’s httpd.conf file ServerAdmin [email protected] DocumentRoot /var/www/html/gofavoStaging

ServerName dummy-host.example.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common
Here IP Address, ServerName, ErrorLog and CustomLog need to be changed according to the server.The ‘ServerName’ should be different from the actual site as it will serve as a staging server. 8. Restart apache server. 9. Check accessing the staging site with ServerName. 10. Check accessing the production server using the actual IP.

Related Documents

Deployment Steps
April 2020 16
Deployment
November 2019 89
Deployment
June 2020 60
Deployment
November 2019 77
Steps
November 2019 48