You are on page 1of 6

REMOVE CART, ACCOUNT & SEARCH FROM WOOCOMMERCE WORDPRESS

nginx.conf add/increase client_max_body_size in the nginx configuration file http area/section: http { client_max_body_size 32m;
(other lines will also be here) }

nano /etc/nginx/nginx.conf ->> client_max_body_size 256m;

https://www.youtube.com/watch?v=BKsA7wzVpHE

Go to Additional CSS and paste code below:

.cart-item { display: none !important; }

.account-item { display: none !important; }

.header-search { display: none !important; }

.payment-icon { display: none !important; }

.copyright-footer { display: none !important; }

WORDPRESS & MARIADB PASSWORDS

7807000159C@nada13!ddd

Lock down Wordpress folder to READ ONLY!!

chmod -R 555 /var/www/litsip.ca/wordpress/

change to 777 WHEN EDITING

------------------------------------------------------------------

Use Ubuntu 16LTS VPS

Install PHP 7.4 on Ubuntu

https://computingforgeeks.com/how-to-install-php-on-ubuntu/

To display Nginx page instead of Apache2 rename default html file :

mv /var/www/html/index.html /var/www/html/index.htmlhhh

https://devanswers.co/installing-nginx-ubuntu-18-04-multiple-domains/

https://devanswers.co/lets-encrypt-ssl-cert-nginx-ubuntu-18-04/

https://stackoverflow.com/questions/50933692/nginx-does-not-process-the-php-file-and-saves-
it-php7-2-fpm

https://websiteforstudents.com/install-wordpress-on-ubuntu-18-04-lts-bata-with-nginx-
mariadb-and-php-fpm/

DELETE DATYABASE AND USERS

https://www.cyberciti.biz/faq/how-to-delete-remove-user-account-in-mysql-mariadb/

WORPRESS FTP CREDENTIALS DURING PLUGIN INSTALL SOLUTION

step-1 : First open wp-config.php file of your wordpress installation folder.


step-2: Copy below code and paste it at the end of the wp-config.php file.

define('FS_METHOD','direct');
step-3: Now open your droplet access console and enter root as username and its
password.
step-4: Copy below code and paste it into access console where you have to specify your
plugin directory path and then hit enter.

chmod 777 /yourwebsitename/WORDPRESS/wp-content/plugins/

404 Error Fixed - Wordpress Problem Resolved

Replace try_files $uri $uri/ =404 WITH:

try_files $uri $uri/ /index.php?q=$uri&$args;

Don't forget after you will need to reload nginx

sudo service ngix reload

SSL UBUNTU 18.04 Beaver


SAMPLE -> /etc/nginx/sites-enabled/tel-it.ca

PHP CONFIG - Check php version & Pay Attention to "locations" & add index.php

server {

root /var/www/tel-it.ca/wordpress;

index index.php index.html index.htm index.nginx-debian.html;

server_name tel-it.ca;

location / {

try_files $uri $uri/ =404;

location ~ \.php$ {

include snippets/fastcgi-php.conf;

fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;

location ~ /\.ht {

deny all;

listen [::]:443 ssl ipv6only=on; # managed by Certbot

listen 443 ssl; # managed by Certbot

ssl_certificate /etc/letsencrypt/live/tel-it.ca/fullchain.pem; # managed by Certbot

ssl_certificate_key /etc/letsencrypt/live/tel-it.ca/privkey.pem; # managed by Certbot

include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}

server {

if ($host = tel-it.ca) {

return 301 https://$host$request_uri;

} # managed by Certbot

listen 80;

listen [::]:80;

server_name tel-it.ca;

return 404; # managed by Certbot

SMTP EMAIL SETTINGS

Make sure SPF / TXT record has the IP Address of the website server like below:

v=spf1 ip4:34.73.27.164 include:spf.protection.outlook.com -all

Also make sure CNAME & MX are set on GoDaddy like below

CNAME -> Host = autodiscover points to = autodiscover.outlook.com

MX -> Host = autodiscover.outlook.com points to = litsip-com.mail.protection.outlook.com


Install the WP MAIL SMTP plugin and set it up like below:

You might also like