Category Archives: Programming

FreePBX SMTP voicemail with Gmail

  1. Add the following lines to /etc/postfix/main.cf file:
  2. Create the file /etc/postfix/sasl_passwd with the following contents:
  3. Restrict permissions on the postfix file:
  4. Hash the file into a .db that Postfix will read:
  5. Change the owner of the sasl_passwd to the postfix user:
  6. Reload postfix:

EasyApache4 install extension

 

Hex2Bin function

One host I know of refuses to upgrade anything and this is a hex2bin function in case you get :    

Install PostGres 9 on cPanel Server

I currently installed v9.6   1. Add it to repo 2. Install Packages 3. Add to exclude from yum update – edit /etc/yum.conf 3.a Create symlinks where cPanel Expects to find it 4. Install postGres in cPanel There is more information about back-up/etc here – https://documentation.cpanel.net/display/CKB/Install+or+Update+PostgreSQL+on+Your+cPanel+Server 5. Install symlinks 6. Initialize and configure to run at startup 7. Configure in WHM 8. Install/Update phpPgAdmin 9. Restart 10. Add to /etc/chkserv.d 11.Restart tailwatchd  

Setup PostGres DB/USER