Created
January 29, 2014 16:11
-
-
Save tegansnyder/8691289 to your computer and use it in GitHub Desktop.
Steps to install the SOLR PHP extension on RHEL. Installation is a little trickery because of how curl is built into PHP as a shared library and not statically compiled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install dependencies | |
sudo yum install curl-devel | |
sudo yum install libxml2-devel | |
# install extension for solr -- note use pear instead of pecl install | |
sudo pear install pecl/solr | |
# when it asks for libcURL path if you are on a 64bit machine | |
# change: | |
libcURL install prefix [/usr] : /usr/lib64 | |
sudo chmod 755 /usr/lib64/php/modules/solr.so | |
sudo vi /etc/php.d/solr.ini | |
# add: | |
extension=solr.so | |
# restart apache | |
sudo service httpd restart |
pecl config-set temp_dir /root/tmp
or:
pear config-set temp_dir /root/tmp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note you might need to change the tmp dir of pear/pecl before running the pear install: