Uploading files through FTP is a common task for system administrators and developers. When handling multiple files or entire directories, using command line FTP tools can save time and simplify file transfers. One of the most efficient ways to upload multiple files using FTP is with the lftp command-line utility. It supports advanced file transfer features such as directory mirroring, recursive uploads, and automated synchronization. In this guide, we will explain how to upload multiple files using FTP in command line mode with lftp. What is lftp? lftp is a …
Miscellaneous
Linux system administrators rely heavily on command-line monitoring tools to keep servers healthy, diagnose performance bottlenecks, and respond quickly to issues. These tools provide real-time insights into system resources such as CPU, memory, disk I/O, and network usage, helping admins make informed decisions without relying on graphical interfaces. Below are some of the most widely used and practical command-line tools every Linux administrator should be familiar with. Top The top command is one of the most commonly used monitoring tools on Linux systems. It provides a dynamic, real-time view of …
Please make a copy of configuration files before editing the same. Steps: Go to the following file and add the domain name. /var/cpanel/maxemails Eg:example.com = 1000 Just add an entry like example.com = 1000 . Now 1000 will be the maximum email per hour limit for domain. Execute the following script after updating the file /var/cpanel/maxemails, this will update the email settings in cpanel database. #/scripts/build_maxemails_config If you require help, contact SupportPRO Server Admin
We can easily retrieve all the FTP usernames and password under a domain in plain text, by following the below steps. 1. Enter the MySQL Prompt. # mysql -u admin -p`cat /etc/psa/.psa.shadow` 2. use psa; 3. mysql> select US.* FROM sys_users US, hosting HS, domains DM -> WHERE US.id = HS.sys_user_id AND HS.dom_id = DM.id AND DM.name =’domain.com’; The below given is a sample output of that command. +—–+———-+———-+———————————–+————+——-+ | id | login | passwd | home | shell | quota | +—–+———-+———-+———————————–+————+——-+ | 110 | ftpuser | password | …
The rename command is a Perl-based utility in Linux used to rename single or multiple files quickly using pattern matching. It is especially useful when you need to modify filenames in bulk. General Syntax Options Explained Example Command The -n option performs a dry run and displays how files will be renamed without actually modifying them. If the output looks correct, run the final command: This command renames all files ending with .htm to .html. Command Breakdown Using the rename command simplifies bulk file management and reduces manual work in …
Losing or forgetting the MySQL administrator (root) password on a Windows server can disrupt database access and application functionality. This guide explains how to safely reset the MySQL admin password on a Windows Server using the built-in initialization file method. This method is commonly used by system administrators, hosting providers, and IT support teams managing Windows-based MySQL installations. When Do You Need to Reset the MySQL Admin Password? You may need to reset the MySQL root password if: Ensuring secure database access is a core part of overall server security. …
(98)Address already in use: make_sock: could not bind to address [::]:443 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs Also check if Apache logs have exceeded 2GB of limit. 1)Kill All nobody process running on the server. Use the following script for doing that. cijo@server [~]#for i in `ps auwx | grep -i nobody | awk {‘print $2’}`; do kill -9 $i; done or cijo@server [~]#for i in `lsof -i :80 | grep http | awk {‘ …
Webmail is a way to access your email directly through a web browser like Chrome or Edge, without needing software such as Outlook or Thunderbird. It lets you send, receive, and manage emails from anywhere using an internet connection. Plesk is a web hosting control panel that helps you manage websites, domains, emails, and servers from a simple dashboard. Within Plesk, webmail is one of the features that allows users to easily access their email accounts online using built-in tools like Horde or Roundcube, making email management convenient and centralized. …
Disk usage 100% ? Retain latest entries of a file and delete the rest of the contents
Have issues with 100% diskspace in your Linux dedicated server. An easy and quick way is to clear the log files and thereby you can acquire quite a large amount of usable diskspace. Check the following: 1. Check the total disk usage: [root@testserver /]# df -h 2. Check the size of a each folder: [root@testserver /]# du -sch * or du -sch /foldername command
Rsync is a powerful and widely used tool for copying and synchronizing files between servers. It is commonly used by system administrators because it is fast, secure, and reliable. By default, rsync connects to remote servers using SSH on port 22. However, many servers are configured to use a non-standard SSH port for better security. In such cases, rsync can still be used without any issues by specifying the custom SSH port in the command. Why Use a Non-Standard SSH Port Many administrators change the default SSH port to reduce …