Knowledge base

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

Search

This guide explains how to modify the PHP version used in the command line (PHP CLI) on an Infomaniak Web Hosting.

 

Preamble

  • Useful for configuring a specific script or PHP command line (CLI) session.
  • To modify the PHP version of the Web server (FPM/Apache) via the Manager, refer to this other guide.

 

Default PHP CLI version

The php command uses the default server version. Check the active version with this command:

# Check current PHP version
php -v

For the stability of your scripts, use an explicit path (e.g., php8.2) or modify your PATH variable.

 

Modify the PHP version in CLI

You can configure the PHP version automatically loaded in your SSH session via two main files.

 

1. Using .bashrc (Recommended)

The ~/.bashrc file is read when opening an interactive shell.

  1. Open the file (or create it if it does not exist):

    touch ~/.bashrc
    nano ~/.bashrc
  2. Add this line to define the desired version (example with PHP 8.3):

    export PATH="/opt/php8.3/bin:$PATH"
  3. Refresh the configuration:

    source ~/.bashrc
  4. Check the change:

    php -v
    which php

 

2. Using .profile (Alternative)

The ~/.profile file is read upon SSH connection (login mode).

  1. Modify the file:

    nano ~/.profile
  2. Add the export line:

    export PATH="/opt/php8.3/bin:$PATH"

 

3. Load .bashrc systematically

To apply the configuration to all types of sessions, add this code to your ~/.bash_profile or ~/.profile files:

# Load .bashrc if it exists
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi

 

Run a specific version temporarily

To run a script with a specific version without changing your global environment, call the binary directly:

# Execute with a specific version
/opt/php8.2/bin/php my_script.php
/opt/php8.3/bin/php -v

Once these steps are completed, your SSH sessions and CLI scripts will use the selected PHP version by default.


Has this FAQ been helpful?

This guide explains how to upgrade a free Web Starter plan to a paid plan with more features, such as shared Web Hosting or Web Hosting on a Cloud Server.

 

Introduction

 

Modify the Starter plan - basic web page

To upgrade this free plan:

  1. Click here to access the management of your hosting on the Infomaniak Manager (need help?).
  2. Click on the action menu â‹® located to the right of the item in question.
  3. Click on Modify plan:
  4. Follow the wizard to choose the new type of hosting, and pay to complete the plan change.

Has this FAQ been helpful?

This guide explains how to create a homepage on your Infomaniak website using the welcome page creation tool, a simplified tool for creating content quickly and easily. To create a more complete website, there is Site Creator.

 

Prerequisites

 

Create a welcome page on an Infomaniak site

To access the simple creation tool:

  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 Page & Maintenance in the left-hand menu:
  4. Check or select the domain name of the site on which you want to install the web page.
  5. Click on ‍ Create a homepage or Customize:

 

You can then choose a theme, define the text visible to your visitors, insert an image into the page body, manage the SEO content of your page, add a background image, specify social media usernames if necessary, etc., and all of this can be modified at any time.

Click on the blue button at the bottom of the page to save and publish your changes.

Please note that the tool can be used in conjunction with FTP management of your web hosting if necessary.

 

Disable and delete the welcome page

To delete the home page that has been automatically placed at the root of your website's directory:

  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 Page and maintenance in the left-hand menu.

You can delete the welcome page using the trash can icon; this will permanently delete the content of the welcome page!
‍


Has this FAQ been helpful?

This guide explains how to access the configuration of an Infomaniak website to display technical information such as the PHP, Apache version, or the activated PHP extensions and modules.

 

View the website's technical information

To access the website management:

  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 advanced settings:
  4. Take note of the website information under the General, PHP / Apache and PHP Extensions tabs.
  5. Click on Databases in the left sidebar to get the MySQL version of the web hosting:

Has this FAQ been helpful?

This guide explains how to run the open-source dependency manager Composer 2 using an SSH command.

 

Introduction

  • 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 deprecated since 2021 and no longer allows you to install new packages or perform updates since 2025.
  • Only version 2 of Composer is now supported and available on all PHP versions from 7.2 to 8.3.

 

Run Composer 2

Composer 2 is already pre-installed and accessible via SSH. Therefore, there is no need to install it manually.

Simple usage

Connect to your hosting via SSH, then use the following command:

composer

This command will automatically execute Composer version 2, which is compatible with the PHP version currently in use in your session.

Check the active version

