Dev {Tricks}

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

April 19, 2021 by dev

How to change the default SSH Port 22 to your choice | CWP

WARNING: Security vulnerability! Your server is using default SSH Port 22, to make your server more secure change SSH port in config file /etc/ssh/sshd_config and in CSF firewall !

After changes are done don’t forget to restart SSH and CSF Firewall.

  1. After login to CWP go to Services Config->SSH Configuration. This will open /etc/ssh/sshd_config
  2. Then go to Security->CSF Firewall, click the Firewall Configuration button. This will open /etc/csf/csf.conf
  3. Look for the #Allow incoming TCP ports section and add your port number to the list.
  4. Save changes
  5. On cwp dashboard, restart SSH server.
  6. Then go to Security->CSF Firewall, click the Firewall Restart button

Filed Under: CentOS Web Panel, Server and Hosting Tagged With: cwp, cwp pro, cwppro, default SSH Port, default SSH Port 22, SSH Port

April 19, 2021 by dev

Delete A File That Cannot Be Found | Error when trying to delete item

  • Could Not Find This Item
  • This is no longer located in …
  • This is no longer located in Directory
  • Could not find this item this is no longer located when copying files

Solution

  1. Run Command Prompt as Administrative privileges.
  2. Enter below command
    rd /s "\\?\path of the folder”

    Here path of the folder is the path of folder
    Example: rd /s “\\?\D:\Documents\folder name”

  3. It will prompt as “Are you sure (Y/N)?”
  4. Enter ‘Y’ and hit Enter.
  5. That’s all

 

Filed Under: PC Tips and Tricks

April 16, 2021 by dev

Increase file upload limit | CWP

Increase Import/Upload limit for phpMyAdmin and File Manager in CWP

This is for CentOS Web Panel only.

Login to SSH and edit php.ini

vi /usr/local/cwp/php71/php.ini

Find and increase following values as required.

post_max_size = 512M
upload_max_filesize = 512M
memory_limit = 256M

Also edit cwpsrv.conf

vi /usr/local/cwpsrv/conf/cwpsrv.conf

Find and increase following value as required.

client_max_body_size= 512M

Restart cwp-phpfpm cwpsrv

service cwp-phpfpm restart
service cwpsrv restart

 

 

Filed Under: CentOS Web Panel

April 16, 2021 by dev

How to fix Internal Server Error

500 Internal Server Error

  • Check Owner and Group of files and folders.
  • Check permissions files and folders. Set folders permission 755 and files 644.
On CentOS Web Panel, fix permissions through Users Accounts => Fix Permissions => select myDomain and check on Fix Permissions, the chown group and chmod.
find /home/user_name -type d -exec chmod 755 {} \;
find /home/user_name -type f -name "*" | xargs chmod 644

This will change all files and folders permission under the username.

 

Filed Under: CentOS Web Panel, Server and Hosting, Web Control Panel

April 15, 2021 by dev

How to install and configure CentOS Web Panel in CentOS 7?

System Requirements

Complete the following tasks before starting the installation process:

1. Setup Hostname

  • Check status of current hostname
hostname

or

hostnamectl
  • Command for changing hostname
hostname server.domain.com
  • Edit /etc/hostname
vi /etc/hostname

Change old hostname to new server.domain.com

  • Edit the /etc/hosts File
sudo vi /etc/hosts

Change the old hostname the new one.

  • Reboot the server

Login SSH and check the hostname

hostnamectl status

2. Server Updates

  • Preparing Server

Let’s install required packages for CWP installation

yum -y install wget
  • Server Update

Now we need to update your server to the latest version

yum -y update
  • Reboot Server

Reboot your server so that all updates can take effect.

reboot

CentOS 7: Installer for CentOS 7 (recommended)

cd /usr/local/src
wget http://centos-webpanel.com/cwp-el7-latest
sh cwp-el7-latest

CentOS 8: Installer for CentOS 8 

cd /usr/local/src
wget http://centos-webpanel.com/cwp-el8-latest
sh cwp-el8-latest

Reboot your server so that all updates can take effect and CWP gets started.

shutdown -r now

CentOS Web Panel Configuration

Log in to your CWP server

CentOS WebPanel Admin GUI at http://SERVER-IP:2030/

Username: root
Password: your root password

  • WARNING! Your root Email address for notifications isn’t set.
    Setup root email
  • Change Hostname: Server settings -> Change hostname from the left sidebar.
  • – Setup nameservers: DNS Funtions>Edit Nameservers IPs
  • – Setup shared ip (must be your public IP address)
  • – Install “Limit server resources (cgroups)” under Security: Cgroups allow you to limit resources per user — such as CPU %, system memory, network bandwidth, or combinations of these resources.
  • – Setup at least one hosting package (or edit default package)

& now you are ready to host domains…

For additional configuration instruction, please check our wiki/documentation site.
http://wiki.centos-webpanel.com/

  • Firewall – SECURITY ISSUE
    CSF/LFD Firewall is NOT enabled on your server, click here to enable it.
  • ModSecurity – SECURITY ISSUE
    Mod Security is NOT enabled on your server, click here to enable it.
  • Hidden Processes – SECURITY ISSUE
    Hide all processes if not owned by the user is NOT activated on your server, click here to enable it.

Install and Enable firewall

ConfigServer Security & Firewall (CSF) + Login Failure Daemon (LFD)

Security>Firewall manager

Install and Enable mod_security

Add a user account

User Accounts -> New Account

Install Softaculous (optional)

Script Installers->Scripts Manager->Softaculous

Install a Let’s Encrypt certificate for SSL-enabled CWP

Weberver Settings->ssl_certificate

How to change the default SSH Port 22 to your choice

WARNING: Security vulnerability!
Your server is using default SSH Port 22, to make your server more secure change SSH port in config file /etc/ssh/sshd_config and in CSF firewall !

After changes are done don’t forget to restart SSH and CSF Firewall.

  1. After login to CWP go to Services Config->SSH Configuration. This will open /etc/ssh/sshd_config
  2. Then go to Security->CSF Firewall, click the Firewall Configuration button. This will open /etc/csf/csf.conf
  3. Look for the #Allow incoming TCP ports section and add your port number to the list.
  4. Save changes
  5. On cwp dashboard, restart SSH server.
  6. Then go to Security->CSF Firewall, click the Firewall Restart button

 

Additional multiple php versions

Go to PHP Version Switcher and then click on PHP Selector
Install Dependencies

 

Increase file upload limit | CWP

 

Filed Under: CentOS Web Panel, Server and Hosting, Web Control Panel

  • « Previous Page
  • 1
  • …
  • 41
  • 42
  • 43
  • 44
  • 45
  • …
  • 91
  • 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