Knowledge base

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

This guide details the technical and administrative aspects of hosting multiple websites on the same platform.

sign

Technically

A hosting includes different websites. It is therefore possible to add multiple websites to a hosting (multi-site / multi-domain management). In this case, the resources of the hosting (disk space, databases, script execution time and memory, etc.) are shared among the different websites of the hosting.

The base Cloud Server plan contains a certain number of hostings (for example 5) and a higher number of websites (for example 20). In this example, this means that you can create 20 websites (with 20 different domain names/subdomains) that you can organize freely on your 5 hostings.

 

Administratively

At the Organization level on the Infomaniak Manager, management and access rights cannot be assigned to a specific website on a hosting. A user that you add to the Organization cannot have a right limited to a single site; they will always access the entire hosting.

At the server data level, however, it is possible to create an FTP user restricted to a specific folder (in this case, it will need to be limited to the folder where the site is located).

Limited management of one site among others on the same hosting can also be considered directly within the tool used for the site (WordPress user management for example).


Has this FAQ been helpful?

Supervisor is not offered directly because systemd is recommended, better integrated with Debian, and available in Fast installer.

If you still need to install it, contact Infomaniak support in writing.


Has this FAQ been helpful?

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 distributionDefault user
AlmaLinuxalmalinux
Arch Linuxarch
CentOScloud-user
Debian 7 "Wheezy" and earlier versionsroot
Debian 8 "Jessie" and later versionsdebian
Fedorafedora
FreeBSDfreebsd
Ubuntuubuntu
OpenBSDopenbsd
openSUSE Leap 15opensuse
openSUSE 42root
RancherOSrancher
SUSE Linux Enterprise Serverroot

The user is always the default user of the distribution.


Has this FAQ been helpful?

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:

  1. Click here to access your hosting management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the hosting concerned.
  3. Click on Databases (or MariaDB if necessary) in the left sidebar to access the Databases and Users menu:

 

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 dropdown 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 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 (refer to this other guide on this subject)
  • With no permissions: the user will not see the database in phpMyAdmin

 

Web application databases


Has this FAQ been helpful?

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.
  • 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

To access a web hosting plan and add a site:

  1. Click here to access the management of your products in the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the product concerned.
  3. Click on the blue button Add:
  4. Choose the optional content for the new site (A) or other specific installation, blank space, advanced technologies (Node.js for example) (B):
  5. Click on Next.
  6. 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 be ordered
  7. Enter the domain name (domain2.xyz, for example) or the subdomain.
  8. Choose the optional advanced options, including:
    1. By default, the new site is added to the directory /sites/domain2.xyz on your FTP server.
    2. To manually define another directory, check Manually define the location and specify the path and name.
    3. Create a new folder if necessary:
  9. 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.


Has this FAQ been helpful?

This guide explains how to find out the operating system version of the server for your Web Hosting.

 

Preamble

  • Even if Debian or a package seems outdated, the displayed versions do not present any vulnerabilities:
    • Infomaniak keeps them up to date via regular internal patches on all components and systems used.
    • The versions are chosen for their stability and then strengthened by security measures that standard tests do not detect.
  • If you or your clients identify a vulnerability in an Infomaniak product, please submit a POC. Although rare, these cases are handled quickly.
    • Data security is the responsibility of the user: Infomaniak cannot be held responsible for poor management or use of access credentials.

 

What OS on my site?

To find out the version:

  1. Log in to the server via SSH (need help?).
  2. Run the following command:

    lsb_release -a
  3. You will obtain information of this type:

    Distributor ID: Debian
    Description: Debian GNU/Linux 7.9 (wheezy)
    Release: 7.9
    Codename: wheezy

Has this FAQ been helpful?

This guide explains how to remove an alias domain from an Infomaniak Web Hosting. The main domain name of the site will then no longer be linked to any other domain name.

This allows you to create a new Web Hosting or distinct site for the domain name thus unlinked.

 

Prerequisites

 

Remove the alias domain

To remove an alias domain from your site:

  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 the chevron to expand the Domains section of this site.
  4. Click on the action menu to the right of the domain to be removed.
  5. Choose Unlink:
  6. Confirm the deletion of the alias:

    • If necessary, you can choose to delete the DNS records related to the domain…


Has this FAQ been helpful?

This guide allows you to quickly use the essential functions of your new Cloud Server.

 

Install an application

 

Configure the server

 

Manage sites and domains

