Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

This guide explains how to change the URL of a site where the Prestashop application is installed (manual installation on your side) but more generally, it also allows you to import a Prestashop site to Infomaniak if it was previously registered elsewhere with another URL.

 

Preamble

  • If you are using Prestashop installed via the Infomaniak Manager Apps, then you can change the address very easily.
  • Intended for version 1.7 of Prestashop, this guide requires technical knowledge, therefore if you encounter a problem, contact the editor directly or a Partner and consult the support policy as well as article 11.9 of the Infomaniak TOS.

 

Change the URL of an installed Prestashop

To do this:

  1. Put your Prestashop in maintenance (go to Store Settings then Maintenance).
  2. Go to Store Settings > Traffic and SEO.
  3. A little further down, modify the Store URL part:
    1. under Store Domain enter the new domain
    2. under SSL Domain enter the new domain
    3. the base path can be modified at your convenience but with caution
  4. Click on Save.
  5. Download to your computer all the data Web+MySQL of your old Prestashop.
  6. Re-import the downloaded MySQL data to a new database.
  7. Update the parameters.php file (located in app/config/) by indicating the information of the new database on the following lines:
    1. database_host
    2. database_name
    3. database_user
    4. database_password
  8. Re-import the Web data to the directory of your new site (new URL).
  9. Remove all the content of the cache folder except the index.php file.
  10. Remove the site from maintenance and test the entire site (links, images, cart, etc.).

Also refer to this other guide.


Has this FAQ been helpful?

This guide explains how to configure an action on n8n to send a message to kChat when the conditions are met.

 

Prerequisites

 

Create the action on n8n

In your n8n session:

  1. Click to start from scratch:
  2. Click to add a first action.
  3. Choose a manual trigger:
  4. Click to add an action to trigger.
  5. Search for and activate an action of type “HTTP Request”:
  6. Choose the POST method.
  7. Enter the URL of your kChat webhook.
  8. Authentication is not required (already applied in the URL).
  9. Activate the “Send body” toggle switch to specify content:
  10. In the “Name” field, enter the exact term “text” as expected by kChat.
  11. In the “Value” field, enter the information you want to display on kChat.
  12. Click the button to test and apply your manual command:
  13. The message specified on n8n then appears on kChat:

Now that this base works, you might imagine replacing the fixed text with data from elsewhere. For example, add an “Imap” or “RSS Feed” node before the HTTP Request node. Thus, instead of writing the text by hand, click on the small gear next to Value > Expression to say: “Send to kChat the title of the last received email”…


Has this FAQ been helpful?

This guide provides instructions for connecting to kDrive using the WebDAV connection protocol.

 

✘ UNAVAILABLE with
kSuite Free / kSuite Standard
my kSuite / my kSuite+ (ik.me, etik.com, ikmail.com) 


  

Preamble

  • Connecting via WebDAV allows you to:
    • use the WebDAV application of your choice instead of the official kDrive application (only solution if the latter is unavailable on your OS, for example macOS 10.14.6),
    • use kDrive as a synchronization base for a tool that would allow this via WebDAV (Joplin for example),
    • access kDrive from the file manager of your operating system.

 

Obtain the kDrive ID (kDriveID / kDrive client ID)

To find out your identifier:

  1. Click here to access the Infomaniak kDrive Web app (online service ksuite.infomaniak.com/kdrive).
  2. The kDrive directory is displayed in the left sidebar.
  3. The URL https://ksuite.infomaniak.com/kdrive/app/drive/123456/ displayed at the top of your browser contains a number:
  4. In some cases, especially when the Infomaniak Organization number is mentioned in the URL, there may be several series of numbers, but the principle remains the same, you need to take the number displayed after the term “/drive/:

This number (in the example 123456) is your kDrive identifier (kDriveID) required for the WebDAV connection. 

You will therefore need to write https://123456.connect.kdrive.infomaniak.com whenever it is necessary as the WebDAV address.

 

Direct WebDAV connection URL to a specific folder

To facilitate direct connection via WebDAV to a specific folder, you can use the following URL:

https://IDkDrive.connect.kdrive.infomaniak.com/Common documents/Folder Name

This simple method allows you to quickly access the desired folder without manually navigating the directory. Simply replace "Folder Name" with the exact name of the folder targeted to establish a direct and secure connection via WebDAV. Also refer to the last part of this other guide for other address examples.

 

Specific guides

