Showing posts with label Webmin. Show all posts
Showing posts with label Webmin. Show all posts

Saturday, May 6, 2023

Popular Web hosting control panel

1 Plesk
2 Control Web Panel (CWP)
3 ISPConfig
4 Virtualmin
5 ispmanager
6 Vesta Control Panel
7 DirectAdmin
8 Ajenti
9 Sentora
10 BlueOnyx
11 cPanel
12 Froxlor
13 Easy Hosting Control Panel
14 Webmin
15 ApisCP
16 aaPanel
17 Zesle Control Panel
18 CyberPanel

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

Saturday, January 21, 2023

How to Extend Swap Space using Swap file in Linux

dd if=/dev/zero of=/swap_file bs=1G count=1

sudo fallocate -l 1G /swap_file

chmod 600 /swap_file

mkswap /swap_file

echo "swap_file swap swap defaults 0 0" >> /etc/fstab 
or 
vi /etc/fstab/swap_file swap swap defaults 0 0

swapon /swap_file

Tuesday, September 20, 2022

Two-Factor Authentication (2FA) for Webmin with Google Authenticator

First install Perl Modules :
https://blog.olineit.com/2022/09/install-perl-cpan-module-in-centos-8.html

Then follow the instructions as given through the URL:
https://devtutorial.io/how-to-install-two-factor-authentication-2fa-for-webmin-p2845.html

Tuesday, June 14, 2022

Install only Webmin in CentOS

sudo vi /etc/yum.repos.d/webmin.repo

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1


wget http://www.webmin.com/jcameron-key.asc
sudo rpm --import jcameron-key.asc

sudo yum install webmin

Follow the command to instll Virtualmin:

~# wget https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh

~# sudo sh virtualmin-install.sh

Monday, August 9, 2021

Install only Webmin without Lamp Stack

$ sudo nano /etc/apt/sources.list

$ deb http://download.webmin.com/download/repository sarge contrib

$ wget http://www.webmin.com/jcameron-key.asc 

$ sudo apt-key add jcameron-key.asc

$ sudo apt update 

$ sudo apt install webmin

Saturday, April 17, 2021

Install Webmin on Ubuntu 20.04


sudo apt update
sudo apt install wget apt-transport-https software-properties-common
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
sudo apt install webmin
sudo systemctl status webmin
sudo ufw allow 10000/tcp
sudo ufw reload
https://server-ip:10000/

Thursday, April 15, 2021

Install extensions for PHP 7.4 on Ubuntu 20

sudo apt-get install php7.4-cli php7.4-fpm php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip


or 

sudo apt update
sudo apt install php7.4
sudo apt install php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap php7.4-zip php7.4-intl -y

Tuesday, February 23, 2021

How to Download and Install Virtualmin || Ubuntu 20.04

The easiest way to get the install script onto your server, is to login to your server and use wget or curl. For example:


# wget http://software.virtualmin.com/gpl/scripts/install.sh

For Virtualmin Professional, use the command suggested on your Software Licenses page.


Run the Install Script and Configure Virtualmin

Execute the downloaded install script using a command like the following:

sudo /bin/sh install.sh

Monday, February 22, 2021

PHP files prompts downloaded instead of executed in FCGId URL



In "/etc/apache2/mods-enabled/php.conf" (replace php with your filename, depending on the php version you're using - in my case it was php7.2.conf) comment out the following two lines:

SetHandler application/x-httpd-php

SetHandler application/x-httpd-php-source

Restart the apache server via the following command:

sudo service apache2 restart

Now set your webstite to FCGId (Virtualmin -> Server Configuration -> Website options -> PHP script execution mode ) and it should work properly.

Upload file to server using Power Shell Command

 scp file_name.zip username@server_ip/server_address:/directory_path