Dev {Tricks}

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

February 17, 2023 by dev

How to disable functions using the PHP disable_functions directive in php ini

  • PHP disable_functions Executable Handling

The disable_function is used to stop certain dangerous PHP functions from executing.

Example of disable_function.

disable_functions = "exec, system"

Use the disable_functions directive in php.ini file to disable specific functions.
At least disable exec(), shell_exec() and system(). (If using WordPress).

disable_functions = "exec, passthru, shell_exec, system, proc_open, popen, curl_exec, curl_multi_exec, parse_ini_file, show_source"

 

Filed Under: Bluehost, CentOS Web Panel, Cloudcone, Contabo, cPanel, Debian, Digitalocean, DirectAdmin, HostGator, How to, ISPConfig, Plesk, Security, Server and Hosting, VPS Management, VPSDime, Webmin Tagged With: disable functions, disabled function, php disable functions

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

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

vi /etc/ssh/sshd_config

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 [email protected] -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

January 9, 2022 by dev

How to change the root password

  • Resetting the Root Password
  • How to Change a Password in Linux
  • How to Reset or Change the Root Password in Linux
  • How to change root password in Ubuntu Linux
  • How to Reset the root Password

1. Login to your server using existing root password.

2. After login you can change the root password with below command.

passwd root

That’s aLL!

Filed Under: AWS, Bluehost, CentOS Web Panel, Contabo, cPanel, Digitalocean, DirectAdmin, Find & fix, HostGator, Plesk, Providers, Security, Server and Hosting, SSH, Virtualmin, VPS Management, VPSDime, Web Control Panel, Webmin, WHM Tagged With: linux, linux root password change, reset password, reset root, reset root password, root, root password, ubuntu

  • 1
  • 2
  • 3
  • 4
  • Next Page »
  • Upwork
  • Freelancer
  • Fiverr
  • Guru
  • PPH

Recent Posts

  • MariaDB Upgrade to the new version | Plesk – CentOS 7 / RHEL 7
  • Google Workspace MX record values
  • Could not open input file
  • How to remove journal path for single journal OJS website.
  • How to Clean the YUM Cache in CentOS
  • How to run php file through command line? How do I enable PHP?
  • How to disable functions using the PHP disable_functions directive in php ini
  • Error 503 Backend fetch failed
  • Unblock iRedMail IP
  • Most Read Articles
  • Import export database | Linux
  • How to reset MySQL root password | CWP
  • MariaDB Upgrade to the new version | CWP
  • Install Optimize with optimize.js (sync)
  • Journey to Laravel & Vue – December to February 2022/2023
  • Elementor
  • Java Errors
  • How to Install Zip/Unzip
  • Redirect www to non-www and vice versa
  • How to change Time Zone in Debian 11 / Debian 10

Categories

  • Affiliate Marketing (1)
  • Customization (3)
    • CSS (1)
  • Email Solutions (20)
    • 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 (75)
  • Joomla (6)
    • Akeeba (1)
    • Fix & Tricks (3)
  • jQuery (3)
  • jQuery Plugins (4)
    • BX Slider (1)
    • Slick (1)
  • Laravel (1)
  • Marketplace (5)
  • Miscellaneous (26)
  • OJS (52)
    • Help (35)
    • Installation (9)
      • Issues (5)
    • Plugins (7)
    • Theme (6)
      • Templates (6)
        • Frontend (5)
        • legacy (1)
    • Theme Customization (9)
    • Theme Development (13)
    • TPL CSS JS (2)
    • Upgrade (11)
  • Oxwall (3)
  • Payment Methods (1)
    • Paypal (1)
  • PC Tips and Tricks (12)
    • MS Office (1)
      • PowerPoint (1)
    • Windows (3)
  • PHP Parse error (2)
  • phpBB (1)
  • Server and Hosting (174)
    • Billing and Management (10)
      • Blesta (5)
      • Boxbilling (2)
      • WHMCS (5)
    • Debian (5)
    • Email (9)
      • Postfix (3)
    • Error and Fix (16)
    • FTP (2)
    • Mail Server Solusion (5)
      • iRedMain (4)
    • MySQL (9)
    • Providers (54)
      • AWS (23)
      • Bluehost (23)
      • Cloudcone (12)
      • Contabo (26)
      • Digitalocean (54)
      • HostGator (22)
      • VPSDime (24)
    • Security (18)
      • SSH (6)
    • VPS Management (60)
    • Web Control Panel (125)
      • CentOS Web Panel (36)
      • cPanel (24)
      • DirectAdmin (89)
        • Find & fix (38)
      • ISPConfig (11)
      • Plesk (20)
      • Webmin (19)
        • Usermin (2)
        • Virtualmin (11)
      • WHM (13)
  • Uncategorized (14)
  • Wordpress (86)
    • Elementor (2)
    • 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
    • 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

 

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

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