Tuesday, June 1, 2021
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:
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)
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)
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)
Inside any segments, you'll see the cron job setup instructions in a yellow box at the bottom (screenshot → http://go.sendy.co/IAE1aa)
Tuesday, May 18, 2021
Sunday, May 16, 2021
Upgrade PHP 7.3, 7.4 or 8.0 on CentOS 8
yum -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm && yum clean all
yum -y install php73-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache}
yum -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd,opcache}
Saturday, May 1, 2021
How to extract Gmail, Yahoo, Hotmail, Live etc. in excel:
(Suppose you applied the following formula in D column)
=RIGHT(A2,LEN(A2)-SEARCH("@",A2))
Now to the next of D column you can write following formula to separate specific ESP
=if(d2=”gmail.com”,”Gmail”,if(d2=”live.com”,”Live”,if(d2=”hotmail.com”,”Hotmail”,if(d2=”yahoo.com”,”Yahoo”,if(d2=”aol”,”Aol”)))))
How to extract a substring that comes after or before a specific symbol like @ in excel?
How to get Ranking of the Students in Excel using RANK Function
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...
-
Put the following code in a TXT file and save as "file.cmd" then run the cmd file as administrator. @echo off title Activate Micr...
-
We can install PowerMTA on the server. rpm -ivh /home/PowerMTA-4.0r6.x86_64.rpm You will see the output like this Preparing... #############...
-
# $Id: config 2015-03-24 16:00:00 Jack $ # Sample PowerMTA configuration file # PowerMTA Multiple Virtual PMTA config file sample # # E-mai...