To configure kDrive on your computer via WebDAV, refer to these specific guides:

You can also synchronize different devices with kDrive:


Has this FAQ been helpful?

This guide explains how to add or modify one or more TXT record entries in the DNS zone (of a domain name) managed on the Manager Infomaniak.

 

Preamble

  • The TXT record type allows you to insert readable text into the DNS zone of a domain name.
  • This is the method generally used to help prevent spam and to verify domain ownership (Google may ask you to do this before using some of their services: refer to this other guide for an example of adding a TXT record to authenticate a domain).

 

Modify the DNS zone

To manage this type of record in a DNS zone:

  1. Click here to access your domain management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the domain in question.
  3. Click on DNS zone in the left-hand menu.
  4. Click the button to add a record:
  5. Click on the radio button TXT to add a record.
  6. Click on the Next button:
  7. Enter the TXT values required for your DNS zone.
  8. Leave the default value for the TTL.
  9. Click on the Save button:

Has this FAQ been helpful?

This guide explains how to securely transfer files between your machine and the web hosting server using the SCP (secure copy command) protocol.

 

Preamble

  • To work, the SCP command requires:
    1. a source: a file/folder to transfer
    2. a destination: FTP server address to perform the transfer
  • The data is automatically encrypted by SCP at the time of transfer.

 

Copy a local file to the server

Prerequisites

  • To get the FTP server address:
    1. Click here to access the management of your hosting on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the hosting concerned.
    3. Click on FTP / SSH in the left sidebar:
    4. The host server address is displayed at the top left and can be copied:
  • To get the destination folder path:
    1. Click here to access the management of your hosting on the Infomaniak Manager (need help?).
    2. Click directly on the name assigned to the hosting concerned.
    3. Click on More information (in the Information section).
    4. Copy the absolute path:
    5. Complete the absolute path with the desired destination folder.

 

Then, to copy a file from your machine, the command is as follows:

scp localmachine/path_to_the_file username@ftp_server_adress:/path_to_remote_directory

 

To copy an entire directory from your machine, you need to adapt the command as follows:

scp -r localmachine/path_to_the_file username@ftp_server_adress:/path_to_remote_directory

The entire folder will be transferred to your server.

 

To copy the contents of an entire directory from your machine, you need to adapt the command as follows:

