Thanks to visit codestin.com
Credit goes to www.scribd.com

100% found this document useful (3 votes)
445 views2 pages

Deployment Steps

This document provides 10 steps to deploy Solr, Tomcat, and a PHP application on a Linux server with Apache and MySQL already installed. The steps include downloading and configuring Solr, installing Tomcat, configuring Tomcat to run Solr, creating data directories, copying code and database, and setting up virtual hosts for the production and staging sites.

Uploaded by

devyanirai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
445 views2 pages

Deployment Steps

This document provides 10 steps to deploy Solr, Tomcat, and a PHP application on a Linux server with Apache and MySQL already installed. The steps include downloading and configuring Solr, installing Tomcat, configuring Tomcat to run Solr, creating data directories, copying code and database, and setting up virtual hosts for the production and staging sites.

Uploaded by

devyanirai
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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
<dataDir>${solr.data.dir:/var/www/html/solr/data}</dataDir>
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
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
c. Add a Context entry in the tomcat for the solr and set solr home
<Context path="/solr" docBase="/opt/jakarta-tomcat-5.0.25/webapps/solr.war" debug="0"
crossContext="true">
<Environment name="solr/home" type="java.lang.String"
value="/opt/lampp/htdocs/solr" override="true" />
</Context>
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
4. Create a data directory in webroot/solr/ and copy solr indexes to this folder. Ensure that data
directory is granted full permissions.
5. 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.
6. Create and populate database from gofavodb.sql
7. Create a virtual Host for gofavoStaging (Staging server) in Apache’s httpd.conf file

<VirtualHost IP Address(like 192.168.35.13)>


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
</VirtualHost>

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.

You might also like