Dev {Tricks}

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting
You are here: Home / Archives for Server and Hosting / Web Control Panel / CentOS Web Panel

April 10, 2022 by dev

Missing vmail Folders .Sent, .Trash, .Drafts, .Junk, and Other

  • Missing Sent, Trash, Drafts, Junk, and Other Folders

Solution: Check whether the dot files are hidden. Make the dot files to show.

Horde

  • Click on the Folder Actions option.
  • Choose the Rebuild Folder List option.
  • Then choose the Show All Mailboxes option.

Roundcube

  • Go to Settings.
  • Click Folders.
  • Re-subscribe to each folder by clicking the check box.

Windows Mail

  • Click IMAP Folders.
  • In the Show/Hide IMAP Folders dialog box, select a folder.
  • Click Show.

Thunderbird

  • In the Folder pane, look for IMAP mail and right-click on it.
  • Go to Settings, click on Server Settings, then select Advanced.
  • Remove the checkmark on Show only Subscribed folders.
  • Click OK.

Microsoft Outlook Express

  • Under Folders on the left side of the screen, select the inbox for your email (NOT the one under Local Folders).
  • Click the Tools menu, then select IMAP Folders.
  • Select the desired folder(s).
  • Click Show.
  • Click OK.

Filed Under: AWS, Bluehost, CentOS Web Panel, Cloudcone, Contabo, cPanel, Digitalocean, DirectAdmin, Email, Email Solutions, Error and Fix, Find & fix, HostGator, How to, ISPConfig, Plesk, Postfix, Roundcube, Server and Hosting, SSH, Thunderbird, Usermin, Virtualmin, VPS Management, VPSDime, Web Control Panel, WebMail, Webmin, WHM Tagged With: Entourage, Eudora, Horde, iPhone, iPod Touch, Mac OS X Mail Client, Microsoft Outlook Express, Outlook, Roundcube, Thunderbird, Windows Live Mail, Windows Mail

April 8, 2022 by dev

How to Add and Remove Swap Space on Ubuntu 20.04

Generally, the size of the swap file depends on how much RAM your system has:

  • Less than 2 GB RAM – 2 times the amount of RAM.
  • 2 to 8 GB RAM – the same size as the amount of RAM.
  • More than 8 GB RAM – at least 4 GB of Swap.

Only root or user with sudo privileges can activate the swap file.

1). First, create a file that will be used as swap:

sudo fallocate -l 2G /swapfile

2). Set the file permissions to 600 to prevent regular users to write and read the file:

sudo chmod 600 /swapfile

3. Create a Linux swap area on the file:

sudo mkswap /swapfile

4). Activate the swap file by running the following command:

sudo swapon /swapfile

5). To make the change permanent open the /etc/fstab file:

sudo vi /etc/fstab

and paste the following line:

/swapfile swap swap defaults 0 0

6). Verify that the swap is active by using either the swapon or the free command, as shown below:

sudo swapon --show

and

sudo free -h

Adjusting the Swappiness Value

On Ubuntu, the default swappiness value is set to 60. You can check the current value by typing the following command:

cat /proc/sys/vm/swappiness

While the swappiness value of 60 is OK for most Linux systems, for production servers, you may need to set a lower value.

sudo sysctl vm.swappiness=10

To make this parameter persistent across reboots, append the following line to the /etc/sysctl.conf file:

vm.swappiness=10

Removing a Swap File

To deactivate and delete the swap file, follow these steps:

1). First, deactivate the swap space:

sudo swapoff -v /swapfile

2). Next, remove the swap file entry from the /etc/fstab file.

/swapfile swap swap defaults 0 0

3). Finally, remove the actual swapfile file using the rm command:

sudo rm /swapfile

 

Filed Under: AWS, Bluehost, CentOS Web Panel, Cloudcone, Contabo, cPanel, Digitalocean, DirectAdmin, HostGator, How to, ISPConfig, Plesk, Server and Hosting, VPS Management, VPSDime, Webmin

April 8, 2022 by dev

Xauthority does not exist

  • /usr/bin/xauth: file /root/.Xauthority does not exist

Solution

Go into the sshd_config file

vi /etc/ssh/sshd_config

Search and remove the # sign at the beginning of the 3 lines

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

Then restart sshd

systemctl restart sshd

Exit and login again. You will not get the error.

 

Or

Create n new file: touch ~/.Xauthority

Log out and login in again.

Filed Under: AWS, Bluehost, CentOS Web Panel, Cloudcone, Contabo, cPanel, Digitalocean, DirectAdmin, HostGator, ISPConfig, Plesk, Server and Hosting, VPS Management, VPSDime, Webmin, WHM Tagged With: linux, restart sshd, sshd, ubuntu, Xauthority

April 8, 2022 by dev

How to Zip and Unzip Files and Directories in Linux

  • Zip Command
  • How to zip files
  • How to zip directory / directories
  • How to Test if a ZIP File is Valid
  • How to unzip a zip
  • How to unzip a zip to a different directory

