sni for exim directadmin

It should fix Outlook errors like Cannot verify Security Certificate or Internet security warning
Common name: localhost issue


cd /usr/local/directadmin
echo mail_sni=1 >> conf/directadmin.conf
service directadmin restart
cd custombuild
./build update
./build set eximconf yes
./build set eximconf_release 4.5
./build set dovecot_conf yes
./build exim_conf
./build dovecot_conf

Too many open files in system openvz

id: cannot find name for user ID 0
-bash: cannot make pipe for command substitution: Too many open files in system
-bash: /etc/profile.d/less.sh: Too many open files in system
-bash: /etc/profile.d/mc.sh: Too many open files in system
-bash: /etc/profile.d/vim.sh: Too many open files in system
-bash: /etc/profile.d/which-2.sh: Too many open files in system
-bash: /root/.bash_profile: Too many open files in system
-bash-3.2# logout
-bash: /root/.bash_logout: Too many open files in system
-bash: /etc/bash.bash_logout: Too many open files in system
exited from CT XXXX

Fast fix:
vzctl restart XXXX

Checking C compiler….Could not locate an executable “gcc” binary….Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler.

Checking C compiler….Could not locate an executable “gcc” binary….Done ** Unrecoverable Error ** The C compiler is not functional and auto repair failed. Perl module installs require a working C compiler

You should find Compiler Access in WHM and enable it for some users.

kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)

ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)

journalctl -u kubelet
kubelet[25843]: F0310 21:08:58.395379 25843 server.go:189] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error
kubelet.service: main process exited, code=exited, status=255/n/a

Fix:
kubeadm init

[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using ‘kubeadm config images pull’
[kubelet-start] Writing kubelet environment file with flags to file “/var/lib/kubelet/kubeadm-flags.env”
[kubelet-start] Writing kubelet configuration to file “/var/lib/kubelet/config.yaml”
[kubelet-start] Activating the kubelet service
[certs] Using certificateDir folder “/etc/kubernetes/pki”
[certs] Generating “etcd/ca” certificate and key
[certs] Generating “etcd/server” certificate and key

[access_compat:error] [pid 28167:tid 140515211155200] [client xx.xx.xx.xx:37918] AH01797: client denied by server configuration: /var/www/html/

Forbidden You don’t have permission to access / on this server

You should check directory permissions: namei -l /var/www/html/, if permissions are fine you need check virtual host configuration if there are no such options like ‘Deny from all’, if virtual host fine, you need search for .htaccess like this: find / -type f -name .htaccess

No space left on device: mod_hostinglimits: Failed to create shared memory segment on file

[hostinglimits:error] [pid 721956:tid 140505843804096] (28)No space left on device: mod_hostinglimits: Failed to create shared memory segment on file /var/logs/hostinglimits_shm.72195

It can be semaphores issue:
Cloudlinux kernel version: 2.6.32-673.26.1.lve1.4.15.el6.x86_64

ipcs -a
0x21019e52 145919280 root 600 78000 0
0xf8012979 325291313 root 600 78000 0
0xb0015185 648809778 root 600 78000 0
0x30015b4f 814452019 root 600 78000 0
0x47013071 983207220 root 600 78000 0
0x6901c6db 1153043765 root 600 78000 0
0x2f01e427 1323306294 root 600 78000 0
0xa8015f7b 1630965047 root 600 78000 0
0xd1017f3b 1800768824 root 600 78000 0
0x77019e6e 1960643897 root 600 78000 0
0xe901511c 2095910202 root 600 78000 0
0xd7014bdf 96374075 root 600 78000 0
0x8f014c0d 630754620 root 600 78000 0
0xa501e826 1071942973 root 600 78000 0

My advice to reboot the server, check uptime before reboot.

Primary script unknown error in php-fpm httpd rewrite

If you had something like this:
ProxyPassMatch “^/(.*\.php(/.*)?)$” “unix:/var/run/php-fpm/php.sock|fcgi://localhost/some/path” enablereuse=on

Advice is to change to SetHandler:


<Directory "/some/path">
<FilesMatch \.php$>
ProxyErrorOverride on
SetHandler "proxy:unix:/path/to/sock/php.sock|fcgi://localhost"
</FilesMatch>
</Directory>