Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide explains how to manage the files of a Web Hosting with an FTP software/client.
Preamble
- To easily and quickly manage the files of your web hosting without having to install an application or enter FTP credentials, use Web FTP from your Infomaniak Manager (it allows, among other things, CHOWN and file compression/decompression
zip). - The various services offered by Infomaniak are all compatible with the corresponding standard protocols (FTP/S3/Swift for storage, for example), therefore if you encounter a problem with a third-party software, contact its publisher or a Partner and consult the support policy as well as article 11.9 of the Infomaniak TOS.
- Regarding the protocols supported by Infomaniak (FTP, SFTP, etc.) depending on your hosting offer (Starter, Node.js, etc.), refer to this other guide.
Parameters to provide for FTP software
Prerequisites
- Create an FTP/SSH account.
- Install an FTP software/client such as Filezilla, Cyberduck, Commander One, Transmit, etc.
Regardless of your FTP software/client, the 3 essential parameters for configuring an FTP access are always:
- Hostname: FTP server address
- Username: FTP account name
- Password: that of the FTP account

- The port number is usually left at default.
- The connection type and mode is usually left at default.
- If a limit on the number of simultaneous connections is offered, it is recommended to activate it.
Obtain the connection information to the hosting
You will find all the information on your Infomaniak Manager:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on FTP (or FTP / SSH) in the left sidebar

1. FTP Hostname
The hostname to use in your FTP software/client is specified at the top of the page obtained in point 3 above and an icon allows you to copy the address to the clipboard.
Starter Offer - Basic Web page

If the domain indicated is not functional (does not point to the hosting IP address for example) then use the IP address as the host name, in the form 123.45.678.123 (refer to this other guide).
Paid Web Hosting

Use the host name in the form xyzb.ftp.infomaniak.com for example.
2. FTP Username

The username is the name of the account to be created in your Manager: xyzb_abcdefg for example.
3. FTP User Password

The FTP user password is defined by the creator of the FTP account. If you forget it, edit the FTP account by clicking on it and set a new password.
Once the connection is established…
When you enter the 3 required parameters, your FTP application should display the directory structure of your hosting:
This guide covers the support of secure hash functions (including SHA-256) by Infomaniak servers, as well as the emphasis on the security of SSL/TLS certificates using CSRs generated with SHA-256.
SHA-256 hashing algorithm
The cryptographic hash function SHA-1 is compatible and Infomaniak servers also support the SHA-256 function, which is useful for PayPal and SaferPay (SIX).
The CSRs (certificate signing requests) are in SHA-256 and not in SHA-1.
This guide explains how to connect via SSH to a Web Hosting or a Cloud Server.
Connect via SSH…
… via a web browser
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on FTP / SSH in the left sidebar menu.
- Click on the Web SSH button:

… via the terminal or an application
To connect via SSH, use the following commands from a Terminal type application (command line interface, CLI / Command Line Interface) on your device, for example:
- Terminal (application already integrated with macOS and Linux)
- PuTTY (Windows)
- Windows 10 SSH client (help in French / in English)
Then enter the following command:
ssh username@serverusernamebeing the username of the FTP accountserverbeing the host server (e.g. xxxx.ftp.infomaniak.com)
To know which command is available and know the path to use, run the command "whereis":
$ whereis mysql
mysql: /opt/mysql/bin/mysql
This guide provides solutions to errors of the type “Malicious site! The website has been reported as a malicious site and has been blocked based on your security preferences” ("STOP! This Website Can Harm Your Computer!" in English).‍
Who put this message?
This error or warning message…
- … IS NOT added by Infomaniak.
- … is generated by Google based on https://www.stopbadware.org/.
- … may no longer appear directly because…
- … you are no longer indexed by Google.
- … you are using a browser that does not rely on Google's checks.
What to do?
If this does not concern the site you are managing, refer to Google's help on the subject.
If the site is yours, refer to the advice below:
- Check the source code of the published page: there is surely additional code compared to the still healthy pages; it may be a malicious iframe or any inclusion…
- On the page in question, click on the “Why was this site blocked?” button and follow the instructions…
- Refer to the Google documentation on the subject.
- Monitor the vulnerability detection tool which may resolve the issue in the meantime.
Make your life easier! If needed, local partners referenced by Infomaniak can handle these procedures. Launch a free call for tenders. They handle everything, freeing you from technical details.
This guide explains how to change the PHP version available for your Infomaniak Web Hosting sites.
Preamble
- It is possible to switch from an old and potentially vulnerable PHP version to a recent one, but you will not be able to revert to this vulnerable version afterward for security reasons.
- The change is effective immediately and permanently.
- Refer to this other guide if you are looking for information about configuring the PHP version used in SSH.
Change the PHP version used for a website
It is possible to easily change the PHP version used on an entire website:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click on ‍ More information.
- Click on Modify:

