How to reset EE Password to access EE admin tools

Hello,

When I try to Access admin tools, I realize I forgot username and password, I am quite new to EE, anyway to reset it?

Thanks

Just run ee secure --auth

@nschopra,

thank, this will only change the username and password of EE admin?

Ah! My Bad, didn’t read the query properly. Which specific tool you’re trying to access?

thanks, please check the screenshot:

As mentioned here, EasyEngine admin tools can be accessed using 22222 port. https://example.com:22222. Default Username/Password is easyengine/easyengine. It by any chance that is not working or you don’t know your username/password you can reset them by doing:

sudo ee secure --auth

How to access phpMyAdmin installed with EasyEngine? phpMyadmin is listed under db section in EasyEngine admin tools. So to access phpMyadmin use https://example.com:22222/db/pma/

Where to find MySQL username & Password? Suppose you have run ee stack install. MySQL username and password are stored in .my.cnf file. The Location of file depends on which user runs ee stack install. i.e root@vagrant-ubuntu-trusty-32:~# sudo ee stack install command creates file in home directory of sudo user i.e here in /home/harshad/.my.cnf and root@vagrant-ubuntu-trusty-32:~# ee stack install run with root user creates file at /root/.my.cnf location.

Since EasyEngine v3.3.5, the file .my.cnf isn’t created anymore. Instead, the new location file is /etc/mysql/conf.d/my.cnf.

[Further Reading]

2 Likes

Thanks for so great explanation, your kindly support is really great contributions to this community.

Have a nice day!

Alex

Hello @nschopra ,

what is the different between “ee clean --redis” and delete those cache on phpRedisAdmin please?

is it safe to clean nginx cache at phpRdisAdmin please?

@nschopra,

On our multisite, there are at least 10 subsites, but if I use “ee site show mysite.com”, it only show some of all subsites, does that mean there is wrong configuration setting? please check blow:


ee site show mysite.com Display NGINX configuration for mysite.com

server {

listen 443 ssl http2;
server_name mysite.com www.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;
index index.php index.html index.htm;

#very simple coding provided freely curtesy of rg305 #tested working with NGINX 1.12, 1.14 location /rg305.html { access_log off; #or rem out to log them, but why? return 200 ’ Protocol/Cipher = $ssl_protocol/$ssl_cipher
Your IP address = $remote_addr
Your User Agent = “$http_user_agent” '; }#end-location

include  common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;
include /var/www/mysite.com/conf/nginx/*.conf;

}

server {

listen 443 ssl http2;
server_name shop.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

listen 443 ssl http2;
server_name marketing.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

listen 443 ssl http2;
server_name login.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

listen 443 ssl http2;
server_name lxp.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

listen 443 ssl http2;
server_name forum.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

listen 443 ssl http2;
server_name support.mysite.com;

ssl on;
ssl_certificate /var/www/mysite.com/conf/nginx/ssl/fullchain.cer;
ssl_certificate_key /var/www/mysite.com/conf/nginx/ssl/mysite.com.key;
ssl_dhparam /var/www/mysite.com/conf/nginx/ssl/dhparams.pem;
ssl_prefer_server_ciphers on;

ssl_buffer_size 8k;
ssl_stapling on;
resolver 8.8.8.8;
ssl_stapling_verify on;

subs_filter_types mime-type *;
subs_filter 'http://\$host' 'https://\$host';
subs_filter 'http://fonts' 'https://fonts';
subs_filter 'http://maps' 'https://maps';

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;  
index index.php index.html index.htm;

include common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;

}

server {

# Uncomment the following line for domain mapping
listen 80 default_server;

server_name *.mysite.com mysite.com;

# Uncomment the following line for domain mapping
#server_name_in_redirect off;

access_log /var/log/nginx/mysite.com.access.log rt_cache_redis; 
error_log /var/log/nginx/mysite.com.error.log;

root /var/www/mysite.com/htdocs;
index index.php index.html index.htm;

include  common/redis-hhvm.conf;     
include common/wpcommon.conf;
include common/locations.conf;
#include /var/www/mysite.com/conf/nginx/*.conf;

return 301 https://$host$request_uri;

}

root@mysite:~#

Hi @nschopra

does this commend line support deleting only a sub site?

ee site delete example.com --db

for example:

ee site delete subsiteA.example.com --db

please confirm, thanks.

Hey Alexlii, Glad I could be helpful. Sorry, but I won’t be able to help with any query about Multisite as I have never created one. Also, I am not sure about Redis Clean query. Hope, some expert will be able to answer it.

Tagging @virtubox as he is the one who can answer these for sure.

Sorry for later reply, and thanks so much.