The command “Webinoly” allows us to make some changes in the configuration, as well as to consult some aspects of the web server. We will explain in detail the use of this command.
sudo webinoly <option>
sudo webinoly -update sudo webinoly -login-www-data=on sudo webinoly -clear-cache=all
How do I upgrade to the latest version of Webinoly?
It is very simple, you just have to execute the following command and it will download and install the most recent version of this application.
sudo webinoly -update
It is important to note that this command only updates the Webinoly app, not the other packages installed in the server. You should run a server update and upgrade
sudo apt update && sudo apt -y upgrade at least once a month.
Recover MySQL username and password
Webinoly saves a copy of users and passwords generated automatically during the installation of MySQL since these data are necessary to execute some commands, like the creation of the database for WordPress sites, among others.
sudo webinoly -dbpass
If you have modified the generated password, this command will not be able to recover it and some commands might not work correctly, we are working to correct this behavior in the next update.
Access to PhpMyAdmin and other tools
At any time you can modify the access port (0-65535), by default we use port 22222 or the one you chose during the initial installation.
sudo webinoly -tools-port
In the same way you can automate the execution of the command as follows:
sudo webinoly -tools-port=19816
It is also possible to define an existing domain for “only access” to these tools.
sudo webinoly -tools-site=domain.com
Any request from another domain will be blocked.
Now you can access your tools using
domain.com:19816 from your browser.
Allow SFTP access to www-data user
Very useful for uploading files through SFTP, this user has very limited access permissions and can only be used to log in through SFTP and with access only to the file folders of your websites.
sudo webinoly -login-www-data=on
You can block the access at any time.
sudo webinoly -login-www-data=off
FastCgi Cache settings
Webinoly configures three time values for Cache retention.
- HTTP Code 200: Successful requests.
- HTTP Code 301, 302, 307 and 404: Redirects and pages not found.
- Inactivity time: Remove cached data that has not been accessed in the specified time.
To modify the configuration you only have to execute the following command:
sudo webinoly -config-cache
The time parameters must be entered in the following format:
- s – seconds
- m – minutes
- h – hours
- d – days
- w – weeks
- M – Months
- y – years
The command also allows to automate its execution of the following way:
sudo webinoly -config-cache=[10d,1w,5m]
The first argument is the response for 200 codes, the second the downtime and the third for redirects.
# Example: sudo webinoly -clear-cache=fastcgi sudo webinoly -clear-cache=all
This command will set the timezone in PHP and in Ubuntu operating system.
sudo webinoly -timezone
You can also directly pass the data in the following way:
sudo webinoly -timezone=America/Mexico_City. Check the supported timezones.
Block and deny IP address
To restrict access in Nginx to a specific IP or block of addresses.
sudo webinoly -blockip=184.108.40.206
In the same way we can use the
-unblockip option to remove it from the list of blocked addresses.
Webinoly have native support for the sitemap included in the Yoast SEO plugin. If you use another sitemap or it’s causing a conflict with another plugin, you can deactivate this function.
sudo webinoly -yoast-sitemap=off
If you access your server from your browser using the IP of the server you will see the Welcome page of Nginx, which is the answer that is configured by default.
Webinoly allows you to customize the site or answer by default.
sudo webinoly -default-site=<option>
default – Nginx default behavior.
blackhole – Any request that does not correspond to an existing domain in the server will return a 444 code in response or in other words, the server will not respond to those requests.
domain – Define an existing domain or site as default response to any request.
Update, modify or reset server settings
This is an advanced function and you only have to make this type of modifications if you know the impact and result that could cause in the behavior of your server, otherwise we recommend to keep the configuration set by default.
The Webinoly configuration file is located in
/opt/webinoly/webinoly.conf and only the following variables can be updated manually, you must be careful not to modify any other values.
To modify a variable in the configuration file you can use the command
-conf-value_<variable>=<value> as follows:
sudo webinoly -firstname.lastname@example.org.
-server-reset can update the configuration of an specific package
(nginx, php, all) in the following way:
sudo webinoly -server-reset=php. If the packages (stack) have not been installed yet, the values will be loaded when you do the installation, if they are already installed, the current configuration will be updated and any changes made manually by the user will be lost.
max-mb-uploads – Defines the maximum size of an uploaded file, by default a value of 50MB is declared.
php-max-mem – It establishes the memory limit that a PHP script can use, it is a direct adjustment to the
memory_limit variable in the
swap-mem – Webinoly automatically creates a SWAP memory partition, the size is determined based on the amount of RAM installed on your server.
fd-ratio – Linux automatically configures the “file descriptors” limit based on system RAM. More or less it is based on 10% of the RAM taking 1kb for each file to calculate that value. This variable in the configuration file modifies the percentage of RAM taken to perform this calculation.
nginx-fd-ratio – From the total of file descriptors calculated in the previous variable, the percentage assigned or allowed to be used or available for Nginx is calculated. That is, this variable is a percentage of the previous total.
nginx-ppa – We can choose the option “mainline” or “stable”. This option only works before Nginx is installed.
log-lines – It establishes the number of lines that the output of the log command will have, the default value is 10.
# Numeric value in Megabytes max-mb-uploads:100 php-max-mem:256 # Numeric value in Gigabytes swap-mem:2 # Numeric value in % percentage fd-ratio:50 nginx-fd-ratio:80 nginx-ppa:mainline log-lines:20 debug:true mail:email@example.com
In the same way you can add the variable
mail:firstname.lastname@example.org in the configuration file to avoid being asked the first time you create an SSL certificate. Or use
debug:true to create SSL certificates in testing environments (Let’s Encrypt Staging Enviroment).
Verify Webinoly integrity
At any time you can verify the integrity of the files related to Webinoly and your web server.
sudo webinoly -verify
This will run a scan for all the main files and check some basic aspects of your configuration.
To see all the information regarding the installation, configuration and optimization made by Webinoly on your server.
sudo webinoly -info
Normally we use it to debug and detect any errors if necessary.
You can also check the Webinoly version:
sudo webinoly -version (-v, -V).
Although we regret that you make this decision, the following command will completely remove Webinoly and all its files from the server.
sudo webinoly -uninstall
- This action will not delete your websites, their files and data.
- The configuration of your server, as well as the installed packages will not be affected or uninstalled.
- The Webinoly commands to create and manage your server and websites will be removed and will no longer be available for use.
Any doubts about the use of Webinoly do not hesitate to consult or ask through the support forum.