A text editor like vi or vim can be used to comment multiple lines in a shell script (or any other script or configuration file) in a single go rather than adding # or whatever that goes for a comment for the script in question. Open the file to be edited using vi/vim using the command vi filename (where filename can be replaced by the name of the file). Now enter command mode by pressing: In order to comment multiple lines ( i.e. to add a # to the beginning of the line), say lines from 5 to 10 in the script, type the command:5,10s/^/#/ #: in the command is part of entering the editing/ex mode in vi. Note#: The …
Miscellaneous
Every click, search, and website visit can leave behind a digital footprint. Many websites use tracking technologies to collect information about user behavior, browsing habits, interests, and online activity. From cookies and tracking pixels to advanced browser fingerprinting techniques, companies continuously gather data to personalize advertisements, improve marketing strategies, and analyze user engagement. While some tracking helps websites enhance user experience, excessive data collection has become a growing privacy concern for internet users worldwide. Many people are unaware of how much of their online activity is monitored or how their personal data may be shared with third parties. As online tracking technologies continue to evolve, protecting digital privacy has become more important than ever. Fortunately, there are several effective ways …
Consider a situation where the email server ip gets blacklisted in a server with any email server like exim or qmail, we can reroute the smtp via another IP using IP Tables. For routing the SMTP via xxx.xxx.xx.xx, issue the following command: iptables -t nat -A POSTROUTING -o eth0 -p tcp dport 25 -j SNAT to xxx.xxx.xx.xx If you require help, contact SupportPRO Server Admin
You can install nginx with upload progress-module. You can follow the bellow steps to install. 1. cd /usr/local/src 2. wget http://nginx.org/download/nginx-0.8.53.tar.gz (download from http://github.com/masterzen/nginx-upload-progress-module and sftp to “/usr/local/src”) masterzen-nginx-upload-progress-module-v0.8.1-0-gc740674.tar.gz 3. tar xzvf nginx-0.8.53.tar.gz tar xzvf masterzen-nginx-upload-progress-module-v0.8.1-0-gc740674.tar.gz 4. cd nginx-0.8.53 ./configure –prefix=/opt \ –sbin-path=/opt/sbin/nginx \ –conf-path=/opt/etc/nginx/http-nginx.conf \ –error-log-path=/var/log/http-nginx/error.log \ –http-log-path=/var/log/http-nginx/access.log \ –pid-path=/var/run/http-nginx.pid \ –lock-path=/var/lock/http-nginx.lock \ –user=www-data \ –group=www-data \ –with-http_realip_module \ –with-rtsig_module \ –with-http_gzip_static_module \ –with-http_stub_status_module \ –with-http_ssl_module \ –without-mail_pop3_module \ –without-mail_imap_module \ –without-mail_smtp_module \ –add-module=/usr/local/src/masterzen-nginx-upload-progress-module-c740674/ 5. make 6. make install You can control nginx from /etc/init.d/nginx <start/stop/restart> and the conf file by default is /etc/nginx/nginx.conf . If you require help, contact SupportPRO Server Admin
Linux servers often host multiple users and applications simultaneously. During execution, applications such as Apache or background services may generate temporary files, especially inside directories like /tmp. Over time, these files can consume significant disk space and affect system performance. System administrators frequently need a method to identify which user is consuming disk space and calculate the total size of files created by that user. This guide explains how to find both individual file sizes and total disk usage for files owned by a specific user using a powerful combination of Linux commands. Scenario Consider a domain hosted on a Linux server. While running applications or scripts, temporary files may be created inside the system’s /tmp directory. To monitor storage …
When managing a cPanel server, you may sometimes notice an issue where Nameserver IPs are not listed or are showing incorrect values in WHM. This usually appears under: WHM → Main → DNS Functions → Nameserver IPs In such cases, the system may not display any IP addresses or may show outdated entries. This can affect DNS configuration and server name resolution. The good news is that this issue is usually caused by incorrect or missing configuration files and can be fixed quickly. Why This Issue Happens The “Nameserver IPs not listing in WHM” issue typically occurs due to: To resolve this, you need to verify and correct two important system files. Step 1: Check /etc/nameserverips File First, verify the …
DNS does more than connect domain names to IP addresses. It also helps applications locate the exact servers and ports required for specific services. This is where SRV records come into play. SRV (Service) records allow services like SIP, XMPP, LDAP, and email systems to identify the correct server and communication port automatically. In this blog, we’ll explain what SRV records are, how they work, their structure, and why they are important in modern network environments. What is an SRV Record? An SRV (Service) record is a type of DNS record used to identify the hostname and port number of servers that provide specific services. It helps applications locate the correct server for a requested service automatically. SRV records are …
You can export email addresses from mailman mailing list to txt file using the following command. cd /usr/local/cpanel/3rdparty/mailman/bin/ ls to see the mailing list /usr/local/cpanel/3rdparty/mailman/bin/list_members_domain.com > address.txt Copy this address.txt file into public_html folder of user account. If you require help, contact SupportPRO Server Admin
1.Copy the key and save it as .ppk extension [for eg: rsa.ppk] 2.Open puttygen.exe ( This can be downloaded from http://www.putty.org/) 3.Select Load and browse the path to the .ppk file where you have stored. 4.Then Click “Save private key”. It will ask for save and save the file in a locaion in .ppk format. [For eg: C:\MyKeys\key.ppk ] 5.Right-Click Putty and selet Edit and specify the path such asstart c:\putty -ssh root@xxx.xxx.x.x-i C:\MyKeys\key.ppk” If you require help, contact SupportPRO Server Admin
It is not often that we need to test the hard drive for problems, but you never know when you may have to. One of the major reasons to perform a test would be if you are seeing read-only errors often (which can normally be fixed by a reboot), the system crashing out too often, or you are seeing very slow read/write times for small amounts of data. This can often be a sign of a failing drive, something a test can point out.