You can check the available Composer version with:

composer --version

Example output: Composer version 2.5.0 2022-12-20 10:44:08

Force a specific PHP version

If you want to run Composer with a specific PHP version, aliases are available. For example:

composer_php8.1 --version

or:

composer_php7.4

These aliases allow you to run Composer 2 with the specified PHP interpreter, which is useful for testing or deploying a project on a target PHP version.


Has this FAQ been helpful?

This guide concerns Laravel, an open-source web framework written in PHP following the model-view-controller (MVC) principle. Also refer to their documentation.

 

Prerequisites

 

Installation of Laravel 11

To do this:

  1. Log in to the server via SSH (need help?).
  2. Navigate to the site directory by running the command “cd path-to-site” (for example cd sites/laravel.domain.xyz).
  3. Create a new project by running the command composer create-project laravel/laravel example-app.
  4. Modify the .env file at the root of the hosting to update the connection parameters to the new database:
    • DB_CONNECTION=mysql
    • DB_HOST=xxxx.myd.infomaniak.com
    • DB_PORT=3306
    • DB_DATABASE= the name of the MySQL database (xxxx_newbdd)
    • DB_USERNAME= the MySQL user with rights to this database
    • DB_PASSWORD= its password
  5. Navigate to the project directory and publish via SSH:
    cd example-app
    php artisan migrate
  6. Modify the target directory to point to the “public” subdirectory of the project, here /sites/laravel.domain.xyz/example-app/public.

Has this FAQ been helpful?

This guide explains how to allow certain incoming and/or outgoing ports in the firewall(firewall) for a web hosting or a Cloud Server.

 

Introduction

  • On a shared web hosting plan, it is only possible to open outgoing ports.
  • On a Cloud Server, it is possible to open incoming and outgoing ports.
  • Opening ports ensures the proper functioning of certain applications but may reduce the security of your hosting.

 

Access the tool and add a rule

To manage port openings from the Manager:

  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. Click on Security in the left-hand menu.
  4. Click on Port Forwarding in the left-hand menu.
  5. Click on the Open a Port button:

Open a port

You can only specify one port per rule, and only one IP/host per field:

By specifying an IP address or host, the connection will only be allowed in the following cases:

  • Incoming rule: if the connection comes from this IP address or the specified host
  • Outgoing rule: if the connection is made to this IP address or host

The same applies to the connection "Type": if the protocol used for the connection is not the one specified in the rule, the connection is not allowed.

 

Globally open outgoing port 25

You can open outgoing port 25 from the manager if a destination host is specified.

With a Cloud Server, to open this port to the entire world, contact Infomaniak support and justify your request.

 

Ports opened by default

Once you access the port opening tool, you will find the list of ports that are open by default on the page.

With a Cloud Server, to exceptionally close some of the listed ports, contact Infomaniak support and justify your request.

The display may sometimes be spread across multiple pages:

MySQL Ports

Regarding database ports, please refer to these guides:

 

Check the activity of a port (Cloud Server)

On Cloud Server, to check if an application is listening on a specific port (1234 in the example below) and to find out the name of the application in question, run the following command via SSH:

netstat -anpe | grep "1234" | grep "LISTEN"

Has this FAQ been helpful?

This guide explains how to migrate a shared web hosting account to a Cloud Server while recovering all its data, websites, databases, etc.

 

Introduction

  • Note:
    • Database names and database user accounts are preserved.
    • FTP accounts are preserved with the same names, but the host server changes to an address of the type xxxx.ftp.infomaniak.com.
    • The IP addresses of the websites will change, except for dedicated IP addresses.
    • During this operation, statistics are reset.
  • If you already have a Cloud Server, go directly to step 2 of this guide.
  • To migrate a web hosting account from a Cloud Server to another Cloud Server, please refer to this other guide.
  • To migrate a web hosting account from a Cloud Server to a shared web hosting account, please refer to this other guide; please note that this is an operation that you will need to perform manually.

 

1. Order a Cloud Server

To do this:

  1. Click here to access the Cloud Server management section in the Infomaniak Manager (need help?).
  2. Click on Order, choose a Managed Cloud Server, and follow the wizard to complete the order:

 

2. Migrate your hosting to the Cloud Server

Once the Cloud Server is up and running:

  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 in question.
  3. Click on Modify offer:
  4. Select the free transfer offer.
  5. Select the Cloud Server to which you want to migrate your hosting:
    ‍
  6. Click on the Next button at the bottom of the page and complete the procedure.‍
  7. Wait for the hosting migration to complete; there will be a service interruption during the process.