If your domain name is not managed by Infomaniak or if your hosting is not managed in the same user account as your domain name, refer to this other guide to configure the DNS or records to link the domain name to your hosting. But also:

 

In case of a problem, consult the knowledge base before contacting Infomaniak support.


Has this FAQ been helpful?

This guide contains essential resources to get started with your VPS Cloud or VPS Lite offered by Infomaniak.

 

Preamble

  • Support for UEFI and Secure boot is not planned in the VPS Cloud / VPS Lite offer.
  • It is not possible to migrate a vmdk file to make it work on OpenStack as KVM is used for virtualization.
  • In case of a problem, refer to the knowledge base.

 

Getting started with a VPS Cloud / VPS Lite Linux

 

Getting started with a VPS Cloud / VPS Lite Windows

 

Which version (Cloud or Lite) to choose for the VPS?

  • The configurations (vCPU / Ram / disk space) differ depending on the VPS offers, starting at 1 vCPU with very competitive prices.
    • Make your choice according to your needs.
    • Upgrading a VPS Lite to a VPS Cloud is not yet possible automatically, and reducing a subscribed offer is not possible.
    • Refer to this other guide if you wish to migrate from VPS Lite to VPS Cloud (the migration is irreversible).
  • The same Linux distributions & Windows versions are offered (Windows is not available on the smallest configurations).
    • Only the official images of the operating systems are installed, without any security software such as fail2ban pre-installed.
    • However, the firewall is configurable from the Manager and a VPS also benefits from anti-DDoS protection.
    • Regarding port opening, refer to this other guide.
  • On VPS Lite, the bandwidth is limited to 500 mbit/s and the guaranteed SLA + snapshots are not available.

Has this FAQ been helpful?

This guide explains how to create a PTR record on the dedicated IPs of VPS Cloud / VPS Lite.

 

Preamble

  • A PTR (Pointer Record) is a type of DNS record used to resolve IP addresses into domain names.
  • The PTR record is used to associate an IP address with a domain name or subdomain.
  • It is the opposite of the A record which is used to resolve domain names into IP addresses.

 

Create a PTR on the VPS Cloud / VPS Lite IP

If you have a VPS Cloud / VPS Lite and you want to create a PTR record for your dedicated IP address, follow these steps:

  1. Make sure your domain or subdomain points to the IP address (v4 or v6) of your VPS Cloud / VPS Lite server.
    • You can do this by creating an A record for your domain or by modifying the existing record to point to the IP address of your VPS Cloud / VPS Lite.
  2. Check that your domain points to the IP address of your VPS Cloud / VPS Lite (see 1).
  3. Contact Infomaniak support to request the creation of a PTR record for your dedicated IP address.
    • Specify the IP address of your VPS Cloud / VPS Lite server (you can find this IP address in your server management dashboard or by using a command line command such as "ifconfig" or "ipconfig" depending on the operating system you are using).
  4. Once the PTR record is created, use an online verification tool to ensure that the PTR record points to your domain or subdomain.

Has this FAQ been helpful?

This guide presents the use of MySQL on Infomaniak hosting, particularly the operation of stored procedures.

 

Preamble

  • “Stored procedures” and “stored routines” are not available on a shared web hosting.

 

Understanding stored procedures and routines

If stored procedures are essential to your project and you are currently using shared hosting, it is advisable to consider a VPS or a dedicated server, which offer more control and resources.

Stored procedures are an effective way to automate tasks and integrate business logic directly into the database. This results in more performant and easier-to-maintain applications.

On a Cloud Server, as soon as the user has administrator rights on the relevant MySQL database, they have the necessary permissions to execute SQL instructions, including the EXECUTE command, used to launch stored procedures already present in the database.

The user also has the required privileges to create new stored procedures. Creating a stored procedure is done via specific SQL syntax defining the instructions to execute, followed by its recording in the database.

Example

DELIMITER //
CREATE PROCEDURE GetUserCount()
BEGIN
    SELECT COUNT(*) AS total_users FROM users;
    -- Returns the total number of users in the table
END //
DELIMITER ;

-- Execute the stored procedure
CALL GetUserCount();

Has this FAQ been helpful?

This guide explains the differences between Infomaniak's web hosting offers to help you choose the best solution according to your IT needs.

 

If you are looking to host your email, refer to this other guide.

 

Starter Web Hosting

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 website (basic pages in HTML language only - no PHP, no database) even without any particular knowledge thanks to the Welcome Page tool.

 

Shared Web Hosting

