By default, on Ubuntu, SphinxSearch is using /etc/sphinxsearch/sphinx.conf and /etc/default/sphinxsearch to start/stop daemon. If you need to use specific command line options (like -c ), you need to update your /etc/init.d/sphinxsearch In the do_start() function, change the line : start-stop-daemon –start –pidfile $PIDFILE –chuid www-data –exec ${DAEMON} with start-stop-daemon –start –pidfile $PIDFILE –chuid www-data –exec ${DAEMON} …
Distro
Install a specific version of sphinxsearch on Ubuntu 14.04
Current version of sphinx on Ubuntu 14.04 is 2.0.* If you need a more recent version, you can find a .deb package directly on Sphinx website : http://sphinxsearch.com/downloads/release/ Pick-up your package and install it locally : $ wget http://sphinxsearch.com/files/sphinxsearch_2.2.6-release-0ubuntu12~trusty_amd64.deb $ dpkg -i sphinxsearch_2.2.6-release-0ubuntu12~trusty_amd64.deb $ searchd -h Sphinx 2.2.6-id64-release (r4843) Copyright (c) 2001-2014, Andrew Aksyonoff Copyright …
Create a chrooted ssh user with Ubuntu and jailkit
I have a website hosted in /var/www/mydomain I want to create a chrooted ssh account to give access to a shell to my developers to execute commands and check logs. This is just a raw transcript how I did it with jailkit : $ apt-get install build-essential autoconf automake libtool flex bison debhelper binutils-gold $ …
Nginx and worker_connections are more than open file resource limit warning
If you encounter this warning message under Linux: 2009/03/09 21:23:19 [warn] 26827#0: 4096 worker_connections are more than open file resource limit: 1024 A solution is to use the command ulimit in nginx start script, just before lunching nginx: […] ulimit -n 65536 […]
Debian Lenny and perl locales warning messages
If like me you just have upgraded your Debian system to Lenny, you probably encounter the following warnings while launching perl: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = “fr_FR.UTF-8” are supported and installed on your system. perl: …
Use multiple memcached daemons on FreeBSD
As you may know, when using memcached on 32-bit servers, processes can only address 4GB of virtual memory making the memcached daemon handle only 2 or 3 Gb of memory. If you want to address more memory, you need to launch multiple memcached daemons. I wrote an rc script , mmemcached, for FreeBSD to manage …
Follow your debian server updates by email with apticron
apticron is a shell script that send you an email report when new packages are available on your debian server. Install apticron As root, do: apt-get install apticron apticron configuration via /etc/apticron/apticron.conf To receive reports on your email change the EMAIL variable in the configuration file. By default, reports are sent to the root user. …