Has this FAQ been helpful?

This guide explains how to backup or export a MySQL/MariaDB database via the Infomaniak Manager or via SSH.

 

Export a database via the Manager

To export an Infomaniak database:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned:
  3. Click on the chevron to the right of Databases in the left sidebar menu.
  4. Click on Databases in the left sidebar menu.
  5. Click on the action menu â‹® to the right of the object concerned in the table that appears.
  6. Click on Export (or on Download a backup):
  7. Click on the export method and choose the database to download from the dropdown menu.
  8. Click on the Next button:
  9. Click on any desired instructions:
    1. Compression Gzip
    2. Drop Table
    3. Create Table if not exists
    4. Insert ignore into
  10. Click on the Export button.

 

Export a database via SSH

If you cannot export the database via the console or if the database is large:

  1. If necessary, create an FTP SSH account.
  2. Connect to the server via SSH (need help?).
  3. Customize and run the following SSH command:

    # Usage: mysqldump --host=[hostname] -u [username] --password=[password] [database_name] --no-tablespaces > [output_file.sql]
    mysqldump --host=db_host -u db_user --password=db_password db_name --no-tablespaces > backup.sql
  4. Wait for the SSH command to run (the terminal may freeze for a few seconds).
  5. Connect to the server via an FTP software/client.
  6. Download the generated SQL file.

 

Additional help

  • Example of command to execute at step 3 of the second procedure:

    # Example with standard credentials
    mysqldump --host=abcd.xyz.infomaniak.com -u abcd_test --password=your_secret_password abcd_test --no-tablespaces > backup.sql
  • Refer to this other guide if you are looking for information related to the MySQL server, database username and password.

Has this FAQ been helpful?

This guide explains how to install a free SSL certificate from Let's Encrypt on a website hosted by Infomaniak.

 

Introduction

 

Install a free SSL certificate on a site

Prerequisites

  • For the installation to be possible, the DNS records for the domain name must be correctly configured to point to the site in question.
  • If a change has just been made at this level, some operations may not be functional immediately.

To access the websites to install an SSL certificate:

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click on the action menu â‹® located to the right of the website in question.
  3. Click on Install an SSL certificate:
  4. Choose the free certificate.
  5. Click on the Next button:
  6. Check or select the domains concerned.
  7. Click on the Install button:
  8. Wait a few minutes for the certificate to be obtained for the website.

 

Refer to this other guide if you encounter SSL errors and to this other guide specifically if you are using Cloudflare.


Has this FAQ been helpful?

This guide suggests solutions to resolve common issues and frequent errors that may occur when you try to display your website in https after activating an SSL certificate.

 

The web browser automatically displays the http version of the site when you try to access it in https

It is recommended to perform the following actions:

  • Clear the cache of your applications or website.
  • Check that the pages and scripts of the site do not contain redirects to the http version of the site.
  • Check that the site's .htaccess file does not contain redirects to the http version of the site.
  • Set the https address of the site as the default:

 

The website is not displaying correctly (missing images, unsupported stylesheets, etc.) or displays a warning in the address bar

It is recommended to perform the following actions:

  • Clear the cache of your applications or website.
  • Check that the pages and scripts do not point to external resources using http; the whynopadlock.com website can help you identify the insecure elements of your site.
  • Also, refer to this other guide on the subject.

 

"This webpage contains a redirect loop", "ERR_TOO_MANY_REDIRECTS"

If your web browser displays this error, it is recommended that you perform the following actions:

  • If the website uses a web application such as WordPress or Joomla, disable the extensions one by one to identify the one causing the problem.
  • Check that the website's pages and scripts do not contain redirects to the http version of the site.
  • Try to disable HSTS.
  • If Prestashop is used, SSL must be activated on all pages:
    1. Add your SSL domain:
      • Go to Preferences > SEO & URLs.
      • In the "Shop URL" section, enter your site's address in the "SSL domain" field (without https://, just www.domain.xyz).
    2. Activate SSL:
      • Go to Preferences > General Settings.
      • At the top of the page, click on "Click here to use the HTTPS protocol before activating SSL mode."
      • A new page will open with your site in the secure HTTPS version.
    3. Force the use of SSL on the entire site:
      • Go back to Preferences > General Settings.
      • Set the "Enable SSL" option to YES.
      • Also, set "Force SSL for all pages" to YES.

 

