How-to install mnoGoSearch on Debian

mnoGoSearch tested with a fresh cloud.runabove.com Debian 7.5 instance :

sudo nano /etc/apt/sources.list
#Only jessie distrib
---> deb http://ftp.debian.org/debian jessie main
---> deb-src http://ftp.debian.org/debian jessie main

#Update package list
sudo apt-get update

#Upgrade distrib with new distrib repository
sudo apt-get upgrade

#Install MySQL & PhpMyAdmin BEFORE mnoGoSearch
sudo apt-get install mysql-server phpmyadmin

#Create a new db
---> create new db db_test_mnogo at http://IP/phpmyadmin/

#Go in the /tmp/ directory for instance
cd /tmp/

#Download mnogoSearch package
wget http://www.mnogosearch.org/Download/deb/mnogosearch_3.3.13-1.static_amd64.deb

#Uncompress and install
sudo dpkg -i mnogosearch_3.3.13-1.static_amd64.deb

#Go to the newly created mnoGoSearch directory
cd /etc/mnogosearch

#Backup and rename the conf file
sudo cp indexer.conf-dist indexer.conf

#Setup mnoGoSearch to work with MySQL
sudo nano indexer.conf
---> replace DBAddr  mysql://root:passmysql@localhost/db_test_mnogo/?dbmode=blob
---> add Server http://www.website-i-want-to-crawl.com/ near the end of the file

#Go to the exe file directory
cd /usr/sbin/mnogosearch

#Create DB
./indexer -Ecreate
#run
./indexer
Enjoy :)

Official doc : http://www.mnogosearch.org/doc33/msearch-indexing.html

RunAbove : Install de Docker, Elasticsearch, Logstash et Kibana

RunAbove : Install Docker, Elasticsearch, Logstash et Kibana
sudo echo "deb http://http.debian.net/debian wheezy-backports main" | sudo tee -a /etc/apt/sources.list.d/debian_wheezy_backports.list
sudo apt-get update
sudo apt-get install -t wheezy-backports linux-image-amd64
sudo apt-get install curl
curl -sSL https://get.docker.com/ | sh
sudo docker pull digitalwonderland/elasticsearch
sudo docker run --rm --name elasticsearch --publish 9200:9200 --publish 9300:9300 -e ELASTICSEARCH_CLUSTER_NAME=my-cluster digitalwonderland/elasticsearch -Des.node.name=node-1

How-to Install Elasticsearch on Debian 7 OVH VPS

install python-software-properties :

apt-get install python-software-properties

install a non official repository Oracle Java :

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update

install Oracle JDK 7

apt-get install oracle-java7-installer

Download and install the Elasticsearch Public Signing Key

wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -

Add the following to your /etc/apt/sources.list to enable the repository

deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main

Run apt-get update and the repository is ready for use. You can install it with :

apt-get update && apt-get install elasticsearch

KnpPaginatorBundle Translation

Make the following directory :

{YourSymfonydirectory}/vendor/knplabs/knp-paginator-bundle/Knp/Bundle/PaginatorBundle/Resources/translations

For French language, make the file:

messages.fr.xliff

There are other possible formats, but as said by Symfony founders  :

This “dictionary” of translations can be created in several different formats, XLIFF being the recommended format

So add this content if you want a French translation in the proper way :

<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
    <file source-language="en" datatype="plaintext" original="file.ext">
        <body>
            <trans-unit id="1">
                <source>Next</source>
                <target>Suivant</target>
            </trans-unit>
            <trans-unit id="2">
                <source>Previous</source>
                <target>Précédent</target>
            </trans-unit>
         </body>
    </file>
</xliff>

Read more about translating in Symfony :
http://symfony.com/doc/current/book/translation.html