This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Varnish log | |
varnishlog -a -A -w /var/log/varnish/varnish50x.log -q "RespStatus >= 500 or BerespStatus >= 500" & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tools scan malware in linux | |
https://github.com/jundat95/linux-malware-detect | |
https://www.clamav.net/documents/clam-antivirus-user-manual | |
https://malware.expert/malware-scanner-and-removal/?fbclid=IwAR1D5uTjyxYZfoRJCtBIFtqiSVc3GPARYe6XvzzCY2dOlxRjaJgPs77-HKg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example zip and exclude | |
zip demo.zip -r maldetect-1.6.4/ -x "maldetect-1.6.4/files*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guide setup php7.x-fpm in RedHat 8 | |
# Add repository | |
sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm | |
sudo dnf module list php | |
sudo dnf module enable php:remi-7.3 -y | |
sudo dnf install php-mysql php-opcache php-xml php-mcrypt php-gd php-soap php-redis php-bcmath php-intl php-mbstring php-json php-iconv php-fpm php-zip | |
sudo dnf list installed | grep 'php' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guide setup MariaDB Server 10.3 on RedHat 8 | |
# Setup | |
sudo dnf install mariadb-server | |
sudo systemctl enable --now mariadb | |
systemctl status mariadb | |
# Change root password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Guide setup magento 2 on Centos 8 | |
Make sure the your environment have installed Nginx, PHP-FPM, Composer | |
# Install magento 2 by composer | |
composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition=2.3.4 /var/www/m234cc | |
# Dowload magento |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check IP connecting | |
ifconfig | |
tcpdump -ani ethX port 21 or port 22 | |
# Ping to server | |
nc -vz 127.0.0.1 22 | |
or | |
telnet 127.0.0.1 8081 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set umask for another user | |
sudo vim /home/user/.bashrc | |
- Add line | |
umask 002 | |
Options 2: | |
su -c "umask 002" user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install epel-release | |
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
sudo yum install yum-utils | |
sudo yum-config-manager --enable remi-php72 | |
sudo yum update | |
sudo yum search php72 | more | |
sudo yum search php72 | egrep 'fpm|gd|mysql|memcache' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux | |
https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-client | |
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack | |
sudo chmod 600 ~/.ssh/config | |
sudo chown $USER ~/.ssh/config | |
Example file: /home/user/.ssh/config |