Sunday, March 5, 2023
Remove header and footer text when click print button in Codeigniter
Wednesday, March 1, 2023
Generate specific range of numbers having specific digit in excel
The following function is for generating 8 digit unique number in excel and masked with 123:
=RANDBETWEEN(12300000,12399999)
Wednesday, February 22, 2023
Solved : Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?).
- Navigate to Software -> EasyApache4
- Click the button that says Customize next to Currently Installed Packages
- Click PHP Extensions
- Search for Fileinfo in the search bar and select the extensions you would like to install
- Click Review
- After looking over the proposed changes, scroll to the bottom of the screen and click provision.
- Install PHP FIleInfo Extension (if not installed)
- Enable php_fileinfo in php.ini
Monday, February 20, 2023
How to Install Nginx, MariaDB, PHP and Create Virtual Server Block with Nginx on AlmaLinux 8
Sunday, February 19, 2023
503 Service Unavailable : PHP-FPM issue
Error: 503 Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Solution:
systemctl start php80-php-fpm (if face the error follow the next command )systemctl status php80-php-fpm.service
ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
netstat -tulpn | grep -w 9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 884/php-fpm: master
kill 884
systemctl start php80-php-fpm
Note: Use your PHP version, PID and Port in the command. if netstat not works install net-tools first: yum install net-tools
How to Install PHP 8.0/8.1on Linux Centos 7
PHP 8.0 install
# yum install -y --enablerepo=remi-php80 php php-cli
Exntesions:
#yum install -y --enablerepo=remi-php80 php-mysqlnd
Method-1 for PHP 8.1
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum -y install yum-utils
yum-config-manager --disable 'remi-php*'
yum-config-manager --enable remi-php81
yum repolist
yum -y install php php-{cli,fpm,mysqlnd,zip,devel,gd,mbstring,curl,xml,pear,bcmath,json,opcache,redis,memcache}
Thursday, February 16, 2023
How to test PowerMTA SMTP using telnet
telnet localhost 25
ehlo localhost
mail from: username@from-domain.tld
rcpt to: username@to-domain.tld
data
Subject: PMTA SMTP Check
This is just an SMTP conf Check. You may disregard.
.
quit
tail -f /var/log/pmta/pmta.log
pmta show queues
Office 2021 Activation using command
@echo off title Activate Microsoft Office 2021 (ALL versions) for FREE - office.com&cls&echo =====================================...
-
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...