Dev {Tricks}

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

January 30, 2026 by dev

WordPress site with WooCommerce is down with Mod Security

  • Mod Security Configuration in CWP User Panel
  • Woocommerce API problem with CWP Panel
  • mod_security issues
  • WooCommerce REST API does not work with OWASP ModSecurity Core Rules
  • WordPress site with WooCommerce is down in Plesk: 403 Forbidden
  • WooCommerce 8.5.1 issues with Web Application Firewall (ModSecurity)
  • Securing WordPress with ModSecurity

Cause:
WooCommerce triggers the web application firewall rule 218500 from the Comodo ruleset, blocking access.

Solution:
Disable rule 218500 on the affected domains.

  • Plesk: Go to Domains > example.com > Web Application Firewall (ModSecurity).
    • By rule IDs “218500”
  • CWP:
    • Log into your CWP User Panel.
    • Navigate to the CWP Settings.
    • Click on Mod Security to access the Mod Security configuration settings.
    • Edit rules
    • Add Id Rules “218500”
    • Done.

 

Filed Under: Almalinux, AWS, Bluehost, CentOS, CentOS Web Panel, Cloudcone, Contabo, Debian, Digitalocean, Hetzner, HostGator, Hostinger, How to, Linux Distribusion, Plesk, Plugins, Providers, RackNerd, Server and Hosting, Ubuntu, VPSDime, Web Control Panel, Woocommerce, Wordpress Tagged With: cwp, cwp shop, cwp woocommerce issue, firewall, mod security, mod security issue, plesk, woocommerce

January 31, 2025 by dev

How do we copy google form to google workspace?

  • Open the form you want to copy in Google Forms
  • Click More in the top-right corner
  • Select Make a copy
  • Name the copy
  • Choose a destination in Google Drive
  • Decide if you want to share the copy with the same people
  • Click OK

 

Filed Under: How to

July 25, 2024 by dev

SPF/DKIM/DMARC Tools

SPF/DKIM/DMARC deployment tools fall into 2 categories: generators (creators/builders) to generate records and checkers (validators/testers) to look up the DNS.

SPF Tools

To create/generate an SPF record, there is the SPF record generator, or SPF record creator/builder, which takes these mechanisms and qualifiers: mx, a, ip4, ip6, include, and all, and returns an SPF record.

To check an SPF record, there is the SPF record checker, or SPF record validator/tester, which checks if an SPF record is published on your domain, and if its syntax is correct.

DKIM Tools

To create/generate a DKIM record, there is the DKIM record generator, or DKIM record creator/builder, which takes a domain and a selector, and returns a DKIM record.

To check a DKIM record, there is the DKIM record checker, or DKIM record validator/tester, which checks if a DKIM record is published on your domain, and if its syntax is correct.

DMARC Tools

To create/generate a DMARC record, there is the DMARC record generator, or DMARC record creator/builder, which takes these tags: p, rua, ruf, sp, adkim, and aspf, and returns a DMARC record.

To check a DMARC record, there is the DMARC record checker, or DMARC record validator/tester, which checks if a DMARC record is published on your domain, and if its syntax is correct.

Learn More

SPF/DKIM/DMARC Wizard

Filed Under: Email, How to Tagged With: spf-dkim-dmarc-wizard

April 22, 2024 by dev

How to Create Swap Partition in CentOS 7 & CentOS 8

Swap Partition Size

RedHat

RedHat distributions should have a swap partition size of 20% of the available RAM. The minimum amount of RAM is 4GB.
CentOS

CentOS provides the following guidelines:

The swap partition should be twice the amount of RAM if the total RAM amount is below 2GB.
If you have more than 2GB of RAM, then the swap partition should be the size of RAM + 2 GB. For example, use 8GB of swap for 6GB of RAM.

Ubuntu/Debian

Ubuntu has based its swap size recommendations on the use of hibernation.

If you use hibernation, the swap partition should be the same as the amount of RAM plus the square root of the RAM amount.

If you don’t use hibernation:

For less than 1GB of RAM, the swap partition size should be at least the same as the amount of RAM and, at most, double the amount of RAM.
For more than 1GB of RAM, create a swap partition at least equal to the square root of the RAM amount and, at most, double the RAM amount.

 

swapon Command

swapon –show

Check /proc/swaps File

cat /proc/swaps

Comman to check your swap

free -h

How to Create a Swap Partition

1. Run the fdisk command for the disk you want to partition:

sudo fdisk [disk_path]

Replace [disk_path] with your disk identifier.

2. Type p and press Enter for an overview of the disk.