- Choose the desired PHP version:

- Click on Save at the bottom of the page to save the modification.
It may be necessary to update your hosting beforehand to access the very latest PHP versions offered by Infomaniak.
This guide explains how to add a MySQL/MariaDB database, create or modify users, and how to find all the necessary parameters to configure your scripts and CMS on a Web Hosting.
Manage databases
To access the database management page of your hosting:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on Databases (or MariaDB if necessary) in the left sidebar:

Databases
Under the Databases tab, you can:
- Create a MySQL/MariaDB database by clicking the Add a database button.
- Import, export or restore a MySQL database by clicking the chevron ‍ to the right of the Add button.
Users
Under the Users tab, you can:
- Create a MySQL/MariaDB database user by clicking the Add a user button.
Configuration information
This is also where you will find the required information to configure CMS or web applications:
- The name of a database (e.g.
XXXX_dbname) - The username of a database (e.g.
XXXX_username) - The password of the username of a database (the one you chose when creating the MySQL/MariaDB user to redefine if you have forgotten it)
- The MySQL/MariaDB server of the databases / the host name / hostname (e.g.
XXXX.myd.infomaniak.com) with its version (5.7 for example)
User rights, shared servers & Cloud
- With read permissions: “SELECT”
- With write permissions: “INSERT, UPDATE, DELETE, CREATE TEMPORARY TABLES, LOCK TABLES”
- With admin permissions: “CREATE, DROP, INDEX, ALTER, CREATE VIEW, SHOW VIEW, REFERENCES”
- + “CREATE ROUTINE, ALTER ROUTINE, EXECUTE, TRIGGER, EVENT” on Cloud Server only (see this other guide on the subject)
- With no permissions: the user will not see the database appear in phpMyAdmin
Web application databases
- See this other guide on the subject of WordPress.
- See this other guide on the subject of Joomla.
This guide explains how to add an additional website to an existing Infomaniak hosting plan.
Preamble
- The hosting can be on a shared web hosting plan or on an Infomaniak Cloud Server.
- The additional site can be either:
- a second domain name (for example.
domain2.xyz), - or a subdomain (for example.
abc.domain.xyz) of a domain name that you already own.
- a second domain name (for example.
- In this multisite/multidomain management (virtual host), the total disk space and resources of your hosting are shared between your sites/subdomains.
Access site management
Prerequisites
- If the 20 site slots offered in the web hosting are already in use, order additional sites.
To access a web hosting plan and add a site:
- Click here to access the management of your products in the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on the blue button Add:

- Choose the optional content for the new site (A) or other specific installation, blank space, advanced technologies (Node.js for example) (B):

- Click on Next.
- Choose the type of domain to assign to this new site:
- an already acquired domain name
- a subdomain created from an already acquired domain name
- a domain name still available and to be ordered
- Enter the domain name (
domain2.xyz, for example) or the subdomain.
- Choose the optional advanced options, including:
- By default, the new site is added to the directory
/sites/domain2.xyzon your FTP server. - To manually define another directory, check Manually define the location and specify the path and name.
- Create a new folder if necessary:

- By default, the new site is added to the directory
- Click on Continue.
If it's a subdomain or if the domain name or its DNS zone is managed by Infomaniak, it is possible to automatically update the existing DNS entries. Otherwise, make the necessary changes with your registrar or transfer the management of the domain name to Infomaniak.
This guide explains how to add a new domain name to a Web site Infomaniak.
Preamble
- When you add a new domain name to a Web site, it is referred to as a linked domain but also as an alias.
- In this case, an alias domain is an additional domain name, also linked to an existing site.
- For the Web site
domain.xyzto be reachable with a completely different domain name such asprivate.abcfor example, you need to addprivate.abcas an alias to the Web site. - Second example, for the site
domain.xyzto also be reachable withwww.domain.xyz, you need to add it as an alias to the domaindomain.xyz. In this example,domain.xyzis the parent site of the aliaswww.domain.xyz. Generally, the aliaswwwis already added automatically and present…
- For the Web site
Adding an alias to an existing site
Prerequisites
- If the domain name (intended to become an alias) or its DNS zone is managed by Infomaniak, everything is OK. If not:
- The A record of the domain name must point to Infomaniak.
- To simplify, you can delegate the management of the domain to Infomaniak.
- It is also necessary that the future alias is not already one, in which case it will be necessary to detach it from the current site beforehand (same if synonym).
To add an additional domain that will be linked to your Web site:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned:

- Then click on the chevron ‍ to expand the Domains section of this site.
- Click on the Add a domain button:

- Enter the domain name(s) to be added, separated by the Enter.
- If the alias or its DNS zone is managed by Infomaniak, it is possible to automatically update the DNS entries. Otherwise, make any necessary changes with your registrar or transfer the management of the domain name to Infomaniak.
- If you have an SSL certificate like Let's Encrypt, for example, you can request to update it here to include the new names.
- Click on Validate to complete the procedure:

To set the alias as the main domain, refer to this other guide.
This guide explains how to enable or disable maintenance mode on a website hosted with Infomaniak Hosting.
Preamble
- Maintenance mode allows you to display a custom message to your visitors, for example, while resolving a technical issue.
- It is also possible to specify IP addresses that can bypass this page.
- An email is sent to the users of the Organization.
Enable maintenance mode
To enable a page that temporarily replaces your usual homepage:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click the toggle switch to enable the maintenance page.
- Confirm the warning.
- Click the button to enable:

Customize the maintenance page
To set up a page with your desired message:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click on Maintenance Page in the left sidebar.
- Click on Create a page or the Customize button if it already exists:

- Format the text of your choice.
- Configure the display using the elements on the right.
- Click on Save & Activate to publish the page:

Allow IP addresses
It is possible to display the real site even with maintenance mode activated. To do this, it is necessary to enter the IP addresses of the computers that should be able to bypass maintenance mode:
- Activate maintenance mode according to the procedure above.
- Go back to the maintenance page configuration page (see procedure above).
- Under Maintenance on the right, click on Insert my IP address to allow your computer to display the site without maintenance mode:

- It is also possible to manually enter the IPs to authorize.
- Click on Save and Publish.
If the IP addresses of the added computers change, it will be necessary to repeat these steps.
Disable maintenance mode
To disable the message that appears on your site during maintenance:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click either on the Disable button or on the toggle switch to disable the maintenance page:

- Confirm the deactivation of maintenance.
Alternative method for WordPress
It is not recommended to activate the Infomaniak maintenance page above to then work in WordPress.
It is recommended to install a WordPress extension (there are dozens available) dedicated to maintenance within the CMS itself.
Otherwise, you can add the code <?php $upgrading = time(); ?> in a new empty file named .maintenance (the dot before the file name is important) placed on the server at the root of your site, which will deactivate all your pages except the WordPress homepage.
This guide covers incoming and outgoing traffic permissions between different hosts at the database level.
Access...
... to databases external to Infomaniak
From an Infomaniak Web Hosting, it is possible to perform MySQL queries to external servers without restriction.
... from outside to Infomaniak databases
Access to Infomaniak databases from outside the infrastructure is only allowed with a Cloud Server (you need to open port 3306 in TCP / inbound in the firewall).
Regarding access to MySQL databases from another Infomaniak Web Hosting refer to this other guide.
Allow external connections on MongoDB
Regarding MongoDB you need to disable the local_only option from Fast Installer:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned.
- Click on Fast Installer in the left sidebar menu.
- Click on
MongoDB. - Click on the action menu â‹® to the right of the object concerned in the table that appears.
- Click on Configure:

- Disable
local_only. - Save the changes:

The port 27017 for MongoDB must be open in the firewall.
This guide explains how to establish the first SSH connection to your VPS Cloud / VPS Lite.
Run a command with root privileges...
From a Terminal type application (command line interface, CLI / Command Line Interface) on your device, for example the application PuTTY (to download and install on Windows) or Terminal (installed by default on macOS), run sudo -i to load the full root environment, giving you a complete interactive session as root with the personal directory and root environment variables.
... 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 (the rights must be sufficient, 0700 for example)[user]= see below the default usernames[server]= server IPv4 address (indicated on the Manager)
Example: ssh -i c:/path/key ubuntu@192.168.1.1
In case of an error "WARNING: UNPROTECTED PRIVATE KEY FILE!", run the command chmod 400 [key path].
... on Windows
Windows does not allow SSH connection natively: activate the Bash shell (Windows 10 minimum) or download the following two free software: 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.
Now open PuTTY and provide the following elements:
Under Session (in the left sidebar):
[HostName]= server IPv4 address (indicated on the Manager)[Port]= leave the default port, i.e. 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 ask 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 |
The user is always the default user of the distribution.
This guide explains how…
- … generate a
CSRand private key to request a third-party certificate from a Certification Authority (CA), - … import this certificate for your Infomaniak site, using the
CRTobtained from theCA.
Preamble
- Although Infomaniak offers all the SSL certificates you might need…
- free Let's Encrypt certs for personal sites (only possible with sites hosted at Infomaniak),
- DV certs from Sectigo for professional/private sites that are not registered in the trade register,
- EV certs from Sectigo for companies registered in the trade register,
- It is also possible to install an SSL certificate obtained elsewhere (intermediate certificate from a certification authority of your choice), custom or self-signed certificates.
1. Generate a CSR (Certificate Signing Request)
A CSR (Certificate Signing Request or Certificate Signing Request) is an encoded file containing the information necessary to request an SSL/TLS certificate.
It must be generated on your side to ensure that the private key remains under your control, using for example OpenSSL.
Adapt and run the following command from a terminal application (command line interface, CLI) on your device:
openssl req -utf8 -nodes -sha256 -newkey rsa:2048 -keyout domain.xyz.key -out domain.xyz.csr -addext "subjectAltName = DNS:domain.xyz, DNS:www.domain.xyz"
Explanations
newkey rsa:2048: Generates a new 2048-bit RSA key.keyout domain.xyz.key: Specifies the file where the private key will be saved.out domain.xyz.csr: Specifies the file where the CSR will be saved.addext “subjectAltName = ...”: Adds additional domains via theSAN (Subject Alternative Name)extension, necessary to include all desired domains in the certificate (the main domain domain.xyz + any other associated domain or subdomain, such as www.domain.xyz).
After generation, you can check the contents of the CSR with the following command:
openssl req -in domain.xyz.csr -noout -textThis allows you to verify that all domains listed in subjectAltName are correctly included.
Once the CSR is generated, you can send it to the certification authority (CA) to obtain your SSL/TLS certificate.
2. Import the external certificate
Once validated, the CA issues a certificate (domain.xyz.crt) and sometimes an intermediate certificate (ca_bundle.crt). To access SSL certificate management:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on SSL Certificates in the left sidebar.
- Click the blue Install a certificate button:

- Choose the custom certificate.
- Click on the Next button:

- Import your certificate and private key, either by importing the
.crtand.keyfiles or by copy-pasting. - Click on Complete:

Alternative command to generate a self-signed certificate (optional)
If you want a local certificate for testing purposes only or without going through a CA (not recommended for production), you can use this command:
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domain.xyz.key -out domain.xyz.crt -addext “subjectAltName = DNS:domain.xyz, DNS:www.domain.xyz”This generates both a self-signed certificate (domain.xyz.crt) and a private key (domain.xyz.key). However, self-signed certificates are not recognized as valid by public browsers or systems. They are only suitable for internal or development environments.
Import an intermediate certificate
When adding a custom SSL certificate, it is possible to import the intermediate certificate (by importing the .crt file or pasting the data provided by the certification authority):
This guide explains how to resolve issues that may occur with a Web Hosting if the latter has undergone modifications at the IP address level (for example, 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 stores a local 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 re-consulting the DNS servers to obtain the IP address.
By flushing 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 type 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 type application (command line interface, CLI / Command Line Interface) on your device:
- Run the command
lookupd -flushcache(in case of failure:dscacheutil -flushcache).
... on Linux
Run the following command from a Terminal type application (command line interface, CLI / Command Line Interface) on your device:
- Run the command
sudo systemctl restart nscdorsudo /etc/init.d/nscd restartto restart nscd.
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 desktop background, for example) and to lift these restrictions that are in place by default on the VPS Cloud / VPS Lite offer.
Reset 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 lists the supported operating systems (Linux distributions) that can be installed when ordering a VPS Cloud / VPS Lite.
Regarding Windows, refer to this other guide.
Prerequisites
- Create a password for your user after logging in for the first time with the private key, especially to troubleshoot your server by connecting via the VNC console in case of a problem.
Natively supported Linux distributions
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). Learn more
Ubuntu
If you are familiar with Ubuntu desktop version, you might want to have it on your server. Learn more
FreeBSD
The base code of FreeBSD has been developed, improved, and optimized continuously for over thirty years. It is developed and maintained by a large team of people. FreeBSD offers advanced network features, enhanced security, and high performance. Learn more
openSUSE
This distribution is ideal for beginners, experienced users, and ultra-geeks, in short, it is suitable for everyone! Learn more
CentOS
CentOS is the most popular distribution for a web server and therefore has great support, whether on the community forum or anywhere on the web. CentOS editions are very stable in the long term. Learn more
Other Linux distributions
Infomaniak regularly adds new Linux distributions:
- Fedora
- rancherOS
- ArchLinux
- AlmaLinux
- RockyLinux
Specific distribution / disk image
Only official images can be installed and Infomaniak does not install any operating system from an ISO disk image. If you wish to install a specific distribution, you can do so by importing the image to Public Cloud.
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 as of 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, it is not necessary to install it manually.
Simple usage
Log in to your hosting via SSH, then use the following command:
composerThis command will automatically run version 2 of Composer 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 --versionExample 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 --versionor:
composer_php7.4These aliases allow you to run Composer 2 with the specified PHP interpreter, useful for testing or deploying a project on a target PHP version.
This guide explains how to update a Let's Encrypt SSL certificate for a website hosted by Infomaniak.
Preamble
- It may be necessary, following the addition or removal of aliases to a website, to regenerate a certificate to include the new domain names linked to the website.
- The dashboard will clearly indicate that one of the domains linked to the site is not included in the current SSL certificate:

