Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Git and GitHub are available at Infomaniak with all accommodation offers on...
and of course the offer Jelastic Cloud which will allow you a integration in depth versioning.
This guide explains how to resolve issues that may occur with a Web Hosting if it has undergone changes to its IP address (e.g., a server move) and your computer retains the old position in its DNS cache.
Flush the DNS cache…
When you visit a website, your computer locally stores an association between the domain name and its IP address in the DNS cache. This speeds up the DNS resolution process for future visits to the same site, as the computer can avoid querying the DNS servers again to obtain the IP address.
By clearing the DNS cache, you force your computer to query the DNS servers again to obtain the latest up-to-date information on the IP addresses of the sites you visit.
... on Windows
Run the following command from a Terminal
application (command-line interface, CLI /Command Line Interface
) on your device. Example:
- Open the Start menu.
- Type cmd.
- In the search results, click on Command Prompt.
- Run the command
ipconfig /flushdns
.
… on macOS
Run the following command from a Terminal
application (command-line interface, CLI /Command Line Interface
) on your device:
- Run the command
lookupd -flushcache
(if it fails:dscacheutil -flushcache
).
… on Linux
Run the following command from a Terminal
application (command-line interface, CLI /Command Line Interface
) on your device:
- Run the command
sudo systemctl restart nscd
orsudo /etc/init.d/nscd restart
to restart nscd.
This guide explains how to establish the first SSH connection on your VPS Cloud / VPS Lite.
Running a command with root privileges…
From a command-line interface (CLI) application like Terminal
on your device, for example the PuTTY application (to download and install on Windows) or Terminal (installed by default on macOS), run sudo -i
to load the complete root environment, giving you a full interactive session as root with the root's personal directory and environment variables. Learn more
... on macOS or Linux
To connect, you must open a Terminal window and run the following command:
ssh -i [key path] [user]@[server]
[key path]
= link to the file containing the private key; as a reminder, when ordering your VPS Cloud / VPS Lite, you were invited to generate a key pair or upload your own public key (permissions must be sufficient, e.g., 0700)[user]
= see below for default usernames[server]
= IPv4 address of the server (indicated on the Manager)
Example: ssh -i c:/path/key ubuntu@192.168.1.1
If you encounter the error "WARNING: UNPROTECTED PRIVATE KEY FILE!", run the command chmod 400 [key path]
.
... on Windows
Windows does not natively support SSH connections: enable the Bash shell (Windows 10 minimum) or download the following two free software programs: PuTTY & PuTTYgen
To begin, your private key must be converted to be used with PuTTY.
To do this, open PuTTYgen and click the «Load
» button to load your private key. Then, save your private key using the «Save private key
» button.
Open PuTTY now and provide the following:
Under Session
(in the left sidebar):
[HostName]
= server's IPv4 address (indicated on the Manager)[Port]
= leave the default port, which is 22[Connection type]
= specify «SSH» here
Under Connection / SSH / Auth
(in the left sidebar):
- Open your private key generated via PuTTYgen using the «
Browse
» button under «Private key file for authentication
» - Click the «
Open
» button at the bottom of the window. A terminal will open and prompt you for your username (user
= see below)
Default username [user] for unmanaged Cloud servers with:
Linux distribution table
Linux distribution | Default user |
---|---|
AlmaLinux | almalinux |
Arch Linux | arch |
CentOS | cloud-user |
Debian 7 "Wheezy" and earlier versions | root |
Debian 8 "Jessie" and later versions | debian |
Fedora | fedora |
FreeBSD | freebsd |
Ubuntu | ubuntu |
OpenBSD | openbsd |
openSUSE Leap 15 | opensuse |
openSUSE 42 | root |
RancherOS | rancher |
SUSE Linux Enterprise Server | root |
This guide allows you to “unlock” any Windows parameter blocked by the message “Some settings are hidden or managed by your organization” (such as changing the wallpaper, for example) and lift these restrictions in place by default on the server offer VPS Cloud / VPS Lite.
Reset the local group policy settings
To reset all local group policy settings to their default values:
- Open the command prompt as an administrator.
Enter the following commands:
RD /S /Q "%windir%\System32\GroupPolicyUsers" RD /S /Q "%windir%\System32\GroupPolicy" gpupdate /force
- Restart the machine.
This guide explains the differences between the web hosting offers from Infomaniak to help you choose the best solution according to your IT needs.
Web Hosting Starter
The free web hosting
The Starter Web hosting is offered for free with each domain name registered with Infomaniak. It provides 10 MB of disk space to create a site (basic pages in HTML language only - no PHP, no database) even without particular knowledge thanks to the Welcome Page.
- Register or transfer a domain name with Infomaniak
- Learn more about the benefits included with a domain name
Shared Web Hosting
The flagship offer to create your sites
These web hostings are shared offers (the websites will be hosted on servers whose resources are shared with other customers). To ensure the reliability of these shared services, Infomaniak servers use on average only 40% of the CPU power and are equipped with professional-grade, latest-generation SSD drives.
Web hosting offers a minimum of 250 GB of disk space and allows you to manage multiple websites with multiple domain names. This offer includes all the technologies commonly used to create professional sites: PHP, MySQL, FTP and SSH access, SSL certificates, Site Creator and easy installation of WordPress or common CMS, etc.
Cloud Server
Professional Web hosting
With a Cloud Server, the resources allocated to you are not shared with other clients and you can customize the hardware and software configuration of your server according to your needs. A Cloud Server also allows you to use components that are not available on shared web hosting (Node.js
, mongoDB
, Sol
, FFMPEG
, etc.).
- A Cloud Server allows you to easily manage your server via the same administration interface as Web hosting - you manage the sites in the same way.
- A VPS allows you to manage your server completely autonomously with the version of Windows or the Linux distribution of your choice (
Debian
,Ubuntu
,openSUSE
, ...) - solid technical skills are required to use a VPS, including VPS Lite.
Public Cloud (and Kubernetes Service)
Open, proven, and secure IaaS solution
For Infomaniak, it is the infrastructure that drives kDrive, Swiss Backup and the Webmail, services used by several million users. But Public Cloud is accessible to everyone and provides the resources you need to develop your projects.
With customized and tailored offers, you will have no trouble managing your development budget. No setup fees. No minimum amount. Cancelable at any time. You only pay for the resources actually used with Public Cloud at the end of each month, same for Kubernetes Service.
Jelastic Cloud
Web hosting tailored to your chosen technologies
Jelastic Cloud allows you to create custom development environments with the technologies of your choice (PHP
, Node.js
, Java
, Docker
, Ruby
, etc.). It is a flexible cloud offering:
- Horizontal and vertical scaling of resources.
- Payment based on actual resource consumption.
- Easy customization of your infrastructure (redundancy, IP, SSL, load balancing, etc.).
This guide explains how to run the open source dependency manager Composer 2 using an SSH command.
Preamble
- Composer is an open-source dependency manager for PHP that allows you to define, install, and update the libraries required for a PHP project.
- Composer 1 has been obsolete since 2021 and will no longer allow the installation of new packages or updates since 2025.
- Only version 2 of Composer is now supported and available on all PHP versions from 7.2 to 8.3.
Run Composer 2
Composer 2 is already pre-installed and accessible via SSH. Therefore, there is no need to install it manually.
Simple usage
Log in to your hosting via SSH, then use the following command:
composer
This command will automatically run version 2 of Composer, which is compatible with the PHP version currently in use in your session.
Check the active version
You can check the available version of Composer with:
composer --version
Example output: Composer version 2.5.0 2022-12-20 10:44:08
Force a specific PHP version
If you want to run Composer with a specific version of PHP, aliases are available. For example:
composer_php8.1 --version
or for example:
composer_php7.4
These aliases allow you to run Composer 2 with the specified PHP interpreter, useful for testing or deploying a project on a target version of PHP.
This guide explains how to update an SSL Let's Encrypt certificate for a website hosted by Infomaniak.
Preamble
- It may be necessary as a result of the addition or deletion of aliases to a website regenerating a certificate to include new domain names related to the website.
- The dashboard will clearly indicate that one of the domains related to the site is not included in the SSL certificate in place:
Update a Let's Encrypt Certificate
To access certificate management:
- Click here in order to access the management of your product on the Manager Infomaniak (Need help?).
- Click directly on the nameallocated to the product concerned:
- Click on the action menu ⋮.
- Click on Change Certificate:
- Choose the type of certificate to update.
- Click on the button Next:
- Check or select the relevant domains.
- Click on the button Install:
This guide lists the supported operating systems (Linux distributions) that can be installed when ordering a VPS Cloud / VPS Lite.
Prerequisites
- Set a password for your user after connecting to the private key the first time, in particular to help troubleshoot your server by connecting via the VNC console in case of a problem.
Linux distributions supported natively
Debian
If you come from the Debian community, then a server of this type would be an excellent choice, an alternative to CentOS offered below. The Debian Editions are very stable especially since "Buster" or more recently "Bookworm" (Debian 12). Read more
Ubuntu
If you are familiar with Ubuntu as a desktop version, you may want to have it on your server. Read more
FreeBSD
FreeBSD's basic code has been continuously developed, improved and optimized for more than 30 years. It is developed and maintained by an important team of people. FreeBSD offers advanced network features, advanced security and high performance. Read more
openSUSE
This distribution is ideal for beginners, experienced users and ultra geeks, in short, it is suitable for everyone!Read more
CentOS
CentOS is the most popular distribution for a web server and therefore has great support, either on the community forum, or anywhere on the Web. CentOS editions are very stable, in the long term. Read more
Other Linux distributions
Infomaniak regularly adds new Linux distributions:
- Fedora
- Rancheros
- ArchLinux
- AlmaLinux
- RockyLinux
Specific distribution / disc image
Only official images can be installed and Infomaniak does not install any operating system from an ISO disk image. If you want to install a specific distribution, you can do so by importing the image on Public Cloud.
This guide explains how to change the PHP version directly from the command line when you run PHP scripts using PHP CLI (Command Line Interface) on an Web Hosting Infomaniak.
Preamble
- This can be useful when you need to temporarily modify certain parameters for a specific script or for a PHP session.
- If you use only the mention
php
below, it is the release preceding the one already in place that will be installed (last version -1): if the last installed version is 8.1, it is 8.0 that will be used with "php
". It is preferable to use the mentionphp-7.0
,php-7.1
, etc. so that the version does not change over time with updates. - Refer to this other guide if you are looking for information about configuring the PHP version set on the Infomaniak Manager.
Change the PHP version used in CLI
It is possible to easily modify the PHP version used in the command line (CLI) via SSH:
- Log in to the server via SSH (need help?).
Create a
.profile
file if it does not exist:touch ~/.profile
Edit the
.profile
file:nano ~/.profile
Add this code inside the file to select the desired PHP version:
export PATH=/opt/php7.4/bin:$PATH
Load the
.profile
file:source ~/.profile
Check the PHP version:
php -v
Interactive mode
The .profile
file mentioned above is only loaded when the user interface is used. In SSH (login mode), it is the .bash_profile
file that is sourced. And in interactive mode (non-login), it is the .bashrc
file that is sourced.
Some server deployment scripts open sessions in interactive (non-login) mode and the environment variables are not loaded into the PATH even if the SSH session is correctly configured.
In this case, you need to load the php version in the .bashrc
file (export PATH="/opt/php7.4/bin:$PATH"
), and source the .bashrc
file in the .bash_profile
and .profile
files (. ~/.bashrc
).
After following these steps, the version of PHP you specified should be loaded into your shell environment every time you open a new session. This will allow you to run scripts using this version of PHP from the command line (CLI).
This guide explains how to install applications, PHP extensions and technologies (non-exhaustive list below) in just a few clicks on Cloud Server only.
Be aware of this other guide if you are looking for information about additional Web Applications that can be installed on any type of hosting including standard/mutualized offer.
Install (or uninstall) PHP Apps/Extensions...
To find the list of technologies and proceed with their installation:
- Click here to access the management of your Cloud Server on the Infomaniak Manager (Need help?).
- Click directly on the nameassigned to the relevant Cloud Server.
- Click on PHP Extensions or on ‘ Fast Installer in the left side menu:
- Click on the action menu ⋮ to the right of the extension you want to uninstall in the array that appears.
- Click on Uninstall.
- Otherwise click the blue button Install an extension to make your choice of new installation:
Non-exhaustive list of apps & extensions available
AdvanceCOMP
BuildEssential
electron_dev
ExifTool
FFmpeg
↗guideGhostscript
Gifsicle
GraphicsMagick
HAProxy
Imagemagick
↗guideJpegoptim
libjpeg_turbo
libqrencode
libX11_xcb1
MidnightCommander
Memcached
↗guidemongoDB
NVM Node Version Manager
OptiPNG
p7zip
PDFtk
PHP_APCu
PHP_CLI
↗guidePHP_FPM
PHP_GnuPG
PHP_gRPC
PHP_igbinary
PHP_IonCube
↗guidePHP_OPcache
PHP_PDF
PHP_PDO_ODBC
↗guidePHP_Swoole
pip
Pngcrush
Pngquant
Redis
↗guideRRDTool The Round Robin Database Tool
RubyCompass
systemd
↗guidetesseract_ocr
varnish
↗guidevirtualenv
WebP
xauth
xpdf
xvfb
ZSH