scp -r localmachine/path_to_the_file/* username@ftp_server_adress:/path_to_remote_directory

Has this FAQ been helpful?

This guide details the creation of a GIT repository both on your Web Hosting and on your Managed Cloud Server.

 

Preamble

  • GIT and GitHub are available by default on the two aforementioned supports.
  • 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 — also discover the role of the host.

 

Creating the GIT repository

Setup on the server:

  • the GIT repository is in /git_depot
  • the site is in the folder /web/[project] (in your FTP server)

Commands to enter:

cd
mkdir git_depot
cd git_depot/
git init --bare [projet].git
cd [projet].git
git update-server-info

 

Sending the local repository to the server

To do on the local machine:

git init
git remote add origin ssh://user@[xxxxx].ftp.infomaniak.com:/home/clients/[123456789]/git_depot/[projet].git
git status
git add .
git commit -a -m "init"
git push --set-upstream origin master
git push

 

Cloning the site to the server directory

To do on the server:

cd
cd web
rm -r [projet]/
git clone /home/clients/[123465789]/git_depot/[projet].git [projet]/

Has this FAQ been helpful?

The hosting platform for your sites *.perso.ch, *.users.ch, *.geneva-link.ch is evolving and this guide presents the procedure to follow to connect to your FTP space.

 

Modification of login credentials

The current hosting platform relies on the use of a prefix at the level of your FTP username. This is in the following form: persoch_

Thus, if your username was infomaniak, you will now need to use the following user to connect via FTP: persoch_infomaniak.


Has this FAQ been helpful?

This guide details the open ports available for Node.js sites (only) hosted by Infomaniak.

 

Outbound open ports

Web

  • HTTP (tcp/80)
  • Alternative HTTP (tcp/8080)
  • HTTPS (tcp/443)
  • FTP Data (tcp/20)
  • FTP Control (tcp/21)

Mail

  • POP3 (tcp/110)
  • IMAP (tcp/143)
  • SMTP submission (+ STARTTLS) (tcp/587)
  • SMTPS (tcp/465)
  • IMAPS (tcp/993)
  • POP3S (tcp/995)

DB

  • MySQL (tcp/3306)
  • MongoDB (tcp/27017)
  • PostgreSQL (tcp/5432)
  • Redis (tcp/6379)
  • Redis TLS (tcp/6380)
  • ElasticSearch (tcp/9200)

Misc

  • SSH (tcp/22)
  • Git pack transfer (tcp/9418)

 

Inbound open ports

  • HTTP (tcp/80)
  • HTTPS (tcp/443)
  • SSH (tcp/22)

Has this FAQ been helpful?

This guide explains how to resolve an SSL certificate (Let's Encrypt or Sectigo) installation issue if you are using Cloudflare with strict security rules, such as country or IP address filtering.

 

Adjust SSL / geoblocking settings

When an SSL certificate is requested via Infomaniak (free Let's Encrypt or Sectigo), the certification authority must verify that you are the owner of the domain. This verification can be done via HTTP (using special files placed on your site), DNS, or email:

  • Let's Encrypt uses /.well-known/acme-challenge/.
  • Sectigo usually uses /.well-known/pki-validation/ (or DNS / email depending on the option chosen).

If these verifications fail (for example, because Cloudflare blocks access), the certificate cannot be issued or renewed. However, Let's Encrypt no longer checks from a single location. For some time (and even more since March 2024), it performs its checks from multiple countries at the same time – including new ones like Sweden or Singapore. Result: if one of these countries is blocked by your Cloudflare settings, the certificate request may fail, even if everything else is correctly configured.

Worse still: even if you try to make an exception only for the challenge address (.well-known/acme-challenge), this does not always work with certain Cloudflare rules. Indeed, country or IP blocking rules are applied before any URL path-based exception.

 

Adjust SSL/TLS mode

In Cloudflare, use the Full or Full (strict) mode. These modes temporarily tolerate an expired or self-signed certificate, until the validation is complete:

 

Allow validation paths

Avoid blocking "IP Access Rules" and prefer "Custom Rules" that allow unrestricted paths:

  • /.well-known/acme-challenge/ (Let's Encrypt)
  • /.well-known/pki-validation/ (Sectigo)

 

Temporarily disable geoblocking

If necessary, temporarily disable geographic or IP blocking for the duration of the validation, then reactivate your protections after the certificate is issued or renewed.


Has this FAQ been helpful?

Infomaniak offers various Site Creator plans, free or paid, that cater to different needs. It is essential to understand the conditions associated with each type of offer before making your choice.

 

Understanding the different Site Creator plans

Site Creator is available…

  • either free with each paid Web hosting:
    • In this case, 1 single Site Creator can be set up per Infomaniak Web hosting.
    • To manage multiple sites created with Site Creator within the same Organization, it is therefore necessary to have multiple Web hostings.
  • or standalone (standalone available in 3 versions) and does not require any other particular offer in this case:
    1. Site Creator Free
    2. Site Creator Lite
    3. Site Creator Pro

 

1. Site Creator Free

This offer is positioned as a test and discovery solution and is completely free. It is aimed at users who want to familiarize themselves with the tool or publish a very simple web page:

  • It allows only one web page and offers limited disk space (5 Go).
  • This offer does not allow connection to a custom domain name (it will be in the form *.infomaniak.site) and includes the mandatory display of Infomaniak's advertising notice.
  • Important growth modules, such as full blog management, using Artificial Intelligence for text generation, or the Site Map feature, are not included.

2. Site Creator Lite

The Lite plan is Infomaniak's entry-level paid offer. It is ideal for creating a showcase website or a simple personal blog, as it eliminates the main constraints of the free version and unlocks the modules necessary for a complete site:

  • It allows the creation of a more substantial site with a limit set to 5 web pages and more comfortable disk space (15 Go).
  • It includes the offer of a domain name for one year and, importantly, the removal of any Infomaniak advertising notice on the site.
  • Unlike the Free offer, the Lite plan unlocks access to important features for navigation and organization, including the Blog Creation and Management module as well as the Site Map module.

3. Site Creator Pro

The Pro offer is the premium version of Site Creator. It is exclusively dedicated to the most ambitious projects, such as launching a complete online store, thanks to the lifting of all content restrictions and the integration of advanced commerce and analysis tools:

  • It removes all content limitations by offering unlimited web pages and a large disk space of 50 Go.
  • It is the only offer that includes full E-commerce management (orders, stock, discounts) and allows the integration of essential payment gateways (Stripe, PayPal, Mollie) for online commercial activity.
  • The Pro plan is the only one that provides access to crucial external analysis and performance tracking tools, such as Google Analytics, Hotjar, and tools like Google reCaptcha.

 

Commitment to paid offers

Unlike other Infomaniak products, some Site Creator offers include a free domain name. These offers require a firm commitment for a minimum duration of 12 months, with no possibility of refund, even partial, and this even if:

  • you decide to stop using Site Creator before the end of the first year,
  • you cancel your products,
  • you close your user account or your Organization.

 

Evolution of offers and preservation of your site

It is possible to switch from a free offer to a more comprehensive paid offer:

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click on the action menu to the right of the site concerned in the table that appears.
  3. Click on Modify the offer:

It is also possible to switch to a higher offer (for example, from Lite to Pro).

However, it is not possible to downgrade to a lower offer or to return to a free offer once a paid offer has been activated.

If you wish to keep your site active, you must necessarily renew the same paid offer. It is not possible to switch to a free version of Site Creator, even if:

  • you do not use any of the paid modules,
  • your site has only one page.

 

What to do if you want to return to the free offer?

In this case, you must:

  • cancel your current site after manually copying all the information you wish to keep,
  • activate a new free Site Creator offer,
  • recreate your site by pasting the contents retrieved from the old one.

Has this FAQ been helpful?

This guide details the installation and maintenance of Ghost on an Infomaniak Web Hosting, to obtain a platform optimized for blogging and editorial publishing, a powerful alternative to Substack or Medium.

 

Prerequisites

 

Installation of Ghost

To do this:

  1. Connect to your server via SSH (need help?).
  2. Run the following commands to start the installer:

    # Clone tools repo
    git clone https://github.com/Infomaniak/hosting-tools.git
    cd hosting-tools/h3-ghost
    # Run installation script
    bash ./install.sh
  3. The script will now:
    • ask you a few questions (site URL, database information, SMTP, etc.)…
    • download and configure Ghost automatically…
    • take a few minutes — be patient!

Answer the questions carefully using the details you have noted. Do not close the terminal until it has finished!

 

Configuration of the Manager (Node.js)

Once the script is complete, go to your Infomaniak Control Panel:

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned:
  3. Click on Manage under Advanced Settings:
  4. Click on the Node.js tab to access the settings.
  5. In the execution command field, enter:

    /srv/customer/node_modules/ghost-cli/bin/ghost run
  6. Check that the port number is 3000.
  7. Command case build : disable it.
  8. Click on the Save button at the bottom of the page:
  9. On the main page, click on the Start button (or Restart if already running).
  10. Confirm the operation if necessary:
  11. Observe the logs showing the creation of the database and the startup of the application.

 

Updating Ghost

Before updating: do you want to back up your data? Refer to this other guide

To update Ghost CMS to the latest version or a specific version, follow these steps:

  1. Stop the Node.js application in the Infomaniak Manager.
  2. Access the directory of your Ghost site

    # Navigate to your Ghost site directory
    cd ~/sites/ghost-site-name

    Replace ghost-site-name with the actual name of your folder (e.g., blog, mysite, etc.).

  3. Ensure that the file permissions are correct (the operation may take several minutes):

    # Ensure file permissions are correct
    find ./ -type d -exec chmod -v 00775 {} \;
  4. Check for available updates:

    # Check available ghost updates
    /srv/customer/node_modules/ghost-cli/bin/ghost check-update

    For the latest version (the operation may take several minutes):

    # Update to the latest version
    /srv/customer/node_modules/ghost-cli/bin/ghost update

    For a specific version like v5 (the operation may take several minutes):

    # Update to a specific version (e.g., v5)
    /srv/customer/node_modules/ghost-cli/bin/ghost update v5
    • Why go through v5? If you are using Ghost v4 and want to upgrade to v6, Ghost requires going through v5 as an intermediate step. This is essential for major version upgrades.
  5. Wait until the update is complete, then restart the application from the site dashboard to apply the update.

 

Done! Access your Ghost blog

Go to the URL of your site to get started:

  1. Open your browser and go to https://domain.xyz/ghost (replace domain.xyz with your current domain).
  2. The first time:
    1. You will create an administrator account (your login for the blog)...
    2. Then, you can start writing articles!

 

User / mail configuration

To create the first user, add /ghost to the URL of your site (for example https://ghost.domain.xyz/ghost) and follow the assistant.

You can also configure the “portal members support address”: when new members want to register, the portal sends the double opt-in confirmation from a specific address.

By default, it is the “noreply” address of your domain. To update it, navigate to “Settings”, “Membership”, “Portal Settings”, “Customize”, and “Account Page”:

 

Resolve a technical incompatibility between Ghost and MariaDB

Some SQL queries cause HTTP 400 errors on MariaDB, resulting in this type of error:

[2025-01-01 12:54:28] ERROR "GET /ghost/api/admin/posts/6834625e35802b06f1496305/?formats=mobiledoc%2Clexical&include=tags%2Cauthors%2Cauthors.roles%2Cemail%2Ctiers%2Cnewsletter%2Ccount.conversions%2Ccount.clicks%2Csentiment%2Ccount.positive_feedback%2Ccount.negative_feedback" 400 27ms
Could not understand request.
Error ID:
8f2b0d90-3a30-11f0-a25f-fd9c83e1cf02
Error Code:
ER_BAD_FIELD_ERROR
----------------------------------------
Error: select `posts`.*,
...

If necessary, a patch exists to adapt Ghost's behavior.

To use this patch, enter this command:

# Enter the current version folder and apply the MariaDB patch
cd current
curl -L https://gist.githubusercontent.com/reneluria/8cbbfbc001e542c77d6d5887fbafe5d3/raw/65e0ce31753b4687d0eb67fc030734a35d3ffbad/ghost-post.patch | patch -p0

Has this FAQ been helpful?

This guide helps to solve a problem with the PrestaShop CMS and more specifically with its “Faceted Search” module, which allows the management of filters on product category pages.

 

The problem

This specific PrestaShop search module creates a cache in the database to speed up the search. However, the corresponding table is never cleaned, which poses a problem for the hosting infrastructure.

 

First solution

The first solution is to disable the proposed caching.

If you have a cache module, such as Ultimate Cache, there will be no negative impact.

To do this:

  1. In the PrestaShop administration panel, go to ModulesModule Manager.
  2. Select Modules and use the search field to find “facet”.
  3. Click on Configure next to the module obtained in the result:
  4. Disable the button for this:

 

Second solution

The second solution is to set up a cron job to clean the table, for example every night:

  1. From the module settings, copy the existing URL on the Clear cache button:

Then, from the Infomaniak Manager, create a webcron (refer to this other guide on this subject) to execute the URL copied in point 1 above, for example once a day and once at night.


Has this FAQ been helpful?

This guide concerns the WordPress module "Infomaniak Connect for OpenID" which allows users to log in to your WordPress site (whether it is hosted by Infomaniak or not) using their Infomaniak credentials.

 

Preamble

  • Allowing login via an Infomaniak account on your WordPress site allows your visitors to comment, register for courses, or access any member-only content with a single click, without having to create a new account.
  • It saves them time and is a safer method for you, as you do not have to manage additional passwords.
  • The operation of this external module is identical to the optionsLog in with Google", "Log in with Facebook" or "Log in with Apple"; it uses the standard protocols OAuth2 and OpenID Connect to enable single sign-on (SSO).

 

A. Create an application with Auth Infomaniak

To do this:

  1. Click here to access the management of your product Auth on the Infomaniak Manager (need help?).
  2. Click the button to Create a new application:
  3. Choose the type "Web Front-End".
  4. Give a name to your application.
  5. In the URL field, specify the domain name corresponding to your WordPress site followed by /openid-connect-authorize (refer to the GitHub documentation if necessary).
  6. Click the button to complete the app creation:
  7. Carefully note the 2 pieces of information obtained upon completion of your OAuth2 application:

 

B. Configure the WordPress extension

To do this:

  1. Search for the extension Infomaniak Connect for OpenID on the WordPress extensions platform from your site.
  2. Install and activate the extension:
  3. Configure the extension from the Settings menu:
  4. The only fields to fill in are Client ID and Client Secret Key and come from the information obtained in point A above:
  5. Do not forget to save the changes made to the extension settings.
  6. An additional button for logging in with an Infomaniak identifier is now visible on your user login page /wp-admin (/wp-login.php):

Has this FAQ been helpful?

This guide concerns the Typo3 module "t3ext-infomaniak-auth" which allows users to log in to your Typo3 site (whether it is hosted by Infomaniak or not) using their Infomaniak credentials.

 

Preamble

  • Allowing login via an Infomaniak account on your Typo3 site enables your visitors to comment, register for courses, or access any member-exclusive content with a single click, without having to create a new account.
  • This saves them time and is a safer method for you, as you do not have to manage additional passwords.
  • The operation of this external module is identical to the options Sign in with Google", "Sign in with Facebook" or "Sign in with Apple"; it uses the standard protocols OAuth2 and OpenID Connect to enable single sign-on (SSO).

 

A. Create an application with Auth Infomaniak

To do this:

  1. Click here to access the management of your product Auth on the Infomaniak Manager (need help?).
  2. Click the button to Create a new application
  3. Choose the type "Web Front-End".
  4. Give a name to your application.
  5. In the URL field, specify the domain name corresponding to your Typo3 site followed by /openid-connect-authorize (refer to the GitHub documentation if necessary).
  6. Click the button to complete the app creation:
  7. Carefully note the 2 pieces of information obtained when finalizing your OAuth2 application:

 

B. Configure the Typo3 extension

In SSH, deploy Composer if necessary to retrieve the t3ext-infomaniak-auth extensions. To do this:

Next, in Typo3:

  1. Log in to your Typo3 administration interface.
    • Check if necessary that the Infomaniak extension is activated:
  2. Click on Settings in the left sidebar menu.
  3. Click on Configure extensions:
  4. Click on the chevron to the right of typo3-openid-main to expand the client tab.
  5. The only fields to fill in are clientID and clientSecret and come from the information obtained in point A above.
  6. Do not forget to save the changes made to the extension settings:
  7. An additional button for logging in with an Infomaniak identifier is now visible on your user login page:

Has this FAQ been helpful?

This guide concerns the Drupal module "Infomaniak_Connect" which allows users to log in to your Drupal site (whether hosted by Infomaniak or not) using their Infomaniak credentials.

 

Preamble

  • Allowing login via an Infomaniak account on your Drupal site enables your visitors to comment, register for courses, or access any member-exclusive content with a single click, without needing to create a new account.
  • This saves them time and is a safer method for you, as you don't have to manage additional passwords.
  • The operation of this external module is identical to the options "Log in with Google", "Log in with Facebook" or "Log in with Apple"; it uses the standard protocols OAuth2 and OpenID Connect to enable single sign-on (SSO).

 

A. Create an application with Auth Infomaniak

To do this:

  1. Click here to access the management of your product Auth on the Infomaniak Manager (need help?).
  2. Click the button to Create a new application
  3. Choose the type "Web Front-End".
  4. Give a name to your application.
  5. In the URL field, specify the domain name corresponding to your Drupal site followed by /openid-connect-authorize (refer to the GitHub documentation if necessary).
  6. Click the button to complete the app creation:
  7. Carefully note the 2 pieces of information obtained when finalizing your OAuth2 application:

 

B. Configure the Drupal extension

In SSH, deploy Composer if necessary to retrieve the openid_connect and infomaniak_connect extensions. To do this:

Then, on Drupal:

  1. Search for the Infomaniak module among your pre-installed modules.
  2. Select it.
  3. Click the Install button:
  4. The installation of dependencies will proceed:
  5. Under Configuration, click to set up the OpenID connection:
  6. Click the edit button:
  7. The only fields to fill in are Client ID and Client Secret and come from the information obtained in point A above:
     
  8. Do not forget to save the changes made to the extension settings.
  9. In the Settings tab, you can choose the display type for your login page; do not forget to save:
  10. An additional button, for logging in with an Infomaniak identifier, is now visible on your login page intended for users:
     

Has this FAQ been helpful?

This guide explains how to adjust the configuration of a Node.js site hosted on Infomaniak's infrastructure. You will learn how to adapt the behavior of your application according to its evolution, its dependencies, or your technical preferences.

 

Prerequisites

  • Install a Node.js site on your hosting.
  • Test your modifications locally before applying them to production.
  • Check that your scripts (start, build) are well defined in your package.json file.
  • If you modify the structure of your project, remember to adjust the execution folder and the associated commands.
  • Important: The listening port defined in the Manager must imperatively match the one used in the application's code.

 

Access the configuration

Each site has a dedicated dashboard to control the application (start, stop, restart), view the execution logs, manage Node.js versions, and activate SSL certificates:

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site in question.
  3. Click on Manage under Advanced settings:
    Manager interface
  4. Click on the Node.js tab to access the settings:
    Node.js settings

 

Commands and automation

Execution folder

The execution folder indicates the location on the server where the build and launch commands will be executed. It must point to the root directory of your application, where your package.json file is located.

./          // Root directory
./app       // Subfolder named app
./backend   // Subfolder named backend

 

Build command

If your application requires a preparation step (installing dependencies, compiling TypeScript, minification), specify the command to execute here. This is the recommended method for deploying your updates.

Unlike a manual execution via SSH, this interface uses an environment with boosted performance to ensure fast building without impacting the resources of your production site. You can chain multiple tasks (such as a git pull followed by a build) and monitor the progress and logs of the process in real-time directly from the Manager.

# Example: install dependencies and build
npm install && npm run build

# Example: update code and build with yarn
git pull && yarn install && yarn build

Note: If your project is already compiled or does not require any intermediate steps, this field can be left empty.

 

Start command

This instruction starts your server. It must be identical to the one used in your local development environment to launch the application's entry point.

# Option 1: Direct file launch
node index.js

# Option 2: Using npm script
npm start

# Option 3: Using yarn script
yarn start

 

Listening port

Your application must listen on the dynamic port assigned by the Manager. This port is passed to your code via the PORT environment variable.

// Use the port provided by the environment
const port = process.env.PORT || 8080;

app.listen(port, () => {
  console.log(`Application started on port ${port}`);
});

 

Node.js version

You can select the desired Node.js version in the settings. It is recommended to prioritize a stable version (LTS) to ensure the security and longevity of your project.

 

Apply and validate changes

Once your modifications are saved in the Manager, you must restart your application from the dashboard for the new parameters (new Node version, new port, or new build command) to be taken into account.

If you encounter startup issues, you can check the execution console or refer to this other guide for troubleshooting.


Has this FAQ been helpful?

Infomaniak's Node.js sites allow you to run Node.js applications in a flexible, ready-to-use environment without having to manage server infrastructure.

 

Preamble

  • Offering the flexibility of a server without the complexity of its administration, this type of hosting is particularly suitable for REST API projects, for deploying the CMS Ghost, n8n, Strapi or frameworks like Express.js, NestJS or socket.io, next.js, business tools or prototypes for:
    • developers who want to deploy Node.js applications without managing infrastructure.
    • webmasters looking to experiment or learn Node.js.
    • agencies and freelancers working on multiple client projects.
    • students, teachers, and schools needing a simple environment to test code.
  • The NPM and Yarn package managers are supported.
  • If you install Node.js on a Web Hosting within a Cloud Server, your site will not work with the guaranteed resources of the managed Cloud Server.
  • Node.js = official name of the language/environment; NodeJS = "technical" or simplified name in certain contexts (often for practical reasons, no real technical difference).

 

Create a Node.js site

To access a Web Hosting plan and add a Node.js site:

  1. Click here to access the management of your hostings in the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the hosting concerned:
  3. Click the blue Add button:
  4. Choose a project with advanced technologies.
  5. Click on Next:
  6. Choose Node.js.
  7. Select another version if necessary.
  8. Click on Next:
  9. Choose the type of domain to assign to this new site:
    1. an already acquired domain name
    2. a subdomain created from an already acquired domain name
    3. a domain name still available and to order
  10. Enter the domain name or subdomain.
  11. Choose any advanced options.
  12. Click on Next:
  13. Choose one of the two possible approaches:
    1. Quick method:
      1. A preconfigured example project is automatically installed.
      2. This approach is ideal for discovering Node.js or quickly starting a functional base.
    2. Custom method:
      1. The source code can be imported via Git, ZIP archive, SSH, or SFTP.
      2. You define the scripts, entry points, listening port, and necessary build commands yourself.
  14. It's done, the site is ready:

 

Each site has a dedicated dashboard to control the application (start, stop, restart), view the execution console, manage Node.js versions, configure domains, and activate SSL certificates:

To go further in the configuration of your Node.js site, refer to this other guide.


Has this FAQ been helpful?

This guide explains how to import external data (files, folders, etc.) to your kDrive using the WebDAV protocol provided by your Cloud host.

 

Preamble

  • Refer to this other guide if you are looking for information on copying specific data from one kDrive to another when your user has access to both kDrives concerned.
  • Refer to this other guide if you are looking for information about subsequent use of your kDrive via the WebDAV protocol.

 

Import external data via WebDAV

Prerequisites

  • Have a kDrive or kSuite offer (WebDAV not required)
  • Have sufficient permissions within kDrive or kSuite.
  • Do not change your password until the import is complete!

To access the import tool, where the data needs to be imported:

  1. Click here to access the Infomaniak kDrive web app (online service ksuite.infomaniak.com/kdrive).
  2. Click on the Settings icon at the top right.
  3. Check or select the kDrive concerned in the left sidebar dropdown menu.
  4. Click on General in the left sidebar menu.
  5. Click on Import external data:
  6. Click the blue Start button:
  7. Click on WebDAV.
  8. Complete the requested information based on the source (including the WebDAV address you have - obtained from the source).
  9. Choose the destination kDrive and the desired location to accommodate the imported data.
  10. Click on Start:

 

Example: copying data from an external kDrive to the Organization

To import a kDrive that would be outside the Organization in which your destination kDrive is located, you need to enter the following information at point 9 above (your credentials will be used exclusively to import your data; they will be immediately deleted at the end of the process):

  • Username: email address to log in to the Infomaniak account
  • Password: create an application password for this specific use.
  • Entry point: the WebDAV login URL with the source kDrive ID (starting disk) — refer to this other guide regarding the kDrive ID
    • Example: https://123456.connect.kdrive.infomaniak.com if the ID is “123456” to obtain the entire kDrive; but it is also possible to import only part of it (see below).

 

Specify the name of a specific subfolder

It is possible to choose a subfolder as a source folder, by combining the kDrive ID and the folder path.

Example address for a specific folder in the shared space of the Organization Folders (= "Common documents") — replace Folder Name with the name of the folder concerned in the path:

  • https://IDkDrive.connect.kdrive.infomaniak.com/Common documents/Folder Name

Example for a folder/subfolder that would be in the personal folders (therefore outside the Organization Folders) — replace Folder Name and Sub-folder Name with the names of the folders concerned in the path:

  • https://IDkDrive.connect.kdrive.infomaniak.com/Folder name/Sub-folder Name

Has this FAQ been helpful?

This guide details the specific rules to follow when creating a user password with mysqli_connect() that contains the “dollar” character $ on Infomaniak platforms.

 

Preamble

  • If, when using mysqli_connect(), you get the error message "Access denied for user" and your database user password contains a $ sign, the issue may be due to the functioning of strings in PHP.
  • The problem may also occur with messaging scripts.

 

Rules to follow

When the special character $ is used in a user password and is followed by any character other than a number, the variable name is not valid and the substitution does not occur correctly.

Here are solutions to fix this:

  • Place the password in single quotes: '$******'
  • Ensure a number directly follows the dollar: "$2*****"
  • Use a backslash to "escape" the dollar in the password: "\$****"

Has this FAQ been helpful?

This guide explains the differences between a Domain (or main site), a Subdomain and an Alias.

 

Preamble

  • Although they are related, these three elements (Domain, Subdomain, and Alias) have different functions and purposes.
  • They can impact a Web Hosting via its domain name, or even the email service since it is quite possible to have email addresses on a subdomain, for example.

 

What is a Domain?

The domain or domain name is the main entrance to your website. It is from this that your users will access your content. It is this main domain that defines what will appear in the URL bar of your users' browsers.

Prerequisites

Refer to the guide Create a new site on your Web Hosting.

 

What is a Subdomain?

The Subdomain is symbolized by an additional word that is in front of your main domain name. This is very useful in several cases, for example:

  • this can be used to display "exclusive" or targeted content, for example, by going to faq.infomaniak.com you arrive at the knowledge base where all the guides are located
  • this can also be used (temporarily or permanently) when creating a new site or redesigning an existing site, for example, by creating new.domain.xyz when the main site was previously domain.xyz

Prerequisites

Refer to the guide Add a subdomain to your Web Hosting.

 

What is an Alias?

An Alias or Alias Domain is a second domain name that points directly to your main site; they share the same web pages. The alias is another entrance to your website. For example, the main site of the Swiss Confederation is www.ch.ch and www.suisse.ch is its alias.

Prerequisites

Refer to the guide Add an alias to your Web Hosting.

The equivalent also exists for a Mail Service.

The benefit of an Alias is that it allows you to increase the visibility of your site with your target audience by offering them more entry points to access it.


Has this FAQ been helpful?