Update a Let's Encrypt certificate
To access certificate management:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question:

- Click on the action menu â‹®.
- Click on Change the certificate:

- Select the type of certificate to update.
- Click on the Next button:

- Check or select the relevant domains.
- Click on the button Install:

This guide explains how to change the PHP version used in the command line (PHP CLI) on an Infomaniak Web Hosting.
Preamble
- This guide is useful if you need to temporarily adjust settings for a specific script or for a PHP session executed in the command line (CLI).
- To modify the general PHP version used by your hosting on the web server (FPM/Apache) via the Infomaniak Manager, refer to this other guide.
Default PHP version in command line
When you run the php command (usually via /usr/bin/php), it is the default PHP version configured on the server that is used. This version may evolve over time according to the platform updates.
To find out the exact version currently active on your hosting, run:
php -vTo ensure the stability of your scripts, it is recommended to use an explicit version (php7.4, php8.0, php8.1, etc.) or to adjust your PATH variable to point to the directory of the desired version (for example /opt/php8.1/bin).
Modify the PHP version used in CLI
There are two main files that can be used to configure the PHP version automatically loaded in your SSH session:
1. Using ~/.bashrc (recommended)
The .bashrc file is read by Bash when opening an interactive shell (non-login), i.e., in the majority of cases when you open a normal SSH session or execute commands via deployment tools.
Create the
~/.bashrcfile if it does not exist, then open it:touch ~/.bashrc nano ~/.bashrcAdd the following line to specify the desired PHP version (example: PHP 8.1):
export PATH="/opt/php8.1/bin:$PATH"Reload your environment:
source ~/.bashrcCheck the currently used version:
php -v which phpYou should see a path of the type
/opt/php8.1/bin/php.
2. Using ~/.profile (alternative)
The .profile file is read only when the shell is launched in login mode (for example during an initial SSH connection). If your environment does not automatically load .bashrc, you can define the PHP version directly there.
Create the
~/.profilefile if it does not exist, then open it:touch ~/.profile nano ~/.profileAdd the following line:
export PATH="/opt/php8.1/bin:$PATH"Reload your environment:
source ~/.profile
3. Load .bashrc from other profiles
To ensure that the configuration is loaded in all types of sessions (login and non-login), it is recommended to include in your ~/.bash_profile and ~/.profile files the following line:
if [ -f ~/.bashrc ]; then . ~/.bashrc; fiThus, your PHP configuration defined in .bashrc will always be applied, regardless of how the SSH session is opened.
Run a specific version occasionally
If you want to run a script with a specific version of PHP without modifying your environment, you can call the corresponding binary directly:
/opt/php8.1/bin/php mon_script.php
/opt/php8.2/bin/php -vAfter these steps, the chosen PHP version will be loaded automatically each time a new session is opened, and your CLI scripts will run with the desired version.
This guide explains how to quickly install applications, PHP extensions, and technologies (non-exhaustive list below) in a few clicks on Managed Cloud Server only.
Refer to this other guide if you are looking for information about additional Web Applications that can be installed on any type of hosting, including standard/shared offers.
Install (or uninstall) apps / PHP extensions…
To find the list of technologies and proceed with their installation:
- Click here to access the management of your Managed Cloud Server on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant Managed Cloud Server:

- Click in the left sidebar:
- PHP Extensions

- Fast Installer

- PHP Extensions
- Click on the action menu â‹® to the right of the extension you want to uninstall in the table that appears.
- Click on Uninstall.
- Otherwise, click on the blue button Install an extension / Install an application:

- Then make your choice for a new installation:

Non-exhaustive list of available apps & extensions
AdvanceCOMPBuildEssentialelectron_devExifToolFFmpeg↗ guideGhostscriptGifsicleGraphicsMagickHAProxyImagemagick↗ guideJpegoptimlibjpeg_turbolibqrencodelibX11_xcb1MidnightCommanderMemcached↗ guidemongoDBNVM Node Version ManagerOptiPNGp7zipPDFtkPHP_APCuPHP_CLI↗ guidePHP_FPM(obsolete extension) ↗ guide for the PHP pure alternativePHP_GnuPGPHP_gRPCPHP_igbinaryPHP_IonCube↗ guidePHP_OPcachePHP_PDFPHP_PDO_ODBC↗ guidePHP_SwoolepipPngcrushPngquantRedis↗ guideRRDTool The Round Robin Database ToolRubyCompasssystemd↗ guidetesseract_ocrvarnish↗ guidevirtualenvWebPxauthxpdfxvfbZSH