• Home
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
  • CMS
    • Magento
    • Yahoo! Store

Install Sphinxsearch 2.3.2-beta

Saturday, 16 September 2017 02:46
Tim Ramsey
0 Comments
Installing on a fresh DO instance.
1
2
3
4
5
6
7
8
9
10
11
12
13
cd /tmp
sudo apt-get install libmysqlclient-dev build-essential php7.0-cli
wget -q -O- https://github.com/sphinxsearch/sphinx/archive/2.3.2-beta.tar.gz | tar -xz -C .
cd sphinx-2.3.2-beta
./configure --prefix=/etc/sphinxsearch
make
sudo make install
cd ..
rm -rf sphinx-2.3.2-beta
 
mkdir /usr/local/etc/configs
mkdir /var/lib/sphinxsearch/data/sites
chmod 777 sites
 

Install Sphinx Search on cPanel

Monday, 11 September 2017 20:00
Tim Ramsey
0 Comments
Move into /tmp directory and get latest release.  You can get the latest release from http://sphinxsearch.com/downloads/
1
2
cd /tmp
wget http://sphinxsearch.com/files/sphinx-2.3.2-beta.tar.gz
Uncompress
1
tar -zxf 'sphinx-2.3.2-beta.tar.gz'
Create directory
1
mkdir /usr/local/sphinx
Enter the Uncompressed directory
1
cd sphinx-2.3.2-beta
Configure to use the directory we created above and to use mysql and postgresql
1
./configure --prefix=/usr/local/sphinx --with-mysql --with-pgsql
Build
1
2
make
make install
Create Configuration File
1
cp -pr /usr/local/sphinx/etc/sphinx.conf.dist /usr/local/sphinx/etc/sphinx.conf
Create Start-up Script
1
nano /etc/init.d/searchd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
case "${1:-''}" in
'start')
/usr/local/sphinx/bin/searchd
;;
'stop')
/usr/local/sphinx/bin/searchd --stop
;;
'restart')
/usr/local/sphinx/bin/searchd --stop && /usr/local/sphinx/bin/searchd
;;
*)
echo "Usage: $SELF start|stop|restart"
exit 1
;;
esac
Make Script Writable
1
chmod 755 /etc/init.d/sphinx
Start the Service
1
/etc/init.d/searchd start
Create chkservd file
1
2
nano /etc/chkserv.d/searchd
service[searchd]=x,x,x,/etc/init.d/searchd restart,searchd,root|searchd
Add to /etc/chkserv.d/chkservd.conf
1
searchd:1
Restart Tailwatch
1
/scripts/restartsrv_tailwatchd
 

Free SSL from cPanel for WHM Server/Services

Saturday, 22 July 2017 14:20
Tim Ramsey
0 Comments
WHM » Service Configuration » Manage Service SSL Certificates

click “Browse Certificates” and use “Browse Account: root”.

You should see a certificate for your ‘server.domain.com’ and the Issuer column should say: cPanel, Inc.

If you do not see this, and they all say Issuer: “Self signed”, then go into SSH and run the following command:

Code:
1
# /usr/local/cpanel/bin/checkallsslcerts
You may have to run it a few times as the first time you run it, it usually says about putting the SSL into queue until it runs again, so running

Code:
1
# /usr/local/cpanel/bin/checkallsslcerts
a second time, will have it actually generate the SSL.

Then go back to Manage Service SSL Certificates in WHM and select the cPanel, Inc issued SSL, and check the 4 services boxes and then click install.

Steps for restoring FreePBX with backup

Monday, 12 June 2017 16:39
Tim Ramsey
0 Comments
  1. Install OS – Choose NO Raid if using Hardware raid
  2. Visit Restore Page in GUI – http://IP/admin/config.php?display=backup_restore (will need to setup admin user after #1)
  3. Upload Back-up (Make sure voicemail and unavail messages are present for the extensions – /var/spool/asterisk/voicemail/default/EXTENSION #/
  4. Setup Gmail Voicemail SMTP – http://blog.truelightdesigns.com/freepbx-smtp-voicemail-with-gmail/
  5. Setup the Cron JOB back up to auto delete message after x days

Page 8 of 15

  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • Next

Categories

  • CMS
    • Magento
    • Shopify
    • Yahoo! Store
  • Programming
    • API
      • Google
    • Javascript
    • Php
    • Server
    • SVN
  • VOIP

Recent Posts

  • How to write to Google Sheet with API in PHP
  • How to Migrate FreePBX server to a new server
  • Unifi Controller Java CPU 100%
  • Update Unifi Controller on Linux
  • Code Signing Desktop App