You are getting the error message Error: cron job (cron.sh) error message: expr: syntax error because the commands included in Magentos cron.sh files are not portable. To get it work you can change the following line in cron.sh: if [ “$INSTALLDIR” != “” -a “`expr index $CRONSCRIPT /`” != “1” ];then to something more portable: if [ “$INSTALLDIR” != “” -a “`echo $CRONSCRIPT | sed -n ‘s/[/].*//p’ | wc -c`” != “1” ];then If you require help, contact SupportPRO Server Admin
Miscellaneous
You can change the time zone for a particular domain via .htaccess or php.ini file. If the server PHP is compiled with apache (dso) then you can use .htaccess file to set the time zone. SetEnv TZ location For SuPHP servers, you can create custom php.ini file for that particular domain and add the following code. date.timezone = “location” If you require help, contact SupportPRO Server Admin Partner with SupportPRO for 24/7 proactive cloud support that keeps your business secure, scalable, and ahead of the curve.
You can install CSF by downloading the package from www.configserver.com. #wget www.configserver.com/free/csf.tgz Extract the package #tar -zxvf csf.taz #cd csf [CSF firewall requires to remove any currently running IP based firewall] If any IP based firewall is running. Remove it #./remove_apf_bfd.sh Install script #./install.sh we can start the firewall in testing mode using this commands. #csf -s //start the firewall Configuration file of csf is /etc/csf/csf.conf It is very important to check the firewall on which ports to open and close all remaining port numbers. Open the /etc/csf/csf.conf and edit …
Commenting Multiple Lines in a Shell Script Using VI/Vim in a Single Step
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 the command mode by pressing: .In order to comment multiple lines ( i.e. to add a # to the …
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 …
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 …
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 …
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 …
SRV record is called Service record and it is used to defining location in a DNS especially the hostname and port number, of servers for specified services. It is defined in RFC 2782, and its type code is 33. Internet protocols like SIP, XMPP will require SRV support by network elements. To add the SRV record looking like: _service._protocol.name TTL class SRV priority weight port target Examples:- _sipfederationtls._tcp 3600 IN SRV 1 100 5061 sipfed.example.com. _sip._tcp 3600 IN SRV 1 100 443 sipdir.example.com. Service Defines the symbolic service name _http …