An old SSL certificate is displayed - clear the SSL cache

Web browsers cache SSL certificates to speed up browsing. Normally, this is not a problem. However, when you are developing pages for your website or installing a new certificate, the browser's SSL status may be a hindrance. For example, you may not see the padlock icon in the browser's address bar after installing a new SSL certificate.

The first thing to do in this case is to make sure that the domain is pointing to the server's IP address (A and AAAA records), and if the wrong SSL certificate is still being returned, clear the SSL cache:

  • Chrome: go to Settings and click on Settings. Click on Show advanced settings. Under Network, click on Change proxy settings. The Internet Properties dialog box appears. Click on the Content tab. Click on Clear SSL state, then click OK. See other solutions in this other guide.
  • Firefox: go to History. Click on Clear Recent History, then select Active Connections and click on Clear Now.

 

Loss of CSS formatting

If the website is displayed without CSS styling, analyze the page loading process using the browser's Console. You may find mixed content errors related to your .css styles, which will need to be resolved so that they can be loaded correctly again.

 

Cloudflare

If you are using Cloudflare, please refer to this other guide for more information.


Has this FAQ been helpful?

This guide explains how to disable or configure HSTS for a website.

 

Introduction

  • When HSTS is enabled for a website, the server instructs the website visitor (if their web browser is compatible) to replace all insecure links with secure links.
  • Example: http://www.domain.xyz.com/one/page/ is automatically replaced with https://www.domain.xyz/one/page/.
  • After enabling an SSL certificate on a website, HSTS is configured as follows: max-age=16000000.

 

Disable HSTS…

 

… with a CMS (WordPress, Joomla, etc.)

Include the following line in all pages generated by the CMS:

header( 'Strict-Transport-Security: max-age=0;' );

For WordPress, you can, for example, add this directive to the functions.php file of your theme:

add_action( 'send_headers', 'add_header_xua' );
function add_header_xua() {
header( 'Strict-Transport-Security: max-age=0;' );
}

More details on WordPress

 

… with a PHP site

Include the following line in all PHP pages:

header( 'Strict-Transport-Security: max-age=0;' );

To do this without having to modify each PHP page of a website, you can use the auto_prepend_file directive in the .user.ini file of the website in question:

auto_prepend_file=/home/clients/xxxx/web/hsts_disable.php

... with the following hsts_disable.php file:

header( 'Strict-Transport-Security: max-age=0;' );

… with a website containing static content (not PHP)

 

… avec un site au contenu statique (non PHP)

Include this header in a .htaccess file:

# BEGIN DISABLE HSTS
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=0; includeSubDomains;"
</IfModule>
# END DISABLE HSTS

 

Customize HSTS

The default value can be modified in your website's PHP files using the following directive:

header( 'Strict-Transport-Security: max-age=X; includeSubdomains; preload' );

(X being the desired number of seconds).

 

Enable HSTS for all hosted subdomains

includeSubDomains; is enabled by default, and as its name suggests, it includes subdomains in "Strict Transport Security".

When a visitor accesses an unsecure subdomain, the browser will automatically redirect to HTTPS and trigger a security error.

If this behavior is not desired, this header must be removed.

 

Clear the browser's HSTS cache…

… on Chrome

  1. In Chrome, type chrome://net-internals/#hsts.
  2. Enter the domain name in the text field in the "Delete domain security policies" section.
  3. Click the Delete button.
  4. Enter the domain name in the text field in the "Query HSTS" section.
  5. Click on the Query button.
  6. The response should be "Not found".

… on Safari

  1. With Safari, start by closing the browser.
  2. Delete the ~/Library/Cookies/HSTS.plist file.
  3. Reopen Safari.

… on Firefox

  1. With Firefox, close all tabs.
  2. Open the Firefox menu and click on History / Show History.
  3. Find the page for which you want to delete the HSTS preferences.
  4. Right-click on one of the corresponding entries.
  5. Choose Forget this site.

Has this FAQ been helpful?

This guide provides information about the robots.txt file created by default for web hosting services where this file is missing.

 

Introduction

  • The robots.txt file acts as a guide for search engine crawlers.
  • It is placed in the root directory of a website and contains specific instructions for these crawlers, indicating which directories or pages they are allowed to crawl and which they should ignore.
  • However, please note that robots may choose to ignore these directives, making robots.txt a voluntary guide rather than a strict rule.

 

