Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done
Selectorctl find user PHP version:
for user in $(\ls -A /var/cpanel/users) ; do version=$(selectorctl -c -u $user | awk '{print $1}') ; echo $user $version ; done
yum install php-cli
Installing:
php-cli x86_64 7.3.18-1.el6.remi remi-php73 4.4 M
Installing for dependencies:
libargon2 x86_64 20161029-7.el6.remi remi 21 k
php-common x86_64 7.3.18-1.el6.remi remi-php73 1.1 M
php-json x86_64 7.3.18-1.el6.remi remi-php73 65 k
Transaction Summary
Install 4 Package(s)
Total download size: 5.6 M
while [ 1 -eq 1 ]; do iotop -n 1 -k -qqq -o|awk '{print "io_read_kbs,pid="$1",process="$12" value="$4"\nio_write_kbs,pid="$1",process="$12" value="$6}';sleep 1;done
io_read_kbs,pid=8848,process=rsync value=295.00
io_write_kbs,pid=8848,process=rsync value=0.00
io_read_kbs,pid=5091,process=cp value=2802.47
certbot certificates
To send PHP mail via SMTP:
Using PHPmailer -> https://github.com/PHPMailer/PHPMailer/
Using the PEAR Mail package -> cPanel -> PHP PEAR Packages -> Mail
Its possible your database files was restored on wrong server and wrong MySQL version, maybe too old MySQL server.
cd /root
wget https://www.litespeedtech.com/packages/5.0/lsws-5.4.7-ent-x86_64-linux.tar.gz
tar zxfv lsws-5.4.7-ent-x86_64-linux.tar.gz
cd lsws-5.4.7
echo "xxxx-xxxx-xxxx-xxxx" | tee serial.no
sh install.sh
ps aux | grep -i apt
root 13794 0.1 0.5 148856 91052 ? S Apr20 58:38 apt-get upgrade -y
kill 13794
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem
dpkg --configure -a
Error hcp: ERROR: Could not init mrf hash!
sync; echo 1 > /proc/sys/vm/compact_memory
sync; echo 1 > /proc/sys/vm/drop_caches
service cdp-agent restart
N=Fake LE Intermediate X1
This error usually means you are using test certificate from Let’s encrypt authority. You should issue your SSL again without -t option.
sed -i '/string/d' somesime.txt
If you have issues to import a database using Virtualmin (Webmin) you need to disable or increase quotas:
Total server quota: Unlimited
Server administrator’s quota: Unlimited
By default it was set limit, so that error means: Disk quota exceeded
sed -i 's/^/*@/' somefile.txt
vi /etc/localdomains
domaina.com
domainb.com
vi /etc/exim/exim.conf
domainlist sender_domains = lsearch;/etc/localdomains
acl_check_rcpt:
accept hosts = +relay_from_hosts
sender_domains = +sender_domains
control = submission
control = dkim_disable_verify
accept hosts = +relay_from_hosts
sender_domains = +sender_domains
control = submission
control = dkim_disable_verify
require message = bad sender domain
domains = +sender_domains
tail -f /var/log/exim/main.log
2020-05-20 20:55:55 H=mail.server.com [xx.xx.xx.xx] F=<> rejected RCPT
2020-05-20 20:55:55 H=mail.server.com [xx.xx.xx.xx] F=<> rejected RCPT
License User Limit Exceeded
6 users exist on this server, but the current license allows only 5 users.
Because of this excess, this server has locked all cPanel users out of their accounts.
You need to upgrade your cPanel/WHM license and than:
/usr/local/cpanel/cpkeyclt