To enable LetsEncrypt SSL for a web site hosted in EasyEngine server, run
1 |
ee site update SITE_NAME_HERE --ssl=le |
Example See EasyEngine […]
To enable LetsEncrypt SSL for a web site hosted in EasyEngine server, run
1 |
ee site update SITE_NAME_HERE --ssl=le |
Example See EasyEngine […]
When creating a wordpress web site on EasyEngine, i get following error
1 2 3 4 5 6 7 |
root@ee:~# ee site create smartandsolar.serverok.in --wp Starting site creation. Warning: Could not create user smartandsolar.serverok.in-8LHl6l. Please check logs. Warning: Initiating clean-up. Success: Site smartandsolar.serverok.in deleted. Report bugs here: https://github.com/EasyEngine/site-type-wp root@ee:~# |
This is because EasyEngine try to create a WordPress admin user, that failed to create due to length. To fix the error, you can specify a shorter wordpress admin user name with option –admin-user=admin
1 |
ee site create smartandsolar.serverok.in --wp --admin-user=admin |
See EasyEngine […]
To Enable FTP for EasyEngine web sites, we need to install pure-ftpd. On Ubuntu/Debian, run
1 |
apt install -y pure-ftpd |
Enable virtial FTP users
1 2 |
ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB touch /etc/pure-ftpd/pureftpd.pdb |
In EasyEngine, we sites files are owned by www-data user, this user have a UID of 33. By default pure-ftpd won’t allow this. To enable users with UD 33 to login, run
1 |
echo 1 > /etc/pure-ftpd/conf/MinUID |
Now […]
To create HTML web site
1 |
ee site create example.com --html |
To create PHP web site
1 |
ee site create example.com --php |
To create PHP/MySQL web site
1 |
ee site create example.com --mysql |
To enable LetsEncrypt SSL, add –letsencrypt
1 |
ee site create example.com --letsencrypt |
Create WordPress site
1 2 3 4 5 |
ee site create example.com --wp # install wordpress without any page caching ee site create example.com --w3tc # install wordpress with w3-total-cache plugin ee site create example.com --wpsc # install wordpress with whisp-super-cache plugin ee site create example.com --wpfc # install wordpress + nginx fastcgi_cache ee site create example.com --wpredis # install wordpress + nginx redis_cache |
Create WordPress site with PHP 7.3 and cache enabled
1 |
ee site create domain.com --type=wp --php=7.3 --cache --ssl=le |
Secify wordpress admin user and email during site creation
1 |
ee site create stunningbeachwear.ee.serverok.in --type=wp --php=7.4 --cache --ssl=le --admin-user=admin --wp-mail=admin@serverok.in |
Create WordPress multi site
1 2 3 4 5 |
ee site create example.com --wpsubdir # install wpmu-subdirectory without any page caching ee site create example.com --wpsubdir --w3tc # install wpmu-subdirectory with w3-total-cache plugin ee site create example.com --wpsubdir --wpsc # install wpmu-subdirectory with wp-super-cache plugin ee site create example.com --wpsubdir --wpfc # install wpmu-subdirectory + nginx fastcgi_cache ee site create example.com --wpsubdir --wpredis # install wpmu-subdirectory + nginx redis_cache |
WordPress […]
EasyEngine run database of web sites in a Docker container. To take backup of MySQL database used by a WordPress website, you can run command
1 |
ee shell DOMAIN_NAME --command='wp db export' |
This will create database backup on document root of the web site. See EasyEngine […]
EasyEngine come admin tools. This include phpMyAdmin, phpinfo, OpCache GUI, nginx status. To enable admin tool, run
1 |
ee admin-tools enable example.com |
Admin tools are password protected, to get login details, run
1 |
ee auth list global |
You can login to admin tools at
1 |
http://example.com/ee-admin/ |
Accessing phpMyAdmin The pma link in EasyEngine Admin tools take you to phpMyAdmin login page. To login, you […]
To Find MySQL root password on EasyEngine, run
1 |
cd /opt/easyengine/services && docker-compose exec global-db bash -c 'echo $MYSQL_ROOT_PASSWORD' |
Or
1 2 |
cat /opt/easyengine/services/docker-compose.yml | grep MYSQL_ROOT_PASSWORD | awk -F'=' '{print $2}' cat /opt/easyengine/services/docker-compose.yml | grep MYSQL_ROOT_PASSWORD | cut -d'=' -f2 |
To connect to MySQL console, run
1 |
cd /opt/easyengine/services && docker-compose exec global-db bash -c 'mysql -uroot -p${MYSQL_ROOT_PASSWORD}' |
See EasyEngine […]
To renew SSL for site hosted in EasyEngine, run
1 |
ee site ssl-renew --all |
You can set a cronjob to run every month to auto renew the SSL certificates. […]
To upgrade EasyEngine, run
1 |
ee cli update |
It is recommended you run this in tmux or screen to avoid disconnection while upgrading. Example
1 2 3 4 5 6 7 8 9 10 |
root@ip-172-26-9-39:~# ee cli update Note: It is recommended to run EasyEngine update in tmux/screen. Update at times may take some time. To view progress, tail logs in a different window using `tail -f /opt/easyengine/logs/ee.log`. You have version 4.0.14. Would you like to update to 4.0.17? [y/n] y Downloading from https://github.com/EasyEngine/easyengine/releases/download/v4.0.17/easyengine.phar... md5 hash verified: cb9041faecdae54e51aafdc9adccc4e5 Updating EasyEngine to new version. This might take some time. New version works. Proceeding to replace. Success: Updated EE to 4.0.17. root@ip-172-26-9-39:~# |
Related Posts EasyEngine […]
EasyEngine is a command line tool to manage/configure Nginx web server. https://easyengine.io/ To install EasyEngine, run
1 |
wget -qO ee rt.cx/ee4 && sudo bash ee |
Create Web Site EasyEngine Create Site Enable Let’s Encrypt Enable SSL for a site in EasyEngine Enable FTP for EasyEngine Website EasyEngine HOWTOs Upgrade EasyEngine EasyEngine Renew SSL EasyEngine Connect to MySQL Database EasyEngine backup WordPress Database Enable […]