File content

If the robots.txt file is missing from an Infomaniak website, a file with the same name is automatically generated with the following directives:

User-agent: *
Crawl-delay: 10

These directives instruct bots to space out their requests by 10 seconds, which prevents unnecessary overloading of the servers.

 

Override the default robots.txt file

It is possible to bypass the robots.txt file by following these steps:

  1. Create an empty robots.txt file (it will only serve as a placeholder so that the rules do not apply).
  2. Manage the redirection of the URI (Uniform Resource Identifier) robots.txt to the file of your choice using a .htaccess file.

Example

RewriteEngine On RewriteCond %{REQUEST_URI} /robots.txt$ RewriteRule ^robots\.txt$ index.php [QSA,L]

Explanation

Explications

  • The mod_rewrite module of Apache is enabled to allow redirects.
  • The condition RewriteCond %{REQUEST_URI} /robots.txt$ checks if the request concerns the robots.txt file.
  • The rule RewriteRule ^robots\.txt$ index.php [QSA,L] redirects all requests to robots.txt to index.php, with the [QSA] option which preserves the request parameters.

It is recommended to place these instructions at the beginning of the .htaccess file.


Has this FAQ been helpful?

This guide is about IP addresses, including…

  • … those assigned to websites/hosting/servers, dynamic or static IPs, shared or dedicated IPs,
  • … assigned by your Internet Service Provider (ISP) when establishing an Internet connection to your Infomaniak product.

 

Introduction

  • A dedicated or static IP address for a website is a permanent IP address that is specifically assigned to it.
  • Unlike a shared IP address, which is used by multiple websites, a dedicated IP address ensures that only this platform is associated with that address.
  • Dedicated IP addresses for websites are often used in cases where stability, customization, and security are important, such as hosting servers, configuring firewalls, or enabling SSL certificates (although it is possible to proceed without a dedicated IP address to install an SSL certificate).
  • Here are the main advantages:
    • Configuring a PTR record or reverse DNS on dedicated IPs is useful, especially for installing a mail server, because some email providers check the PTR record before accepting emails sent from a server.
    • Improved connection stability.
    • Reduced risk of a bad reputation due to websites sharing the same IP address.
    • Easier configuration of certain technical aspects.
    • A dedicated IP can improve a website's search engine ranking (although there are differing opinions among SEO specialists).
  • Note: Infomaniak does not allow access to websites via HTTP(S) using dedicated IPs on managed servers; you must use a domain name that points to the IP (or use the preview URL).

 

Add a dedicated IP to the website

To add a dedicated IP to your website, please refer to this guide.

If you are experiencing issues when directing web traffic to a specific port, please refer to this other guide.

 

Blocking the IP address (Internet connection)

If you can no longer access…

  • … all your email addresses that you have with Infomaniak (which usually work fine) and this using an email software/client from a single Internet network (i.e., from the same IP address provided by your ISP)…

… or if you have unfortunately performed this type of operation:

  • repeated, unsuccessful connection attempts via FTP, SSH, or on access points such as the WordPress login…
  • requests returning too many errors, such as a large number of 403 errors…

… your access to Infomaniak servers may be blocked following the banning of the IP address (banip / ipban) of your internet connection.

To resolve this, contact Infomaniak support by email, specifying the domain concerned and, above all, your public IP address.

 

Permanent unblocking (IP whitelisting)

With a Cloud Server, you can request that the IP address in question be permanently whitelisted so that the blocking never happens again, regardless of the situation. To do this, you must:

  1. Have a dedicated IP associated with your Cloud Server.
  2. Be aware that Infomaniak will no longer block any potential attacks originating from this IP.; malicious attacks or access attempts originating from this address will no longer be automatically blocked by the security systems.
  3. Confirm via email and from a contact addressassociated with the account (owner or administrator), and that you understand and accept full responsibility in the event of an attack originating from this IP address.

Has this FAQ been helpful?

This guide explains how to order, link or remove a dedicated IP from a website.

 

Manage dedicated IPs on hosting

 

Order one or more first dedicated IP addresses

To do this:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned:
  3. Click on the chevron to the right of Advanced Tools in the left sidebar menu.
  4. Click on Dedicated IPs in the left sidebar menu.
  5. Click the button to order one or more IP addresses:
  6. Increase according to the number of desired IPs:

 

