Switch user sudo su USER
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.0/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 18.18.2
npm -v
node -v
Edit your theme file footer.tpl | |
Past the code above the code of footer.tl. |
Switch user sudo su USER
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.39.0/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 18.18.2
npm -v
node -v
Login to SSH and then sudo mysql -u root -p
Hit enter, by default there's no password.
CREATE DATABASE db_name;
CREATE USER 'db_user' IDENTIFIED BY 'STRONG_PASSWORD';
GRANT ALL PRIVILEGES ON db_name.* TO 'db_user';
Header set Connection keep-alive | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType image/svg+xml "access 1 month" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType application/pdf "access 1 month" |
# Disable hotlinking of images with forbidden message | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?seu-dominio.com.br/.*$ [NC] | |
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC] | |
RewriteCond %{HTTP_REFERER} !google\. [NC] | |
RewriteCond %{HTTP_REFERER} !yahoo\. [NC] | |
RewriteCond %{HTTP_REFERER} !googleusercontent\. [NC] | |
RewriteCond %{HTTP_REFERER} !bing\. [NC] |
; sudo nano /etc/php/7.4/fpm/pool.d/digitechpoint.conf | |
; Start a new pool named 'digitechpoint'. | |
; the variable $pool can be used in any directive and will be replaced by the | |
; pool name ('digitechpoint' here) | |
[digitechpoint] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'access.log' | |
; - 'slowlog' |
server { | |
listen 80; | |
listen [::]:80; | |
root /home/digitechpoint/apps/samazgor.me/public; | |
index index.php index.html index.htm; | |
server_name samazgor.me www.samazgor.me; | |
error_page 404 /404.html; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { |
; sudo nano /etc/php/7.2/fpm/pool.d/digitechpoint.conf | |
; Start a new pool named 'digitechpoint'. | |
; the variable $pool can be used in any directive and will be replaced by the | |
; pool name ('digitechpoint' here) | |
[digitechpoint] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'access.log' | |
; - 'slowlog' |
# Edit this file to introduce tasks to be run by cron. | |
# | |
# Each task to run has to be defined through a single line | |
# indicating with different fields when the task will be run | |
# and what command to run for the task | |
# | |
# To define the time you can provide concrete values for | |
# minute (m), hour (h), day of month (dom), month (mon), | |
# and day of week (dow) or use '*' in these fields (for 'any').# | |
# Notice that tasks will be started based on the cron's system |