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

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

FreePBX SMTP voicemail with Gmail

Monday, 12 June 2017 15:45
Tim Ramsey
0 Comments
  1. Add the following lines to /etc/postfix/main.cf file:
    1
    2
    3
    4
    5
    relayhost = [smtp.gmail.com]:587
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    smtp_sasl_security_options = noanonymous
    smtp_use_tls = yes
  2. Create the file /etc/postfix/sasl_passwd with the following contents:
    1
    [smtp.gmail.com]:587 user.name@gmail.com:password
  3. Restrict permissions on the postfix file:
    1
    chmod 400 /etc/postfix/sasl_passwd
  4. Hash the file into a .db that Postfix will read:
    1
    postmap /etc/postfix/sasl_passwd
  5. Change the owner of the sasl_passwd to the postfix user:
    1
    chown postfix /etc/postfix/sasl_passwd
  6. Reload postfix:
    1
    /etc/init.d/postfix reload

Page 6 of 13

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

Categories

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

Recent Posts

  • Github permission denied from cPanel
  • Magento 2 Remove version signing static files
  • Composer Memory Limit Issues when updating/installing
  • Installing WHM/Cpanel on Digital Ocean
  • Setup of AWS RTMP Server with EFS