Order one or more additional dedicated IP addresses

To do this:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned.
  3. Click on the chevron to the right of Advanced Tools in the left sidebar menu.
  4. Click on Dedicated IPs in the left sidebar menu.
  5. Click on the text to order one or more additional IP addresses:
  6. Increase according to the number of desired IPs.

 

Link a dedicated IP address to a website on hosting

Once the IP is ordered and paid for, be aware of the prerequisites below as switching to a dedicated IP address for a website can cause temporary disruption, especially in the presence of a Let's Encrypt SSL certificate.

Prerequisites

  • Start by reducing the TTL of DNS records A and AAAA (for @ and www) to 5 minutes.
  • Wait for the previous TTL duration before making any changes.
  • The change below should be made during a period of low traffic to limit the inconvenience caused by the inevitable disruption.
  • At the end of the procedure, you will need to wait for the new TTL to propagate the new configuration and regenerate the SSL certificate, then check the accessibility of the site in HTTPS to ensure everything is working correctly.

To switch to a dedicated IP address:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned.
  3. Click on the chevron to the right of Advanced Tools in the left sidebar menu.
  4. Click on Dedicated IPs in the left sidebar menu.
  5. Click the button to associate the IP with a site on your hosting:
  6. Choose the site to assign the new IP address to.
  7. Check the box after reading the warnings.
  8. Click the Associate button:

 

Remove a dedicated IP address from a website

Once the IP is installed, to uninstall it:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site concerned.
  3. Click on the chevron to the right of Advanced Tools in the left sidebar menu.
  4. Click on Dedicated IPs in the left sidebar menu.
  5. Click on the action menu â‹® located to the right of the item concerned.
  6. Choose Unlink:
  7. Read the warnings and confirm the deletion to complete the IP uninstallation procedure.

 

Refer to this other guide if you are looking for information on potential issues related to your IP.


Has this FAQ been helpful?

This guide explains how to migrate a Web Hosting from MySQL to MariaDB.

 

Preamble

  • MariaDB is an enhanced version of MySQL, featuring numerous powerful built-in features and many improvements in terms of usage, security, and performance:
    • MariaDB has a larger connection pool supporting up to 200,000 connections, whereas MySQL has a smaller connection pool.
    • When comparing the performance of MariaDB and MySQL, it is observed that replication is faster in MariaDB and slower in MySQL; MariaDB is faster than MySQL overall.
    • MariaDB is Open Source, whereas MySQL uses proprietary code in its Enterprise edition.
  • The update to MariaDB is irreversible, and all sites on your hosting will subsequently run with this version of MariaDB.
  • During this operation, the statistics are reset.

 

Using MariaDB instead of MySQL

To migrate a Web Hosting to MariaDB:

  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 concerned.
  3. Click on Databases in the left sidebar.
  4. Click on the link Migrate to MariaDB.

To migrate a Cloud Server, refer to this other guide regarding the migration to a new generation of Cloud Server.


Has this FAQ been helpful?

This guide details sending emails from a website hosted by Infomaniak using the PHP function mail() which is disabled by default.

 

Preamble

  • Infomaniak strongly discourages the use of the PHP mail() function for sending emails from your applications:
    • The emails will be considered as "unauthenticated" and will therefore be subject to limits.
    • Their deliverability will be affected, which can harm your website.
  • It is strongly recommended to use an authenticated SMTP sending method for your email sending from your applications; Infomaniak offers a corresponding service.

 

Specify the sender's address

For messages to be sent correctly from your CMS/web application (and to avoid an error such as Could not instantiate mail function or sender mismatch) it is necessary to specify a valid address in the site parameters on the Infomaniak side:

  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 advanced settings:
  4. From the General tab, enter an existing email address in the Sender's email field.
  5. Click on the blue Save button:

 

Re-enable the mail function

If you still want to use the PHP mail function, you will need to activate it on each of the sites of your concerned Web Hosting:

  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 advanced settings:
  4. Click on the PHP / Apache tab:
  5. Activate the mail function:
  6. Click on the Save button at the bottom of the page to validate the changes.

 

PHP mail() examples...

 

...on WordPress

