The “stack” command allows us to install and remove packages or tools installed by Webinoly on the server.
Syntax:
sudo stack <option> <option2>
Options:
- -html
- -lemp
- -mysql
- -php
- -php-ver
- -pma
- -purge
- -purge-server-all
Examples:
# 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.3
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.
Install Nginx
sudo stack -html
sudo stack -nginx
Both commands are accepted and identical.
# To install "Mainline" Nginx version:
sudo stack -nginx=mainline
# "Stable" version is installed by default in Webinoly.
sudo stack -nginx=stable
# LEMP
sudo stack -lemp=mainline
* Source: Ubuntu PPA – https://launchpad.net/~ondrej/+archive/ubuntu/nginx
Install PHP
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
.
* Source: Ubuntu PPA – https://launchpad.net/~ondrej/+archive/ubuntu/php
Install MySQL (MariaDB)
sudo stack -mysql
* Source: MariaDB Official Repo – https://downloads.mariadb.org/mariadb/repositories/ (Syringa Networks)
Install phpMyAdmin
phpMyAdmin is installed automatically with MySQL, if for some reason you have removed it you can reinstall it with the following command:
sudo stack -pma
* Source: phpMyAdmin Official Repo – https://www.phpmyadmin.net/downloads/
LEMP installation
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.3
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.
How can I remove installed packages?
The option -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.
Delete Nginx:
sudo stack -nginx -purge
Delete PHP:
sudo stack -php -purge
Delete MySQL:
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 keep-data option
.
Delete PhpMyAdmin:
sudo stack -pma -purge
Delete additional tools:
During installation you can use the -notools
option to not install these tools.
sudo stack -nginx -notools
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 -revoke=on
sudo site domain.com -delete=force -revoke=on
sudo site domain.com -ssl=off -revoke=on
Additional Tools
With each module installed (Nginx, Php and MySQL) are added some additional tools that will be useful for the management of your websites.
NGINX
- Let’s Encrypt – 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.
- Duply & Duplicity – Tool to make backups, for example you can save a backup of your sites periodically in an external service like Amazon S3. I recommend you read my article about Incremental Backups as an example of how to use this tool.
* Source: Ubuntu PPA – https://launchpad.net/~certbot/+archive/ubuntu/certbot
PHP
- Postfix – Tool for sending emails, for example, allows your WordPress sites to send emails from your own server.
- Redis – We use it to optimize the use of the database in WordPress (Object Cache). You only have to install the Redis Object Cache plugin on your site and when you activate it automatically your server will be optimizing the use of the resources in your server related to the operations in your database, especially in high traffic sites.
- Memcached – Similar to Redis and although we no longer use it, we leave it as an option for you.
* Source: Ubuntu PPA – https://launchpad.net/~chris-lea/+archive/ubuntu/redis-server
** All the other “additional packages” are sourced from the Ubuntu Package Archive (https://packages.ubuntu.com/).
MySQL
- phpMyAdmin – Tool for the administration of your databases through the browser. You need to have PHP installed.
To access phpMyAdmin you can do it from your browser with your IP or your selected domain and port as follows: http://server.ip:22222
. You can use an existing domain instead of the IP, just assign it with the “tools-site” option in the Webinoly command, or change the port number with “tools-port”.
This area is protected with HTTP Authentication, read about the HTTPAUTH command to create your credentials. You will also find here some additional tools like PHP (info, ping and status), NGINX Status, etc.
Although not recommended, you can not install these tools; see the -notools
option of the stack
command for more information.
If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the support forum.