sudo -i
cd /
apt-get update && apt-get upgrade && apt-get dist-upgrade
- wget -qO ee rt.cx/ee && sudo bash ee
- nano /etc/ee/ee.conf
Ask for MySQL db name while site creation
db-name = True
Ask for MySQL user name while site creation
db-user = True
Ask for WordPress prefix while site creation
prefix = True
User name for WordPress sites
user = useradmin
Password for WordPress sites
password = senhaadmin
EMail for WordPress sites
email = emailadmin
- ee site create MINHALOJA.com.br --wpfc
-
nano /var/www/MINHALOJA.com.br/wp-config.php
define( 'WP_MEMORY_LIMIT', '128M' ); define ( 'AUTOMATIC_UPDATER_DISABLED', true );
- nano /etc/nginx/common/wpfc-woocommerce.conf
# WPFC-WOOCOMMERCE NGINX CONFIGURATION
set $skip_cache 0;
# POST requests and URL with a query string should always go to php
if ($request_method = POST) {
set $skip_cache 1;
}
if ($query_string != "") {
set $skip_cache 1;
}
# Don't cache URL containing the following segments
if ($request_uri ~* "(/carrinho.*|/minha-conta.*|/finalizar-compra.*|/addons.*|/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
set $skip_cache 1;
}
# Don't use the cache for logged in users or recent commenter
if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") {
set $skip_cache 1;
}
# Use cached or actual file if they exists, Otherwise pass request to WordPress
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
set $rt_session "";
if ($http_cookie ~* "wp_woocommerce_session_[^=]*=([^%]+)%7C") {
set $rt_session wp_woocommerce_session_$1;
}
if ($skip_cache = 0 ) {
more_clear_headers "Set-Cookie*";
set $rt_session "";
}
fastcgi_cache_key "$scheme$request_method$host$request_uri$rt_session";
try_files $uri =404;
include fastcgi_params;
fastcgi_pass php;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 60m;
}
location ~ /purge(/.*) {
fastcgi_cache_purge WORDPRESS "$scheme$request_method$host$1";
}
-
ee site edit MINHALOJA.com.br
# include common/wpfc.conf; include common/wpfc-woocommerce.conf;
-
chown -R www-data:www-data /var/www/MINHALOJA.com.br/htdocs
-
ee secure --auth
-
ee stack install --phpmyadmin
-
nano /etc/mysql/conf.d/my.cnf
http://www.MINHALOJA.com.br/pma