Configure the sending of the default contact form included with Divi Builder:

  1. Log in to the WordPress admin dashboard.
  2. Go to the Divi editor of the page containing the contact form.
  3. Click on the Settings icon to configure the Divi contact form:
  4. Under EMAIL, enter the email address that will receive the form submissions and save:
  5. By default, when a visitor uses the form to contact you, you will receive an email from mail@your-site-name and if you reply, the recipient will automatically be the email address indicated by the visitor when filling out the contact form.

 

... on Prestashop

Go to Prestashop advanced settings:

  1. Specify the SMTP mode.
  2. Enter localhost as the server.
  3. Enter port 25.
  4. Do not specify a username or password.

 

... on Joomla

Configure email sending via PHPmail (not recommended) in Joomla:

  1. Log in to the admin dashboard of your Joomla site.
  2. Go to Configuration then Server.
  3. Do not enter ANYTHING in the Site Email field:

This unfortunately prevents any test sending via the button for this purpose, but it will work if you configure a contact form on your site. Click on Save once the box is left empty.

 

PHP mail() reply address

When sending an email with PHP's mail() function, the return-path will be written in the form root@h2web3.infomaniak.ch for example. However, the header Reply-To: present in the code of your form allows you to specify a valid reply address.


Has this FAQ been helpful?

This guide explains why using an outdated version of PHP that is no longer officially supported is dangerous and how to use a more recent version of PHP with a website hosted by Infomaniak.

 

Is an outdated version of PHP dangerous?

When you use a PHP version that is (soon) vulnerable on one or more of your websites, a warning message will appear in the dashboard of the hosting accounts concerned.

The PHP language is constantly evolving, and when you use a PHP version that is no longer updated, you expose your website to security risks. Malicious individuals could, for example, exploit known security vulnerabilities to gain access to your site and modify its content. It is therefore strongly recommended to always use a recent version of PHP.

3 situations are possible:

  • the PHP version is fully supported: no action is required
  • this PHP version only receives security updates: it is recommended to use a more recent version of PHP
  • the PHP version is no longer supported: it is strongly recommended to use a more recent version of PHP

 

Using a more recent version

The latest versions of PHP offer improved performance and accelerate website loading times.

Before using a more recent version of PHP, it is important to follow these precautions:

  • If your website uses a CMS or web application(WordPress, Joomla, Drupal, etc.), ensure that the current version of the CMS is supported by the PHP version you wish to use.
  • If your website was developed manually, consult the official PHP documentation to learn about the modified functions and any potential changes that may affect the operation of your code.

If a malfunction occurs after migrating to a newer version of PHP, it is sometimes possible to revert to a previous version, provided that it is still supported!


Has this FAQ been helpful?

This guide explains how to order Web Hosting at Infomaniak.

 

Already a customer, you already have hosting

To order an additional hosting:

  1. Click here to access the management of your product on the Infomaniak Manager (need help?).
  2. Click on the supermarket cart icon:

If you already have web hosting, you can also add a site to an existing hosting without ordering or paying for new hosting (multi-site/multi-domain management).

 

Order new Infomaniak web hosting

To order your first web hosting:

  1. If necessary, create a user account.
  2. Click here to access the Infomaniak Manager.
  3. Click on Hosting (Web & Domain universe):
  4. Click to order new hosting:
  5. Once on the Shop, check that you are ordering in the desired Organization (select another from the list if necessary or create a new one at point 6 below):
  6. Confirm your choice by clicking on the blue button at the bottom of the page (or first create a new Organization if necessary using the dedicated blue link):
  7. At the top, enter the domain name of your hosting and click on Search (even if you already manage it with another registrar):
  8. Two scenarios are then possible:
    1. You do not yet own the domain name: check the information and options on the screen, then click on the Next button:
    2. You own and manage your domain names with another registrar: click on the action menu â‹® to the right of the domain name to Order hosting only:
  9. Choose the hosting that suits you.
  10. Click on Next.
  11. Complete the order.

Has this FAQ been helpful?

This guide explains how to update a Let's Encrypt SSL certificate for a website hosted by Infomaniak.

 

Introduction

  • It may be necessary to regenerate a certificate after adding or removing aliases from a website in order to include the new domain names associated with the website.
  • The dashboard will clearly indicate that one of the domains associated with the website is not included in the current SSL certificate:

 

Updating a Let's Encrypt Certificate

To access 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 product in question:
  3. Click on the action menu â‹®.
  4. Click on Update certificate:
  5. Check or select the domains concerned.
  6. Click on the Install button:

Has this FAQ been helpful?