To add addon or subdomain outside the public_html folder in cpanel
WHM >> Tweak Settings and making sure “Restrict document roots to public_html” is set to “Off”
This would help in adding domani outside public_html folder
To add addon or subdomain outside the public_html folder in cpanel
WHM >> Tweak Settings and making sure “Restrict document roots to public_html” is set to “Off”
This would help in adding domani outside public_html folder
While install cpanel on Almalinux 8 had an issue where cpanel was not getting installed and stopping with error
024-03-21 11:12:42 449 307652: Public key for nscd-2.28-236.el8_9.12.x86_64.rpm is not installed. Failing package is: nscd-2.28-236.el8_9.12.x86_64
2024-03-21 11:12:42 449 307652: GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
2024-03-21 11:12:42 449 307652: The downloaded packages were saved in cache until the next successful transaction.
2024-03-21 11:12:42 449 307652: You can remove cached packages by executing ‘yum clean packages’.
2024-03-21 11:12:42 449 307652: Error: GPG check FAILED
2024-03-21 11:12:42 449 307652: – ssystem [EXIT_CODE] ‘/usr/bin/yum’ exited with 1
2024-03-21 11:12:42 449 307652: – ssystem [END]
2024-03-21 11:12:42 44 307652: cPanel is here to help! Our technical KnowledgeBase and cPanel Community is just a click away at https://support.cpanel.net/
2024-03-21 11:12:42 453 307652: yum failed 6 times. The installation process cannot continue.
...propagated at /home/cPanelInstall/selfgz307486/Installer.pm line 618.2024-03-21 11:12:42 44 [307540] ( INFO): cPanel is here to help! Our technical KnowledgeBase and cPanel Community is just a click away at https://support.cpanel.net/
2024-03-21 11:12:42 558 307540: ensure_pkgs_install failed: 256
The issue was due to Almalinux updated their GPG keys recently, and it appears the server may not have had the most up-to-date version.
Running command fixed the issue
rpm –import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
Now cpanel install is working fine
To install wkhtmltopdf plugin on Almalinux 8
Run the below commands
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 libpng libjpeg op
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 libpng libjpeg openssl icu libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
Last metadata expiration check: 1:05:20 ago on Tuesday 23 April 2024 03:08:54 AM PDT.
Package libpng-2:1.6.34-5.el8.x86_64 is already installed.
Package libjpeg-turbo-1.5.3-12.el8.x86_64 is already installed.
Package openssl-1:1.1.1k-12.el8_9.x86_64 is already installed.
Package libX11-1.6.8-6.el8.x86_64 is already installed.
Package libXext-1.3.4-1.el8.x86_64 is already installed.
Package libXrender-0.9.10-7.el8.x86_64 is already installed.
Installing:
icu x86_64 60.3-2.el8_1 baseos 243 k
xorg-x11-fonts-75dpi noarch 7.5-19.el8 appstream 2.8 M
xorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 k
Installing dependencies:
ttmkfdir x86_64 3.0.9-54.el8 appstream 62 k
Install 4 Packages
Total download size: 3.6 M
Installed size: 4.6 M
Downloading Packages:
(1/4): ttmkfdir-3.0.9-54.el8.x86_64.rpm 2.1 MB/s | 62 kB 00:00
(2/4): icu-60.3-2.el8_1.x86_64.rpm 6.8 MB/s | 243 kB 00:00
(3/4): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm 25 MB/s | 522 kB 00:00
Total 6.4 MB/s | 3.6 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : ttmkfdir-3.0.9-54.el8.x86_64 1/4
Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 2/4
Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 2/4
Installing : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Running scriptlet: xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Installing : icu-60.3-2.el8_1.x86_64 4/4
Running scriptlet: icu-60.3-2.el8_1.x86_64 4/4
Verifying : icu-60.3-2.el8_1.x86_64 1/4
Verifying : ttmkfdir-3.0.9-54.el8.x86_64 2/4
Verifying : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/4
Installed:
icu-60.3-2.el8_1.x86_64 ttmkfdir-3.0.9-54.el8.x86_64 xorg-x11-fonts-75dpi-7.5-19.el8.noarch xorg-x11-fonts-Type1-7.5-19.el8.noarch
Complete!
Download the RPM wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm from github
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm
yum install wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm
Last metadata expiration check: 1:09:05 ago on Tuesday 23 April 2024 03:08:54 AM PDT.
Installing:
wkhtmltox x86_64 1:0.12.6.1-2.almalinux8 @commandline 15 M
Install 1 Package
Total size: 15 M
Installed size: 124 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Running scriptlet: wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Verifying : wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Installed:
wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64
Complete!
To test the plugin is working run below command
wkhtmltopdf onlinesupport4u.in onlinesupport4u.pdf
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
To install Caldev on cpanel
cPanel by default does not install Calender.
you need to go to WHM >
Home /
cPanel /
Manage Plugins
And install Calendar and Contacts Server also need to enable it in feature manager
only after that calender function would be visible in cPanel
session timeout in Zorin Terminal
Session was geting auto logged off after 5 minutes of in-activity
journalctl -f showing below errors
pam_unix(cron:session): session opened for user root by (uid=0)
This was fixed by editing the file name /etc/pam.d/common-session-noninteractive
sudo vim /etc/pam.d/common-session-noninteractive
and adding new line
session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
and restart crond
sudo service cron restart
This fixed the issue
To Redirect from www to now www with https follow below steps
open .htacess file and add below rule
Replace domain.tld with your domain name
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.tld [NC]
RewriteRule ^(.)$ http://domain.tld/$1 [L,R=301]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.)$ https://%{HTTP_HOST}/$1 [L,R=301]
Change postfix mail sending IP
To change mail IP in Postfix need to change parameters in below file
vi /etc/postfix/main.cf
smtp_bind_address=192.168.10.10
once done restart postfix
Use the below command to set 755 to folder and 644 to file recirsively
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
cPanel comes with Default version Python 2.7
If you want to install second version Python 3.4 on server using rpm and via Source
First install epel repository
yum install epel-release
yum install python34
To install PIP on python2.4
yum install python3-pip
On getting the error in Magento
An error has happened during application run. See exception log for details
It can be fixed with below commands
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:Deploy -f
chmod -R 777 var/ generated/