$_SERVER[‘HTTPS’] = ‘On’;
Monthly Archives: August 2021
Failed to migrate the CT: Failed to migrate the Container. An internal error occurred when performing the operation. Try to migrate the Container again. If the problem persists, contact the Virtuozzo support team for assistance.
vzmigrate can’t connect to destination node
On destination: yum install vzmigrate
curl check ssl certificate expiration
curl --insecure -vvI https://www.srv24x7.com 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
logrotate copytruncate ruby
vim /etc/logrotate.d/rails
/path/to/log/*.log {
daily
size 100M
missingok
notifempty
rotate 4
compress
delaycompress
copytruncate
nodateext
}
AH01144: No protocol handler was valid for the URL /index.php (scheme ‘unix’). If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
a2enmod proxy_fcgi
Considering dependency proxy for proxy_fcgi:
Module proxy already enabled
Enabling module proxy_fcgi.
To activate the new configuration, you need to run:
systemctl restart apache2
.htaccess: Expected before end of configuration, referer
a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
directadmin AH01075: Error dispatching request to : (polling
echo 'ProxyTimeout 1800' >> /etc/httpd/conf/extra/httpd-includes.conf
service httpd restart
ubuntu apache latest
add-apt-repository ppa:ondrej/apache2
apt-get update
apt install apache2
Invalid command ‘RewriteRule’
a2enmod rewrite
systemctl restart apache2
can’t open file for writin sudo vim
:w !sudo tee % > /dev/null
grep IP subnet
starting with 192.x.x.x
cat ip_list.txt | grep -E "(192)(\.[0-9]{1,3}){3}"
starting with 192.168.x.x
cat ip_list.txt | grep -E "(192.168)(\.[0-9]{1,3}){2}"
starting with 192.168.10.x
cat ip_list.txt | grep -E "(192.168.10.)[0-9]{1,3}"
linux cat missing new line at the end
grep -h "" ./*.txt
sort ip addresses bash
cat /tmp/ips.txt | sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n
10.0.0.2
10.0.0.5
10.0.0.20
192.168.0.2
192.168.0.4
192.168.0.12
how to stop open vpn
sudo killall openvpn
cPanel set hostname ssl certificate
/usr/local/cpanel/bin/checkallsslcerts –verbose
If checkallsslcerts is doing nothing
rm /var/cpanel/ssl/disable_auto_hostname_certificate
rm /var/cpanel/ssl/disable_service_certificate_management