sphinxsearchHow do I configure Sphinx search to use an extension?
Configuring Sphinx search to use an extension is a simple process. First, you will need to install the extension via the command line. For example, if you wanted to install the MySQLi extension you would use the following command:
$ sudo apt-get install php7.0-mysql
Once the extension is installed, you will need to enable it in the php.ini file. This can be done by adding the following line to the php.ini file:
extension=mysqli.so
After the extension is enabled, you will need to restart the web server for the changes to take effect. This can be done with the following command:
$ sudo service apache2 restart
Once the web server is restarted, you will be able to use the extension with Sphinx search.
Code explanation
$ sudo apt-get install php7.0-mysql- Installs the extension via the command lineextension=mysqli.so- Enables the extension in thephp.inifile$ sudo service apache2 restart- Restarts the web server for the changes to take effect
Helpful links
More of Sphinxsearch
- How do I install Sphinxsearch on Ubuntu?
- How do I use SphinxSearch with XMLPipe2?
- How do I install and configure Sphinxsearch on Ubuntu?
- How do I access and use the SphinxSearch source code?
- How do I use the word count ranker in SphinxSearch?
- How can I use Sphinx Search to generate word forms?
- How can I use Sphinx Search with Python to create an example application?
- How can I adjust the persistent connections limit in SphinxSearch?
- How can I use SphinxSearch with Node.js?
- How do I find the version of Sphinx Search I'm using?
See more codes...