Dev {Tricks}

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

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

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 3, 2022 by dev

How to change hostname and edit settings | Webmin

  • How To Change The Hostname In Virtualmin
  • Change hostname and edit settings
  1.  Go into Webmin -> Networking -> Network Configuration -> Hostname and DNS Client
  2. Enter your hostname. For Example, server.domain.com
  3. Tick “Update hostname in host addresses if changed?”
  4. Save

 

Filed Under: How to, Server and Hosting, Virtualmin, Web Control Panel, Webmin Tagged With: hostname, virtualmin, webmin

January 10, 2022 by dev

How to increase Apache TimeOut | CWP

Gateway Timeout error 504

504 Gateway Timeout

When using php-cgi add this in httpd.conf

TimeOut 3600

Or add it in Apache config by creating a config file in conf.d dir

touch /usr/local/apache/conf.d/timeout.conf
echo “TimeOut 3600” > /usr/local/apache/conf.d/timeout.conf
service httpd restart

When using PHP-FPM add this in domain vhosts under “proxy_fcgi_module” config:

Domain Apache vhosts location is in /usr/local/apache/conf.d/vhosts

ProxyTimeout 3600

eg :



SetHandler “proxy:unix:/opt/alt/php-fpm72/usr/var/sockets/username.sock|fcgi://localhost”

ProxyTimeout 3600

you can also create a Apache vhost template and add the ProxyTimeout there and use it for the domain you need for increased timeout. You can copy default.stpl and default.tpl to timeout.stpl and timeout.tpl with same content only with below replace config :

php-fpm default templates can be found here :

/usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/httpd/php-fpm

eg :

replace :



SetHandler “proxy:%backend_fcgi%|fcgi://localhost”

with :



SetHandler “proxy:%backend_fcgi%|fcgi://localhost”

ProxyTimeout 3600

after you created the template go to webserver domain config and select the template there under php-fpm thats it or choose default trmeplate in webserver main conf and don’t forget to restart Apache web server if you manually added the timeout in vhost.
If you need Unlimited timeout then you need to disable this apache module :

LoadModule reqtimeout_module modules/mod_reqtimeout.so

go to /usr/local/apache/conf and edit httpd.conf find this line LoadModule reqtimeout_module modules/mod_reqtimeout.so and comment it out i.e. add “#” before this line. Save it and restart Apache server

eg :

#LoadModule reqtimeout_module modules/mod_reqtimeout.so

Filed Under: CentOS Web Panel, Error and Fix, How to, Server and Hosting, VPS Management Tagged With: Apache TimeOut, Gateway Timeout

  • « Previous Page
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 18
  • 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