The “stack” command allows you to install and remove packages or tools installed by Webinoly on the server.
sudo stack <option> <option2>
# Install package sudo stack -nginx # Remove package sudo stack -pma -purge # Remove all packages sudo stack -purge-server-all=force # Change PHP version sudo stack -php-ver=7.4
Ethical Use Of Software
Webinoly is an Enterprise Grade Tool with full commitment to transparency.
We are very serious about the package selection we use to build your server LEMP stack, we always use official and well-known sources (PPA’s).
It’s important to us that you know that we never compile or modify these packages and we never include or use any third-party untrusted software.
How can I install and configure all the necessary packages for my web server?
During the initial installation of Webinoly, you have the option to do it completely (option 1-4) with all the packages required for the configuration of your web server; you can also choose to do a manual installation (option 0) and only install Webinoly.
If you still do not install Webinoly, I recommend you first read the documentation about the installation. That way, just by executing a command, you can have your web server fully configured.
If you decided to do a manual installation it would allow you to choose which packages are installed and configured on your server.
sudo stack -nginx
Stable Nginx branch is used by default.
# To install "Mainline" Nginx version: sudo stack -nginx=mainline # LEMP sudo stack -lemp=mainline
* Also, you can change the Nginx branch in the Webinoly Configuration file.
* Source: NGINX Official Repo – https://nginx.org/packages/ubuntu/
sudo stack -php
When Nginx is not installed Webinoly will ask you if you want to install it together with PHP, if you want to jump or avoid this question you can use the “force” option in the following way
sudo stack -php=force.
Official site: https://www.php.net/
* Source: Ubuntu PPA – https://launchpad.net/~ondrej/+archive/ubuntu/php
Install MySQL (MariaDB)
sudo stack -mysql
Official site: https://mariadb.org/
* Source: MariaDB Official Repo – https://downloads.mariadb.org/mariadb/repositories/ (Mirror: Syringa Networks)
Installs Nginx, PHP, MySQL and all the additional tools.
sudo stack -lemp
Change or modify the PHP version
It is very simple, at any time you just have to execute the following command indicating the desired version of PHP:
sudo stack -php-ver=7.4
If you have not yet installed PHP, only the version that is installed by default will be modified; therefore, the next time you do the installation, the version you have indicated will be taken. If you currently have a different version installed, this command will perform the uninstallation of the previous version. It will install all the necessary packages with the new version you have indicated.
Change or modify MariaDB (MySQL) version
It is very simple, at any time you just have to execute the following command indicating the desired version of MariaDB:
sudo stack -mysql-ver=10.6
If you have not yet installed MariaDB (MySQL), only the version that is installed by default will be modified; therefore, the next time you do the installation, the version you have indicated will be taken. If you currently have a different version installed, this command will perform the uninstallation of the previous version. It will install all the necessary packages with the new version you have indicated. Downgrading MariaDB is not supported.
How can I remove installed packages?
-purge will allow you to remove any package installed by Webinoly, you can also use the option
-purge=force to ignore any question (Unattended).
When you delete a package automatically all additional related tools will be deleted.
sudo stack -nginx -purge
sudo stack -php -purge
sudo stack -mysql -purge
phpMyAdmin will be automatically deleted.
# Tip - Don't delete your databases if you want to reinstall later. sudo stack -mysql=keep-data -purge
Before removing MySQL, you should make a backup of your databases, especially if you use the
Remove all packages installed by Webinoly
sudo stack -purge-server-all
sudo stack -purge-server-all=force
Remove and revoke all your SSL Certs is recommended before removing Nginx:
sudo site -delete-all=force -revoke=on sudo site domain.com -delete=force -revoke=on sudo site domain.com -ssl=off -revoke=on
With each package installed (Nginx, Php and MySQL) are added some additional tools that will be useful for the management of your websites.
All of these packages can be installed or removed individually according to your needs.
- Let’s Encrypt
- Duply & Duplicity (Backups)
- MySQL (MariaDB)
By default, all these tools are installed.
# Profile: light # No additional tools will be installed sudo stack -lemp -build=light # Profile: basic # Only basic tools: Let's Encrypt, Backups and Postfix sudo stack -lemp -build=basic # You can use these profiles when installing individual packages too. sudo stack -nginx -build=light
Tool for the creation of free SSL certificates, necessary for the operation of the
-ssl=on option of the Webinoly “site” command for the automatic creation of certificates in your sites.
# Install sudo stack -letsencrypt # Remove sudo stack -letsencrypt -purge
Official site: https://letsencrypt.org/
* Source: Certbot Official SNAP Package
Duply & Duplicity
Tool to make backups, for example you can save a backup of your sites periodically in an external service like AWS S3 or any other compatible service.
# Install sudo stack -backups # Remove sudo stack -backups -purge
* Source: Duply official Sourceforge Repo | Duplicity Official SNAP Package
Tool for sending emails, for example, allows your WordPress sites to send emails from your own server.
# Install sudo stack -postfix # Remove sudo stack -postfix -purge
Official site: http://www.postfix.org/
* Source: Ubuntu Package Archive (https://packages.ubuntu.com/).
Redis Object Cache is an open-source, networked, in-memory, key-value data store that can be used as a drop-in caching backend for your own App or any WordPress website. Very useful when you have an intensive database use.
# Install sudo stack -redis # Remove sudo stack -redis -purge
Official site: https://redis.io/
* Source: Ubuntu PPA – https://launchpad.net/~redislabs/+archive/ubuntu/redis
Similar to Redis and although we no longer use it, we leave it as an option for you.
# Install sudo stack -memcached # Remove sudo stack -memcached -purge
Official site: http://memcached.org/
* Source: Ubuntu Package Archive (https://packages.ubuntu.com/).
Tool for the administration of your databases directly from your browser. You need to have Nginx and PHP installed.
# Install sudo stack -pma # Remove sudo stack -pma -purge
Official site: https://www.phpmyadmin.net/
* Source: phpMyAdmin Official Repo – https://www.phpmyadmin.net/downloads/
If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the Community Forum.