cp -v /etc/dovecot/sni.conf /etc/dovecot/sni.conf.back
> /etc/dovecot/sni.conf
service dovecot start
Category Archives: Hosting
reset wordpress password sql
SELECT ID, user_login, user_pass FROM wp_users;
UPDATE wp_users SET user_pass = MD5(‘WPEXPLORER’) WHERE ID=1 LIMIT 1
Enabling Maintenance mode… wordpress stuck
If you have such error and error logs is showing such errors like: Fatal error: Allowed memory size of 33554432 bytes exhausted.
Fastest fix is to upgrade wordpress manually by downloading the newest wordpress version using SSH or FTP access.
directadmin xfs_quota: cannot set limits: Function not implemented
Directadmin FIX:
Add rootflags=uquota,pquota
vi /etc/default/grub
GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet rootflags=uquota,pquota”
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.back -v
grub2-mkconfig -o /boot/grub2/grub.cfg
apache syn flood
iptables -A INPUT -p tcp ! –syn -m state –state NEW -j DROP
iptables -A INPUT -f -j DROP
iptables -A INPUT -p tcp –tcp-flags ALL ALL -j DROP
iptables -A INPUT -p tcp –tcp-flags ALL NONE -j DROP
also nginx can help as proxy.
checking for libmemcached location… configure: error: Unable to find memcached.h under
Directadmin install memcached using percl problems.
cd /usr/local/src
wget https://launchpad.net/libmemcached/1.0/1.0.15/+download/libmemcached-1.0.15.tar.gz
tar -zxvf libmemcached-1.0.15.tar.gz
cd libmemcached-1.0.15
./configure
make
make install
mysql governor set user connection limit
vi /etc/container/mysql-governor.xml
service db_governor restart
while executing “/usr/local/cpanel/scripts/getremotecpmove”: The transfer
Error while cpanel transfer account.
Fix ddisable CSF+LDF:
csf -x # disable
csf -e # enable
cpanel custom mysql
Backup all cPanel mysql DB:
mkdir /root/dbbackups
touch /root/dbbackups/list
for db in `mysql -e 'show databases' |awk '{print $1}' | grep -v Database` ; do
mysqldump --add-drop-table $db > /root/dbbackups/$db.sql && echo $db >> list
done
Set unmanaged:
/scripts/update_local_rpm_versions –edit target_settings.MySQL50 unmanaged
/scripts/update_local_rpm_versions –edit target_settings.MySQL51 unmanaged
/scripts/update_local_rpm_versions –edit target_settings.MySQL55 unmanaged
/scripts/update_local_rpm_versions –edit target_settings.MySQL56 unmanaged
Get new mysql:
http://httpupdate.cpanel.net/pub/mysqlinstall/
or http://httpupdate.cpanel.net/RPM/11.36/
if you are using cloudlinux:
cat /etc/yum.repos.d/cl-mysql.repo
[cl-mysql-5.5-stable]
name=cl-mysql-5.5-stable
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/cl-mysql-5.5-stable/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
[cl-mysql-5.5-testing]
name=cl-mysql-5.5-testing
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/cl-mysql-5.5-testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
[cl-mysql-5.6-stable]
name=cl-mysql-5.6-stable
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/cl-mysql-5.6-stable/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
[cl-mysql-5.6-testing]
name=cl-mysql-5.5-testing
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/cl-mysql-5.6-testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
[mysql-debuginfo]
name=mysql-debuginfo
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
[mysqclient]
name=mysqlclient
baseurl=http://repo.cloudlinux.com/other/cl$releasever/mysqls/mysqlclient/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CloudLinux
“The adminbin “hooks” in the “Cpanel” namespace call to function “mysql::adduser” ended prematurely:”
If you have removed cloudlinux, some hooks can be left on your cPanel:
rm -rf /usr/local/cpanel/hooks/mysql/deluser*
cpanel swap ip, change ip command line
/usr/local/cpanel/bin/setsiteip -u $user $ip
/usr/lib64/libssl.so.10: no version information available (required by /usr/local/directadmin/directadmin)
yum update openssl openssl-devel
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf
/usr/local/directadmin/scripts/getLicense.sh 11111 11111 MY_IP
directadmin delete email account timeout
You can do “rm -fr /home/user/domains” in ssh
and then after it’s done delete it through control panel.
cpanel apache server status
This can be run from command line:
w3m -dump http://localhost/whm-server-status