Setting up the LEMP stack in Ubuntu and other platforms is not a big deal. However, if you want to set up some add-ons, e.g. For example, installing SSL certificates, improving cache to increase site speed, adding an extra layer of protection, increasing speed of content viewing, and more, you should check out a script called Webinoly. It is a simple script that allows you to easily and securely set up an optimized LEMP package for WordPress and other types of websites on Ubuntu OS. Simply rent a VPS or a dedicated server, install Ubuntu and deploy your web server environment with Webinoly in just a few minutes for web hosting.
With the Webinoly script, we can easily publish the following on Ubuntu:
Nginx web server with FastCgi cache and Redis object cache MariaDB (MySQL) PHP WordPress or any kind of website like HTML, PHP.
It also provides a number of tools and commands that you can use to add the following additional features and best practices to your websites:
Install free SSL certificates for your website with Let's Encrypt. Enable HTTP / 2 support to increase the speed of your website content. Configure the FastCgi cache and the Redis object cache to increase the loading time of the website. Get an A + score on the Qualys (SSL Labs) test. Optimize your web server automatically in order to make optimal use of the available resources. Configure and change your server configuration according to your requirements. Wordpress publishes one or more websites. Unique commands to easily create, disable and delete websites. Install Duplicity to secure your websites on external services like Amazon S3 and others. Install PhpMyAdmin to manage databases using a web browser. Support for automatic configuration of external databases such as Amazon RDS. Install Postfix to send and receive messages from your site. Automatic WordPress configuration and optimization Use HTTP authentication to activate an additional layer of protection on the WordPress login page. Upload or update the content of your websites via SFTP. Log in in real time. And much more.
Webinoly is completely open and free and its source code is available on GitHub.
Simply set up the optimized LEMP stack for WordPress in Ubuntu
At this time, Webinoly only supports Ubuntu 16.04, 18.04 LTS, or 20.04 LTS. As I said, setting up an improved LEMP web server is not difficult. You just need to run the following commands on your Ubuntu device.
sudo apt-get install wget
wget -qO weby qrok.es/wy && sudo bash weby 3
Now sit down and have a cup of coffee. The commands above will install and configure all the necessary tools, enable security features and best practices for the LEMP web server. At the end of the installation you will receive passwords for access to your database for root users and users. Change it and keep it in a safe place.
Webinoly has completed the installation
Once your LEMP server is ready, publish your first WordPress site using the following command:
sudo site example.com -wp
You will be asked a number of questions. Answer accordingly and complete the creation of the WordPress site.
Do you need to set up a new MySQL database? [Yes No] Do you want to automatically create a WP Config file? [Yes No] Database host [localhost]: database name [example_com]: Database user [example_com]: Database password [Aswr223gfAd]: Database prefix [wp_]:
Example.com was created successfully!
To access the PhpMyAdmin dashboard, go to the URL http://domain.com:22222 in your web browser. Replace domain.com with the name of your domain.
You can also publish single and multiple WordPress instances easily and quickly.
Use the Webinoly command line
Webinoloy offers few commands to perform the following tasks:
Manage and configure your web server with the webinoly command. View the logs with the log command. Install and remove tools installed by Webinoly on your Ubuntu server using the stack command. Create and manage websites using the site command. Configure HTTP authentication using the HttpAuth command.
Examples of “Webinoly” commands
You can use the webinoly command to manage, configure and change settings on your web server.
To see all the details about installing, configuring, and optimizing the Webinoly script, do the following:
sudo webinoly -info
Update Webinoly to the latest version available:
sudo webinoly -update
Check the integrity of Webinoly-related files and other installed packages:
sudo webinoly -verify
If you have not yet set a time zone in PHP, you can set it at any time with the following command:
sudo webinoly -timezone
Webinoly stores a copy of the DB username and password that was automatically created during installation.
To view your database username and password, do the following:
sudo webinoly -dbpass
Please note that you cannot currently restore the automatically generated passwords if you have already changed them. This is a bug and is expected to be fixed in the next version.
By default, Webinoly uses port 22222 for all tools. To change the port, run the following command and enter your port number:
sudo webinoly -tools-port
Or just use this command:
sudo webinoly -tools-port=<port-number>
With Webinoly you can upload files to the root directory of your website via SFTP. You can allow the user of www-data SFTP access. Do the following:
sudo webinoly -login-www-data=on
Web data users have very limited permissions and can only access your site via SFTP. To revoke the authorization, activate:
sudo webinoly -login-www-data=off
Change the FastCGI cache settings with the following command:
sudo webinoly -config-cache
Time parameters must be specified in the following format:
Seconds - seconds M - minutes H - hours D - days W - weeks M - months Y - years
sudo webinoly -config-cache = [20d, 2w, 2m]
Webinoly uses the following plug-ins to provide your website content faster.
fastcgi Redis cached Darkness
You can clear the cache at any time. For example, do the following to clear the FastCGI cache:
sudo webinoly -clear-cache = fastcgi
To clear the entire cache, the command is:
sudo webinoly -clear-cache = all
Examples of “log” commands:
The log command displays log details and various events have occurred on your Ubuntu server.
To display all records, activate:
To view registration details for a specific site, do the following: B. domain.com.
sudo log domain.com
To view each error log, use:
sudo log -error
To view the error log for a specific domain:
sudo log domain.com -error
Check the following to view WordPress records:
sudo log domain.com -wp
To view records created with an app such as PHP or MySQL:
sudo log -php
sudo log -mysql
If you don’t want the record log, deactivate them as shown in the correct illustration.
sudo log -only-error = on
sudo log domain.com -only-error = on
-only-error = off option to reactivate the records.
Examples of “stack” commands:
The stack command is used to install and remove packages and tools that were installed by the Webinoly script.
Assuming you want to install Nginx, just do the following:
sudo stack -nginx
sudo stack -mysql
Or install the entire LEMP stack with the following command:
sudo stack -lemp
To remove a package, do the following:
sudo stack -mysql -purge
Examples of “stack” commands:
sudo sites -list
- programming language
Create a simple HTML site:
sudo site domain.com -html
Create a site with PHP support:
sudo site domain.com -php
Create a WordPress site:
sudo site domain.com -wp
Create a multi-page site, either in the subdomain or in the subdirectory:
sudo site domain.com -wpsubdom
sudo site domain.com -wpsubdir
Activate / deactivate the FastCGI cache:
sudo site domain.com cache
sudo site domain.com -nocache
Activate the cache during site creation:
sudo site domain.com -wp -cache
Activate / deactivate the SSL certificate:
sudo site domain.com -ssl=on
sudo site domain.com -ssl=off
Activate / deactivate websites:
sudo site domain.com -on
sudo site domain.com -off
Remove a specific site:
sudo site domain.com -delete
Remove all websites hosted on the web server:
sudo site -delete-all
Examples of “HttpAuth” commands:
The HttpAuth command manages users who have permission to access pages that are protected by the HTTP authentication method.
Enable the following to create a user to access pages that are protected by HTTP authentication:
sudo httpauth -add
sudo httpauth -delete
Enable / disable HTTP authentication in a WordPress login:
sudo httpauth -wp-admin-on
sudo httpauth -wp-admin-off
List all users with HTTP authentication:
sudo httpauth -list
The command above creates a WordPress site with FastCGI cache enabled.
For more information on configuring and using Webinoly, see the official documentation page or the support forum.
Have you ever tried Webinoly in production? How will you go Share your thoughts on this script in the comments section below.
Read full source here.