Dev {Tricks}

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting
You are here: Home / Archives for Server and Hosting / Providers

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.

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: unzip, zip

February 14, 2022 by dev

Migrate Accounts from CWP to CWP

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

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

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 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 it

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.

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

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.

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

  • 1
  • 2
  • 3
  • …
  • 10
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr

Recent Posts

  • Possible attack detected. This action has been logged. How to fix ?
  • Troubleshot with hostedemail blacklist
  • How to install phpBB
  • Missing vmail Folders .Sent, .Trash, .Drafts, .Junk, and Other
  • How to Add and Remove Swap Space on Ubuntu 20.04
  • Xauthority does not exist
  • How to Zip and Unzip Files and Directories in Linux
  • Usage stats shows 0 in the downloaded files
  • UTF-8 Encoding Debugging Chart
  • Dimensions Badge integration on OJS
  • PHP Fatal Error: Uncaught Error: Call to undefined function – OJS
  • Failed Ajax request or invalid JSON returned
  • Migrate Accounts from CWP to CWP
  • How to Install WordPress through webmin?
  • How to install webmin, usermin, virtualmin
  • How to change hostname and edit settings | Webmin
  • intoDNS
  • ISPConfig Installation Checklist on Ubuntu 20.04
  • How to get chain certificates
  • There are no readable files in this directory tree. Are safe mode or open_basedir active?

Categories

  • Affiliate Marketing (1)
  • Customization (2)
  • Email Solutions (19)
    • FrontApp (1)
    • Google Spreadsheet (2)
    • Microsoft Outlook (1)
    • PHP Email Form (3)
    • PolyMail (1)
    • Recaptcha (1)
    • Roundcube (3)
    • Thunderbird (2)
    • WebMail (4)
  • Games (1)
  • How to (68)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (3)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Marketplace (5)
  • Miscellaneous (24)
  • OJS (48)
    • Help (32)
    • Installation (9)
      • Issues (5)
    • Plugins (6)
    • Theme (5)
      • Templates (5)
        • Frontend (4)
        • legacy (1)
    • Theme Customization (8)
    • Theme Development (12)
    • TPL CSS JS (2)
    • Upgrade (11)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (11)
    • MS Office (1)
      • PowerPoint (1)
    • Windows (2)
  • PHP Parse error (2)
  • phpBB (1)
  • Server and Hosting (156)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (9)
      • Postfix (3)
    • Error and Fix (16)
    • FTP (2)
    • MySQL (8)
    • Providers (50)
      • AWS (20)
      • Bluehost (19)
      • Cloudcone (8)
      • Contabo (22)
      • Digitalocean (50)
      • HostGator (18)
      • VPSDime (20)
    • Security (17)
      • SSH (6)
    • VPS Management (54)
    • Web Control Panel (115)
      • CentOS Web Panel (30)
      • cPanel (20)
      • DirectAdmin (85)
        • Find & fix (38)
      • ISPConfig (6)
      • Plesk (14)
      • Webmin (16)
        • Usermin (2)
        • Virtualmin (11)
      • WHM (11)
  • Uncategorized (12)
  • Wordpress (85)
    • Elementor (1)
    • Find and Fix (9)
    • Functions (5)
    • Genesis (9)
    • Glossary (1)
    • How to (20)
    • 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 (12)
      • 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
  • 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)

 

 

  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

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