The flagship offer to create your websites

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 disks.

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 usually used to create professional websites: PHP, MySQL, FTP and SSH access, SSL certificates and easy installation of WordPress or common CMS, etc. It is also possible to add a Node.js site and/or Site Creator.

Note that without any hosting, it is also possible to obtain and then use Site Creator “standalone / standalone”. Refer to this other guide.

 

Cloud Server

Professional Web Hosting

With a Cloud Server, the resources allocated to you are not shared with other customers 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 hostings (Node.js, mongoDB, Sol, FFMPEG, etc.).

  • A Cloud Server allows you to easily manage your server via the same administration interface as web hostings - you manage the sites in the same way.
  • A VPS allows you to manage your server 100% 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 powers 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 personalized 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, the same goes for Kubernetes Service.

 

Jelastic Cloud

Custom web hosting with the technologies of your choice

Jelastic Cloud allows you to create custom development environments with the technologies of your choice (PHP, Java, Docker, Ruby, etc.). It is a flexible cloud offer:

  • Horizontal and vertical scaling of resources.
  • Payment based on actual resource consumption.
  • Easy customization of your infrastructure (redundancy, IP, SSL, load balancing, etc.).

Has this FAQ been helpful?

This guide explains how to modify your current Managed Cloud Server offer.

 

Modifying resources and configuration

The basic Managed Cloud Server plan includes 5 hostings and 20 websites. To add an additional hosting or modify the server configuration to increase CPU / RAM:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click on the action menu ⋮ located to the right of the item concerned.
  3. Click on Modify the offer:
  4. Make the desired adjustments and complete the procedure.

 

To reduce the size of the entire Managed Cloud Server disk space:

  1. Order a new server with the desired new storage (contact support to order the new server for free while performing the steps below).
  2. Move the hostings from the old server to the new one.
  3. Cancel the old server.

Refer to this other guide to modify the disk space of a hosting.

 

Increasing the process limit

On Linux, the number of processes that a user or a system can create simultaneously is limited. These limits prevent processes that are too fast from consuming excessive resources and affecting the overall stability of the system. Process limits are managed by the Linux kernel and can be viewed and modified using specific commands and configuration files. You can request to increase the limits by contacting support.


Has this FAQ been helpful?

This guide explains how to transfer an Infomaniak product from one Organization to another.

 

Preamble

  • You can move almost all products subscribed with Infomaniak to a different Infomaniak Manager interface than the one on which the product is currently located; this is therefore an internal transfer.
  • If your user has access to multiple Organizations it is even easier to send to one of them the product of your choice.
  • This operation does not cause any interruption.
  • The users currently having access to the selected products will not be transferred (and therefore may no longer have access to the products).
  • The invoices of the selected products will not be transferred.
  • my kSuite cannot be transferred.

 

Generate a transfer link

Prerequisites

To transfer a product:

  1. Click here to access the product transfer management on the Infomaniak Manager (need help?).
  2. Click on the Transfer products button:
  3. Check the product(s) to be moved:
  4. Read and accept the general conditions.
  5. Click on the Transfer button:
  6. Read and validate any warnings:

 

The transfer has started. Now, at your choice, you can:

  1. Copy the transfer link
  2. or send it to the email address of your choice…
  3. or select directly one of the Organizations to which your user is attached, and the selected product will be transferred there:

 

At any time, you can return to the product transfer page to find the possibilities listed above:

 

Alternative method

In the case of one-time transfer, you can also go directly to the dashboard of the product concerned and click on Manage (example in the image below) however, since this menu is not always present, it is better to prioritize the first method above, which also allows bulk transfer:

Refer to this other guide regarding Jelastic Cloud.

 

Receive the product

Once a product transfer is initiated by a user…

1. Be on the Organization that should receive the product

  • Click here to log in to the Manager on the Organization that should receive the product(s).
    • The user specified when logging in to the Infomaniak account must have administrative rights.
    • If necessary, you can create a new Organization to receive products.

2. Execute the obtained link

  • Click on the link obtained in the first step above.
    • You can also simply paste it into a browser while logged in to the appropriate Infomaniak account.

3. Validate the product transfer

  • If necessary, choose the destination Organization using the drop-down menu.
  • Read and accept the general conditions.
  • Click the Receive the product button (if the button is not clickable, make sure you have selected the Organization).

 

Find the ongoing or completed transfers at any time from the bottom icon on the left sidebar of the Infomaniak Manager:


Has this FAQ been helpful?

