Tuesday, June 6, 2023

Upgrde PHP 7.4/8.0/8.1/8.2 on CWP CentOS 7

You should put PHP version as you need:

Comands are as follows for shell:

--

dnf install oniguruma oniguruma-devel gcc make gcc-c++ cpp kernel-headers.x86_64 libxml2-devel openssl-devel bzip2-devel libjpeg-devel libpng-devel freetype-devel openldap-devel postgresql-devel aspell-devel net-snmp-devel libxslt-devel libc-client-devel libicu-devel gmp-devel curl-devel libmcrypt-devel pcre-devel sqlite-devel libdb-devel enchant-devel libXpm-devel mysql-devel readline-devel libedit-devel recode-devel libtidy-devel libtool-ltdl-devel libwebp libwebp-devel expat expat-devel libmemcached libmemcached-devel


--


dnf install libzip libzip-devel

dnf install cmake zlib-devel


--


cd /usr/local/src

rm -rf libzip*

wget https://libzip.org/download/libzip-1.9.2.tar.gz

tar zxvf libzip*

cd libzip*/

mkdir build

cd build

/usr/bin/cmake3 ..

make && make install


--


cd /usr/local/src

rm -rf pcre2*

wget https://github.com/PhilipHazel/pcre2/releases/download/pcre2-10.41/pcre2-10.41.zip -O pcre2.zip

unzip pcre2.zip

cd pcre2-*/

./configure

make && make install


--


cd /usr/local/src

rm -rf master* libavif-master*

wget https://github.com/AOMediaCodec/libavif/archive/refs/heads/master.zip

unzip master.zip

cd libavif-main

mkdir build-dir

cd build-dir

cmake ..

make

make install


--


export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig


--


mkdir -p /usr/local/php-82

cd /usr/local/php-82

wget http://php.net/distributions/php-8.2.0.tar.gz

tar zxvf php-8.2.0.tar.gz

cd php-8.2.0

./configure --with-config-file-path=/usr/local/php --enable-cgi --with-config-file-scan-dir=/usr/local/php/php.d --with-zlib=/usr --enable-mbstring --with-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --with-curl --with-iconv --with-gmp --with-pspell --enable-gd --with-avif --with-jpeg --with-freetype --enable-gd-jis-conv --with-webp --with-zlib-dir=/usr --with-xpm --with-openssl --with-pdo-mysql=mysqlnd --with-gettext=/usr --with-bz2=/usr --with-mysqli --enable-soap --enable-phar --with-xsl --with-kerberos --enable-posix --enable-sockets --with-external-pcre --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-intl --with-password-argon2 --enable-litespeed --with-ldap=/usr --with-ldap-sasl=/usr 

make

make install


--


php -v


You should see (if all went well):


PHP 8.2.0 (cli) (built: Dec 12 2022 17:57:50) (NTS)

Copyright (c) The PHP Group

Zend Engine v4.2.0, Copyright (c) Zend Technologies

Install CMAKE on centos 7

 yum remove cmake

wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
tar zxvf cmake-3.13.4.tar.gz
cd cmake-3.13.4
sudo ./bootstrap --prefix=/usr/local
sudo make
sudo make install
vi ~/.bash_profile

    ...
    # PATH=$PATH:$HOME/bin
    PATH=/usr/local/bin:$PATH:$HOME/bin
    export PATH

source ~/.bash_profile
cmake --version

Saturday, June 3, 2023

How To Install PHP (8.2, 8.1, 7.4,7.3) on Ubuntu 22.04

sudo apt update && sudo apt upgrade

sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https


LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt install php8.2

sudo apt install php8.1

sudo apt install php8.0

sudo apt install php7.4

sudo apt install php7.3

sudo apt install php5.6

apt-get install php*-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,xml,zip}

[If you use virtualmin then check PHP option to select your desired version]

Tuesday, May 9, 2023

Steps to configure after PowerMTA Installation

 Steps:

1. Setup PMTA

2. Install Open SSL & Make Certchain with key & cert

3. Create Selector,Generate DKIM public & Private keys 

4. Create CNAME with selector and point to TXT record having public key values

5. Create .pem file in specified directory and add corresponding DKIM private key(s)

6. Setup Master and Subordinate SPF

7. Set PTR & corresponding hostname for IPs

8. Set DMARC, BIMI , MTA STS record

9. Create & setup Domain config file

10. Create & setup PMTA config file 

11. Start PMTA, Test Deliverability

Sunday, May 7, 2023

Fix the Windows and Outlook “Indexing Is Paused” Error

Method-1: Registry Tweak
1. 
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\

or

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Search

2. Press “Windows Search” on the left, then double-click “PreventIndexingOutlook” on the right.

3. If you don’t have “Windows Search,” you can create it by right-clicking “Windows -> Edit -> New -> Key.” Name it accordingly, then create the “PreventIndexingOutlook” value by right-clicking an empty space on the menu on the right and selecting “New -> DWORD Value (32- bit).”

4. Once created, double-click it to adjust the “Base” to “Hexadecimal” and change “Value data” to “1,” then click “OK.”

5. Reboot Computer

Office 2021 Activation using command

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