Wednesday, June 2, 2021

Install imap extension on PHP 7.x or Higher in CentOS 8

yum update -y 

yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 

yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm 

yum install -y php80-php-imap 

cp /opt/remi/php80/root/usr/lib64/php/modules/imap.so /usr/lib64/php/modules/ /bin/echo 'extension="imap.so"' > /etc/php.d/40-imap.ini 

systemctl restart php-fpm

Tuesday, June 1, 2021

Install PHP-mbstring on CentOS 8 for PHP 7.4



dnf install php-mbstring

dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm

dnf install php74-php-mbstring

Set Default PHP version in CentOS 8



sudo yum update

sudo reboot

sudo yum search php-

sudo yum module list php

sudo yum install yum-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm

sudo yum module list php
sudo yum module reset php
sudo yum module enable php:remi-7.4
## verify it php set to 7.4 ##
sudo yum module list php




sudo yum install php php-fpm




sudo yum install php-fpm php-common php-cli




php -v
php --version




sudo systemctl enable php-fpm.service




sudo systemctl start php-fpm.service
sudo systemctl status php-fpm.service

sudo systemctl stop php-fpm.service
sudo systemctl restart php-fpm.service

cat /etc/nginx/conf.d/php-fpm.conf

ls -l /run/php-fpm/www.sock

cat /etc/nginx/default.d/php.conf

sudo systemctl restart nginx.service

php --version

sudo vi /usr/share/nginx/html/hello.php

curl -I http://localhost/hello.php
curl http://localhost/hello.php

Bkash Merchant QR Code on WHMCS invoice

At the line number 104 of invoicepdf.tpl

 # QR Payment Code

$qrFilename = 'QR_INVOICE.png';

if (file_exists(ROOTDIR . '/assets/img/QR_INVOICE.png')) {

    $qrFilename = 'QR_INVOICE.png';

} elseif (file_exists(ROOTDIR . '/assets/img/logo.jpg')) {

    $qrFilename = 'logo.jpg';

}

$pdf->Image(ROOTDIR . '/assets/img/' . $qrFilename, 120, 110, 75);


$pdf->Ln(10);

Monday, May 31, 2021

Sendy Conjobs

 Cron job setup instructions appears in Sendy where appropriate:

  1. When you are at the ‘Define recipients’ page and you will see the cron job setup instructions note in a yellow box at the bottom (screenshot → http://go.sendy.co/sfO6HC)

  2. Inside any lists, click on the 'Autoresponders' button at the top right and you'll be shown the cron job setup instructions (screenshot → http://go.sendy.co/ASYhGx)

  3. When you're at the import CSV page, you'll see the cron job setup instructions in a yellow box (screenshot → http://go.sendy.co/F7iGZq)

  4. Inside any segments, you'll see the cron job setup instructions in a yellow box at the bottom (screenshot → http://go.sendy.co/IAE1aa)

For Example:


Cronjobs:
1. */5 * * * * php/home/u587798747/domains/domian.com/public_html/sendy/scheduled.php > /dev/null 2>&1

2. */1 * * * * php /home/u587798747/domains/domian.com/public_html/sendy/autoresponders.php > /dev/null 2>&1

3. */1 * * * * php /home/u587798747/domains/domain.com/public_html/sendy/import-csv.php > /dev/null 2>&1

4. */15 * * * * php /home/u587798747/domains/domain.com/public_html/sendy/update-segments.php > /dev/null 2>&1

Office 2021 Activation using command

  @echo off title Activate Microsoft Office 2021 (ALL versions) for FREE - office.com&cls&echo =====================================...