Example apps using php with apache solr
- PHP Version: >= 5.3
- Solr
- PHP Solr Extension
- Java SDK (7)
- Download Solr
- Extract
- Go to extracted solr folder
- 'cd' to example folder
- java -jar start.jar
- PORT : 8983 -> http://localhost:8983/solr
Based on Debian/Ubuntu :
- sudo apt-get install php5-curl
- sudo apt-get install libcurl4-gnutls-dev
- sudo apt-get install libxml2
- sudo apt-get install libxml2-dev
- sudo pecl install -n solr
- sudo vim /etc/php5/conf.d/solr.ini
- after open/create solr ini file, then add : "extension=solr.so"
- restart your webserver or maybe php5-fpm services