echo "lxc.kmsg = 0" >> /usr/share/lxc/config/centos.common.conf
Category Archives: Hosting
ERROR 1114 (HY000) at line 7932: The table ‘g_search_index’ is full
/etc/my.cnf.d/server.cnf
tmp_table_size=256M
max_heap_table_size=256M
directadmin missing user in user list
If after migration user is missing in user list:
mv -v /usr/local/directadmin/data/admin/show_all_users.cache /usr/local/directadmin/data/admin/show_all_users.cache_back
directadmin show force tasks
/usr/local/directadmin/dataskq d
Can’t Load URL: The domain of this URL isn’t included in the app’s domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.
Laravel auth issue using socialite.
https://developers.facebook.com/apps
Valid OAuth redirect URIs should contain full redirect URL from config/services.php
ns1 named[32257]: zone xxx.lt/IN: journal rollforward failed: journal out of sync with zone
rm -rf db.xxx.lt.jnl
service named restart
iptables block user-agent: wordpress
iptables -A INPUT -p tcp –dport 80 -m string –string ‘WordPress’ –algo kmp -j DROP
or
iptables -N WordPress-PingVerify
iptables -I INPUT -p tcp –dport 80 -m string –to 70 –algo bm –string ‘GET /’ -j WordPress-PingVerify
iptables -A WordPress-PingVerify -p tcp –dport 80 -m string –to 80 –algo bm ! –string ‘User-Agent: WordPress/’ -j RETURN
iptables -A WordPress-PingVerify -p tcp –dport 80 -m string –to 300 –algo bm –string ‘verifying pingback from’ -j DROP
iptables -A WordPress-PingVerify -j RETURN
or
iptables -N WordPress-PingBacks
iptables -I INPUT -p tcp –dport 80 -m string –to 70 –algo bm –string ‘GET /’ -j WordPress-PingBacks
iptables -A WordPress-PingBacks -p tcp –dport 80 -m string –to 80 –algo bm ! –string ‘User-Agent: WordPress/’ -j RETURN
iptables -A WordPress-PingBacks -p tcp –dport 80 -j DROP
iptables -A WordPress-PingBacks -j RETURN
directadmin find license id
cat /usr/local/directadmin/scripts/setup.txt
Fix license:
cd /usr/local/directadmin/scripts
./getLicense.sh 123 1234 1.2.3.4
service directadmin restart
prestashop debug
vi config/defines.inc.php
define('_PS_MODE_DEV_', true);
directadmin list active users
grep -ir "Suspended=no" /usr/local/directadmin/data/users/*/user.conf | awk -F"/" '{ print $7 }
SMTP Mail protection has been disabled. All users may make smtp connections.
/scripts/smtpmailgidonly on
SMTP Mail protection has been disabled. All users may make smtp connections.
There was a problem setting up iptables. You either have an older kernel or a broken iptables install, or ipt_owner could not be loaded.
cat /proc/net/ip_tables_matches | grep owner
modprobe xt_owner
/scripts/smtpmailgidonly on
SMTP Mail protection has been enabled.
All outbound SMTP connections will be redirected to localhost except:
uid is root (ports: 25,26,465,587)
uid is cpanel (ports: 25,26,465,587)
gid is mail (ports: 25,26,465,587)
gid is mailman (ports: 25,26,465,587)
fure-ftpd file limit view
vi /etc/pure-ftpd.conf
LimitRecursion 100000 1
FAILURE [3; /opt/curlssl/bin/curl] https://server.com/install/index.php?installFixtures=true&_1518181922185 [http code=0; timeout=10]
Installatron error:
FAILURE [3; /opt/curlssl/bin/curl] https://server.com/install/index.php?installFixtures=true&_1518181922185 [http code=0; timeout=10]
You should fine all htaccess and disable them, if they have some server side directives like AddHandler and etc.
If that didn’t work then we’ll try a debug log;
. First, just before you press the [Install] button run these commands:
rm -f /var/installatron/logs/*
echo “debug=yes” >> /usr/local/installatron/etc/settings.ini
. Now press the [Install] button.
. Then when the install process fails immediately remove “debug=yes” from the end of: /usr/local/installatron/etc/settings.ini
That will build a detailed ‘debug_log’. They aren’t always easy to read
composer no output
You can found check problem like this:
curl -s https://getcomposer.org/installer | php — –check
suhosin.executor.include.whitelist = phar
to disable suhosin run:
mkdir /root/bin && curl -sS https://getcomposer.org/installer | php -n — –install-dir=/root/bin
/usr/local/php56/bin/php56 -n /root/bin/composer.phar require league/some_package
lxc-start: lxccontainer.c: wait_on_daemonized_start: 754 Received container state “STOPPING” instead of “RUNNING”
It could be cause by this libvirt error: libvirtd[18329]: Failed to open file ‘/sys/class/net/vethSUT3FA/operstate’: No such file or directory
Fix:
brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.525400a97813 yes virbr0-nic
vim /var/lib/lxc/my_server/config
lxc.network.link = virbr0
lxc-start -n my_server -d