Uncategorized

Fixing Voyager issue in Laravel 7

Have you tried running php artisan voyager:install but you keep getting an error that a VoyagerServiceProvider.php file is missing.

All your artisan commands are also throwing this error too.

Checking the vendor folder, I found that the tcg/voyager folder was empty and after hours of research I found a solution:

Step 1:

Go to https://github.com/the-control-group/voyager and clone this repo .

Step 2:

Unzip this repo and copy the content of the src folder into your vendor/tcg/voyager folder.

Step 3:

Run composer dump-autoload and php artisan cache:clear to be sure nothing is being cached.

Step 4:

Run your php artisan voyager:install command again.

Redis for Laravel

When running laravel you get errors if redis is allowed in the .env file.

  • sudo apt install php-dev php-pear
  • sudo pecl install redis
  • sudo nano /etc/php/8.0/mods-available/redis.ini
  • extension=redis.so
  • sudo systemctl restart apache2

Issabel – how to change recording location

In Issabel, you can change the recordings location by modifying the “monitor” settings in the asterisk configuration files.

Here are the steps to change the recordings location:

  1. Log in to your Issabel server using SSH.
  2. Navigate to the Asterisk configuration directory by running the command: cd /etc/asterisk/.
  3. Edit the logger.conf file by running the command: nano logger.conf.
  4. Scroll down until you find the section that starts with [general].
  5. Look for the line that starts with dir= under the [general] section. This is where you can set the default directory for your recordings. By default, it should be set to /var/spool/asterisk/monitor.
  6. Change the directory to your desired location for the recordings. For example, you could set it to /home/issabel/recordings.
  7. Save the changes to the logger.conf file and exit the text editor.
  8. Restart the Asterisk service by running the command: systemctl restart asterisk.

After making these changes, all future recordings will be stored in the new directory that you specified.

Disable weak algorithms at the server side

1. First, we log into the server as a root user.

2. Then, we open the file sshd_config located in /etc/ssh and add the following directives.

Ciphers aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,hmac-sha1
KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1

Asterisk Call parking : adding more time

Issabel uses the default call parking module from issabel. Sometimes the module default time is set to 45 seconds. To change the call park time in issabel you need to edit the following file.

/etc/asterisk/features_general_additional.conf

and add the following line after pickupexten=*8.

parkingtime =>300 (this equates to 5 Minutes)

save and reload your asterisk application.

Search for large files

In Linux sometimes you need to locate the largest file in your system. To do so, you need to select the mount location when searching.

sudo du -aBm / 2>/dev/null | sort -nr | head -n 10

Installing Bitrix24 on premise

Bitrix Environment for Linux (RPM)
Installation Instructions
Install sequence:

wget https://repo.bitrix.info/yum/bitrix-env.sh

chmod +x bitrix-env.sh

./bitrix-env.sh

Before or after installation, the Bitrix product must be allowed access to the following
TCP ports in order to function properly:
80 http
443 https
5222 bitrix xmpp server
5223 bitrix xmpp ssl server
25 bitrix smtp server
8890 ntlm authentication
8891 ntlm authentication via ssl
8893 pull server (http)
8894 pull server (https)

Likewise, if you intend to use Bitrix SMTP, you will need to turn off sendmail or other
SMTP services installed by default.

chkconfig sendmail off

service sendmail stop