1

Has anyone worked on installing solr on C9? I am currently have laravel on c9 but wasn't aware if solr can be installed in that environment. I am planning on laravel + solr in c9.

Thank you.

Laerte
  • 7,013
  • 3
  • 32
  • 50

1 Answers1

0

Run the following commands to install solr

sudo apt-get install libcurl4-gnutls-dev libxml2 libxml2-dev
sudo apt-get install libpcre3-dev
sudo pecl install -n solr

Then run

echo "extension=solr.so" >> /home/ubuntu/workspace/php.ini

to add it to your php.ini file. (Asuumming your php.ini file is located at /home/ubuntu/workspace/php.ini.)

Finally, run

sudo echo "extension=solr.so" > /etc/php5/apache2/conf.d/solr.ini

To add it to your solr.ini file.

baranskistad
  • 2,176
  • 1
  • 21
  • 42