zip Command

zip OPTIONS ARCHIVE_NAME FILES

To zip one or more files

zip archive-name.zip filename1 filename2 filename3

Create a zip archive of a directory including the content of sub-directories. The -r option allows to traverse the whole directory structure recursively:

To zip one directory including sub-directories.

zip -r archive-name.zip directory-name

To add multiple files and directories in the same archive

zip -r archive-name.zip directory-name1 directory-name2 file1 file2

How to Test if a ZIP File is Valid

unzip -t archive-name.zip

This is useful if you think the zipped file has been damaged or corrupted.

To extract a zip file in the same directory

unzip archive-name.zip

To extract a zip file to a different directory

unzip -d archive-name.zip /path-to-unzip

The –d switch tells the system to put the unzipped files somewhere else.

To overwrite unzipped files/folders

unzip -o archive-name.zip

 

Filed Under: AWS, Bluehost, CentOS Web Panel, Cloudcone, Contabo, cPanel, Digitalocean, DirectAdmin, HostGator, How to, ISPConfig, Plesk, Server and Hosting, SSH, VPS Management, VPSDime, Webmin Tagged With: cli zip, linux zip command, ssh zip, ssh zip command, unzip, zip, zip cli

February 14, 2022 by dev

Migrate Accounts from CWP to CWP

To perform the migration you must follow a few simple steps:

  1. Generate an API Key on your Source CWP server.
    • CWP Settings >> API Manager
      (You can click on the CWP to CWP button and you will have the necessary options selected.)
  2. For the correct operation of this tool you must open port 2304 in the firewall of Source/Destination server.
    • Security >> CSF Firewall
  3. Open SSH port of the destination server if other than 22 in the firewall.
  4. Whitelist destination IP address.

 

Source server (Old Server)

To create a connection to your remote/source CWP server first you must generate an API Key on your Source CWP server, To create an API key/token, use API Manager (CWP Settings >> API Manager). You can click on the CWP to CWP button and you will have the necessary options selected.

Log in to the CWP panel.

  • First check your SSH port

    • Go to Services config > SSH Configuration
    • Or login to terminal and check
vi /etc/ssh/sshd_config
    • Port 2251
    • By default the port is 22, if you did not change it.
    • Then check and open TCP port. Note that you must have to add the port 2304 additionally for migration to done successfully.
  • Go to Dashboard, then click on Firewall
    • You will find “Opened TCP \ UDP ports” on the right sidebar
    • If it is not listed to TCP IN and TCP OUT
    • Go to Firewall Configuration > Main Configuration on top menu of this page
    • This will open Contents of File: /etc/csf/csf.conf
    • Go to #Allow incoming TCP ports and add your port. In my case Port 2251 and extra port for migration 2304
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096,2304,2251"

# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,587,993,995,2080,2443,2304,2251"
    • Save Changes
    • Go back to dashboard and go to Firewall again to check the port in TCP IN and OUT.
    • If everything ok, restart Firewall from the top of the menu.
  • Go back and add your Destination IP to whitelist.

    • Firewall Whitelist configuration > Add an entry add the Destination IP (New IP) and restart the firewall.
    • Note that if you whitelist IP you need not open port in all cases except Amazon S3, Google Cloud, Microsoft Azure or etc.
  • Now lets setup API connection

    • Go to CWP settings and select the option API Manager.
    • On the right top, you will find the button ‘Allow new API access’.
    • Click on it and you will get a popup window with a bunch of options.
      • Short Name: API Name. bdhostit
      • Ip Origin: Destination server IP that you want to authorize this API.
      • Key code: Click on “Generate” and save it somewhere.
        GaKPCAv3qCGpfTd2fr5IQIaxmxCIZjQJKLGgOsGHHltJa4vmpft180kfIzKfbhpB34B9HA
      • Owner: root
      • Format Request: JSON
        Select the JSON format and enable the function for the cwp to cwp move.
      • You can select CWP to CWP option to enable all functions for CWP to CWP migration.
    • Enable Functions for
      • CWP to CWP
      • WHMCS
      • CLUSTER CWP
      • OR
        You can set permission to the API to do the transfer manually.
    • The necessary functions are
      • Account (add, list)
      • Packages (add, list)
      • MySQL Databases (add, list)
      • MySQL Users (add, list)
      • Change of the password (upd)
      • Cronjobs Users (add, upd ).
      • You can add others as well based on your needs.
  • Now you have to create SSK Key

    • Server Settings > SSH Key Generator and then click on Generate new key
    • Test SSH
ssh root@185.215.164.96 -p 6316
ssh root@38.242.204.74 -p 63160 "whoami"

Destination Server (New server)

Log in to the CWP panel

Click on Firewall and Go to Whitelist configuration > Add an entry add the Source IP (Old IP) and restart the firewall.

Now go to User Accounts > CWP to CWP Migration

 