This guide explains how…

  1. … generate a CSR and private key to request a third-party certificate from a Certification Authority (CA),
  2. import this certificate for your Infomaniak site, using the CRT obtained from the CA.

 

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 the SAN (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 -text

This 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:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the relevant product.
  3. Click on SSL Certificates in the left sidebar.
  4. Click the blue Install a certificate button:
  5. Choose the custom certificate.
  6. Click on the Next button:
  7. Import your certificate and private key, either by importing the .crt and .key files or by copy-pasting.
  8. 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):


Has this FAQ been helpful?

This guide explains how to deploy Node.js with a Cloud Server to always have the necessary environment to compile or build modern frontends (React, Vue, etc.).

 

Preamble

  • Node.js is a free software platform in JavaScript oriented towards network applications that need to scale, a simple and effective solution to integrate frontend tools into any server stack.
    • Node.js = official name of the language/environment.
    • NodeJS = "technical" or simplified name in certain contexts (often for practical reasons, no real technical difference).
  • For additional help contact a partner or launch a free call for tenders — also discover the role of the host.

 

Install Node.js

Prerequisites

 

Install the stable version of Node.js

nvm install stable

Install the latest version

nvm install node

Install an older version (not recommended)

nvm install 17

List available versions

nvm ls-remote

Install a specific version

nvm install <version>

Switch Node.js versions and set version 6.3.1 (or another version) as default

nvm alias default 6.3.1

Use a specific version of Node.js in the current shell

nvm use <version>

Check the currently used version of Node.js

node -v

 

Source

To set up NVM, go to the WebSSH console of your Cloud Server.

Source the .profile file

source ~/.profile

Run the following command to check the NVM installation

nvm

 

Configure Node as a service

To configure Node as a service, using a "systemd-user service" is recommended.

 

Redirect traffic to a specific port

Refer to this other guide regarding traffic redirection to a specific port and dedicated IPs.


Has this FAQ been helpful?

This guide explains how to change the PHP version available for the websites of your Web Hosting Infomaniak.

 

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.
  • It may be necessary to update your hosting in advance to access the very latest PHP versions offered by Infomaniak.

 

Change the PHP version used for a website

It is possible to easily change the PHP version used on an entire website:

  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 More information.
  4. Click on Modify:
  5. Select the desired PHP version.
  6. Click on Save at the bottom of the page to save the modification:

Has this FAQ been helpful?

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:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the product in question.
  3. Click the toggle switch to enable the maintenance page.
  4. Confirm the warning.
  5. Click the button to enable:

 

Customize the maintenance page

To set up a page with your desired message:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the product in question.
  3. Click on Maintenance Page in the left sidebar.
  4. Click on Create a page or the Customize button if it already exists:
  5. Format the text of your choice.
  6. Configure the display using the elements on the right.
  7. 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:

  1. Activate maintenance mode according to the procedure above.
  2. Go back to the maintenance page configuration page (see procedure above).
  3. 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.
  4. 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:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the product in question.
  3. Click either on the Disable button or on the toggle switch to disable the maintenance page:
  4. 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.


Has this FAQ been helpful?

This guide explains how to use PHP environment variables with Web Hosting that runs on php-fpm.

 

Preamble

  • PHP environment variables are system variables used to store information about HTTP requests and redirects.
  • They are generally used on web servers to store details about previous requests or redirects that have been performed.
  • These variables can contain information such as previous URLs, HTTP methods, or other data related to the client's navigation on the web server.

 

Using environment variables

To use PHP environment variables:

  1. Define the PHP environment variables in a .htaccess file:
    • SetEnv EXAMPLEVARIABLE hello
  2. In your PHP file, the name of the variable to call corresponds to the same variable name defined in the environment variable:
    • <?php getenv('EXAMPLEVARIABLE');

In this example, the displayed result will be hello.

 

Going further with environment variables

It is possible to configure environment variables directly from the Manager for your entire website:

  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 PHP / Apache tab:
  5. Further down on the page, click on the chevron to expand the Environment Variables section.
  6. Click on the icon Add.
  7. Enter the variable and its value.
  8. Click the button to save:

Has this FAQ been helpful?

This guide explains how to display the absolute paths for certain web applications that need to know them.

 

Get the absolute path…

… of a web hosting

To do this:

  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 in question.
  3. Then click on the chevron to expand the Information section of this hosting.
  4. The highlighted indication below is the location of the example site:

… of a website

To do this:

  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. Then click on the chevron to expand the Information section of this site.
  4. The highlighted indication below is the location of the example site:

Has this FAQ been helpful?