The output provides information about the available disk space for a new partition. If the last partition ends before the last sector of the hard drive, there is enough space to create a new partition. The output above shows the entire disk space is available for creating a new partition.

3. Type n and press Enter to create a new partition. For partition type, enter p and press Enter.

4. Set the partition number (or keep the default number 1) and press Enter to confirm.

5. Enter the first available sector for the new partition and press Enter. You can also keep the default one offered.

6. Set the last available sector for the partition. You can specify the partition size in KiB, MiB, or GiB units. We will create a swap partition of 1GiB, so the command is:

+1G

7. Press p to verify the partition creation and confirm with Enter.

8. By default, the partition type is 83, while 82 is a partition type identifier for swap space.

Type t and press Enter to change the partition type. Change the value to 82 and press Enter.

9. Verify the change with p and confirm with Enter.

10. fdisk doesn’t make any changes to the disk before confirmation. To proceed with the changes, type w, and press Enter.

12. Update the partition table using the following syntax:

sudo partprobe [disk_path]

13. Use the mkswap command to format the partition for swap space. The command writes a swap signature in the partition, leaving the rest unformatted. The unformatted space stores the memory pages.

Use the following syntax to format the partition and create a swap space:

sudo mkswap [disk_path]

After formatting, the swap partition is created and ready to use.

How to Initialize/Enable a Swap Partition

3. Make Swap Persistent (Optional)

Include the partition in the /etc/fstab file to ensure the swap partition activates on boot.

vi /etc/fstab

Add the following line at the end:

/dev/sdb none swap sw 0 0

Replace /dev/sdb with the path to your swap partition.

How to Change the Size of a Swap Partition

Filed Under: CentOS, How to, Linux Distribusion, Server and Hosting, VPS Management

March 16, 2024 by dev

Linkedin Post Share Solution

Resetting LinkedIn Link Previews for Accurate Content Display

To clear LinkedIn’s link preview cache, follow these steps:

Step 1: Visit the LinkedIn Post Inspector tool at www.linkedin.com/post-inspector/.

Step 2: Enter the URL you want to share.

Step 3: Click ‘Inspect’. You’ll see the updated preview image and content.

Step 4: Now, try sharing your URL on LinkedIn. This should display the new preview content and image.

 

 

Filed Under: Frontend, Help, How to, Installation, Miscellaneous, OJS, Plugins, Scholar Indexing, Templates, Theme Customization, Theme Development Tagged With: linkedin

  • 1
  • 2
  • 3
  • …
  • 18
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru

www.ojsexpert.com
www.ojsdev247.com

Recent Posts

  • WordPress site with WooCommerce is down with Mod Security
  • 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

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 (88)
  • 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 (214)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (29)
      • Almalinux (14)
      • CentOS (18)
      • Debian (22)
      • Ubuntu (20)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (70)
      • AWS (38)
      • Bluehost (38)
      • Cloudcone (27)
      • Contabo (41)
      • Digitalocean (69)
      • Hetzner (4)
      • HostGator (37)
      • Hostinger (9)
      • RackNerd (11)
      • VPSDime (39)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (148)
      • aaPanel (14)
      • CentOS Web Panel (47)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (27)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (90)
    • 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 (14)
      • 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 (3)
    • 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 (88)
  • 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 (214)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Email (10)
      • Postfix (3)
    • Error and Fix (17)
    • FTP (2)
    • Linux Distribusion (29)
      • Almalinux (14)
      • CentOS (18)
      • Debian (22)
      • Ubuntu (20)
    • Mail Server Solusion (7)
      • iRedMain (6)
    • MySQL (12)
    • Providers (70)
      • AWS (38)
      • Bluehost (38)
      • Cloudcone (27)
      • Contabo (41)
      • Digitalocean (69)
      • Hetzner (4)
      • HostGator (37)
      • Hostinger (9)
      • RackNerd (11)
      • VPSDime (39)
    • Security (21)
      • SSH (8)
    • VPS Management (72)
    • Web Control Panel (148)
      • aaPanel (14)
      • CentOS Web Panel (47)
      • cPanel (33)
      • CyberPanel (7)
      • DirectAdmin (96)
        • Find & fix (38)
      • ISPConfig (17)
      • KeyHelp (7)
      • Plesk (27)
      • Webmin (25)
        • Usermin (2)
        • Virtualmin (13)
      • WHM (18)
  • Uncategorized (19)
  • Wordpress (90)
    • 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 (14)
      • 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 (3)
    • WP Basic Guideline (8)
  • Home
  • WordPress
  • OJS
  • Oxwall
  • Server and Hosting

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