Filed Under: AWS, Bluehost, CentOS Web Panel, Cloudcone, Contabo, Digitalocean, HostGator, Providers, Security, Server and Hosting, SSH, VPS Management, VPSDime, Web Control Panel

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 10
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • To get your email for castamodel.com going to the right place, you need to update your DNS settings.
  • Security and WordPress
  • ROR
  • How do we copy google form to google workspace?
  • Install ImageMagick – Almalinux
  • How to remove /public/ from URL in Laravel
  • How to install Maldet alert?
  • How to Install Maldet and Run a Scan | Maldetect
  • Where is Roundcube location on CWP control panel?
  • How To Add Node.js Projects In aaPanel?
  • SPF/DKIM/DMARC Tools
  • Associative arrays – How to loop over Associative arrays
  • Indexed Arrays. How to loop over Indexed Arrays.
  • PHP Break | Continue
  • For Loop | While Loop | Do…While Loop | Foreach Loop
  • Strict mode in PHP
  • PHP Function Return Types
  • PHP Anonymous Functions (or Closures)
  • PHP Variadic Functions
  • PHP nullable type hints

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)

Important DEV links

  • Premium Themes
    • Themeforest
    • Envato Market
  • Built With (What Theme is That?)
    • What WP theme is that
    • Joomla Template Detector
    • Drupal Template Detector
    • Prestashop Template Detector
    • Shopify Theme Detector
    • Squarespace Template Detector
    • OpenCart Detector
    • WordPress.com Theme Detector
  • Domain/IP history checker
    • Who IS request
    • Hosting Info
  • Check DNS Propagation
    • DNS Checker
    • intoDNS
  • What is my IP
    • What is My IP Address
    • What is My IP
    • IP location
    • What is My IP
    • Porkbun
  • SEO Tools
    • Visitor Traffic
    • Broken Link
    • Website Speed Test
      • SEMrush
      • GTmetrix
      • Pingdom
      • PageSpeed Insights
      • DebugBear
      • keyCDN
  • Photo Image
    • Remove Background 50 Free Preview Image 375 × 666 per month
  • Domain Registrars
    • 123-Reg
    • Porkbun
    • Freenom
    • Namecheap NEWCOM598
  • Hosting Providers
    • Bluehost
    • Hostgator
    • Inmotion
  • Hosting Control Panel
    • CWPpro (FREE)
    • DirectAdmin (Trial 60 Days, One account $2/month)
    • ISPConfig (Free)
  • Webmaster Tools
    • Google
    • Bing
    • Yandex
  • Miscellaneous
    • Time Calculator

 

Categories

  • Affiliate Marketing (1)
  • Customization (4)
    • CSS (2)
  • Email Solutions (23)
    • FrontApp (2)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (2)
    • Recaptcha (1)
    • Roundcube (4)
    • Thunderbird (3)
    • WebMail (5)
  • Games (1)
  • How to (87)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (4)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (5)
  • Marketplace (5)
  • Miscellaneous (31)
  • MultiSaaS (1)
  • OJS (56)
    • Crossref (1)
    • Help (37)
    • Installation (10)
      • Issues (5)
    • Plugins (8)
    • Scholar Indexing (2)
    • Theme (7)
      • Templates (7)
        • Frontend (6)
        • legacy (1)
    • Theme Customization (10)
    • Theme Development (14)
    • TPL CSS JS (2)
    • Upgrade (11)
  • OSTAD (17)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (14)
    • MS Office (2)
      • PowerPoint (1)
    • Windows (4)
  • PHP Parse error (2)
  • phpBB (2)
  • Server and Hosting (213)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (28)
      • Almalinux (13)
      • CentOS (17)
      • Debian (21)
      • Ubuntu (19)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (69)
      • AWS (37)
      • Bluehost (37)
      • Cloudcone (26)
      • Contabo (40)
      • Digitalocean (68)
      • Hetzner (3)
      • HostGator (36)
      • Hostinger (8)
      • RackNerd (10)
      • VPSDime (38)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (147)
      • aaPanel (14)
      • CentOS Web Panel (46)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (26)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (89)
    • Elementor (2)
    • Find and Fix (11)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (22)
    • Neuron TD (15)
      • Console Error (1)
      • functions (5)
        • register_post_type (1)
        • register_sidebar (1)
        • theme_files (1)
        • theme_supports (1)
      • Image Directory (1)
      • Menu (2)
      • Query (4)
    • Plugins (13)
      • Contact Form 7 (5)
      • Duplicator (1)
      • Essential Grid (2)
    • Softaculous (3)
    • Speed and Security (4)
    • Stock Theme Development (6)
      • Header Footer (1)
      • PHP (1)
      • VC (1)
    • Theme Development (2)
      • Issues (1)
      • Menu (1)
    • Timer Theme Development (3)
    • Update (2)
    • Woocommerce (2)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

Copyright © 2025 · Executive Pro Theme on Genesis Framework · WordPress · Log in