certbot certificates
php smtp send mail
To send PHP mail via SMTP:
Using PHPmailer -> https://github.com/PHPMailer/PHPMailer/
Using the PEAR Mail package -> cPanel -> PHP PEAR Packages -> Mail
mysqldump: Got error: 1033: Incorrect information in file: ‘./www_111/tblactivitylog.frm’ when using LOCK TABLES
Its possible your database files was restored on wrong server and wrong MySQL version, maybe too old MySQL server.
LiteSpeed install
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
E: Could not get lock /var/lib/dpkg/lock-frontend – open (11: Resource temporarily unavailable)
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
An exception occurred during the request. The replication driver was not detected (detail: An error occurred while loading the hcpdriver module, please check your system logs; Please run “r1soft-setup –get-module ” on your Agent to install one. ).
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
SSL verify error: depth=1 error=unable to get local issuer certificate cert=/CN=Fake LE Intermediate X1
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.
remove lines with string
sed -i '/string/d' somesime.txt
ERROR 3 (HY000) at line 25: Error writing file ‘./somedb/my_table1.frm’ (Errcode: 122)
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 add to the beginning of line
sed -i 's/^/*@/' somefile.txt
exim check outgoing sender domain
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 cPanel
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
ssh tunnel for smtp
ssh -o "ServerAliveInterval 60" -o "ServerAliveCountMax 120" -f -N -L 2525:localhost:25 [email protected]
iptables -t nat -A OUTPUT -p tcp --dport 25 -j DNAT --to-destination 127.0.0.1:2525
configure: error: no acceptable C compiler found in $PATH
yum groupinstall “Development Tools”
repomd.xml: [Errno 14] HTTP Error 404 – Not Found
yum install centos-release-scl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.fra10.de.leaseweb.net
* epel: mirror.init7.net
* extras: ftp.tu-chemnitz.de
* updates: mirror1.hs-esslingen.de
http://mirror.fra10.de.leaseweb.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article
https://wiki.centos.org/yum-errors
If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
http://ftp.plusline.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://centos.mirrors.psw.services/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
http://centosmirror.netcup.net/centos/7.7.1908/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
Fix:
yum clean all