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
The “raw” option is also supported to remove format:
sudo webinoly -dbpass=raw.
Change MySQL password
We can only modify the password of the “root” and “admin” users, they are the only ones that Webinoly saves and uses to work.
sudo webinoly -mysql-password
We can also use it in the following way:
sudo webinoly -mysql-password=[user,pass].
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
sudo webinoly -tools-site=default
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, 404 and 410: 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=22.214.171.124
In the same
Or to list all the IP’s that have been blocked:
sudo webinoly -blockip -list
# Tip - RAW option is supported to remove format. sudo webinoly -blockip -list -raw # Remove IP from the list sudo webinoly -blockip -purge sudo webinoly -blockip=126.96.36.199 -purge
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
Enable/disable (on/off) this feature globally, this way when a site is created this feature will be enabled or disabled by default according to this setting. For a specific site or after a site is created, you can activate/deactivate this feature using our “site” command.
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.
SMTP setting for sending emails
Postfix is always installed with Webinoly for sending emails, for instance, all your WordPress sites notifications, and now you can also configure it to send emails using an external SMTP provider such as Amazon SES, Mandrill, Mailgun, SendGrid or any other provider.
sudo webinoly -smtp
All the server outgoing emails from any of your websites will be sent through this service.
# Test the SMTP service from command line: echo "Subject: test" | sendmail email@example.com # Remove the SMTP configuration and use the Postfix default configuration sudo webinoly -smtp -purge # Tip for Unattended Scripts sudo webinoly webinoly -smtp=[smtp_host,user,password,mainhost]
The “mainhost” refers to the domain that will be used by default to send emails when this data is not provided and it must be an existing domain on the server.
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.
After any modification to the config file, you should do a
-server-reset to changes take effect, this command can update the configuration of a 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 automatically 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
redis-max-mem – It establishes the memory limit that Redis can use and is a percentaje of the total RAM available, default value is 10.
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.
For a complete removing Webinoly guide, check our FAQ section.
If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the support forum.