burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite β†’ Discover β†’
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • Node.js Hosting Create a dynamic, interactive site with Node.js
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment β†’
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price

Knowledge base

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

Knowledge base FAQ - Knowledge base Page 13/1
    10 FAQ(s) found
    Use ODBC functions in PHP

    This guide concerns the ODBC functions of PHP.

     

    ODBC functions in PHP are only supported on Serveur Cloud.

     

    Open Database Connectivity functions

    These are the functions used to interact with databases via the ODBC (Open Database Connectivity) interface, a standard for accessing data sources uniformly. Here are a few examples of using the ODBC functions of PHP:

    • Being able to read data from an external database and display it on your website
    • Insert or modify data in an external database
    • Perform complex queries on an external database


    Updated 17.06.2025 Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use SSH in PHP with phpseclib

    This guide explains how to work without the PECL SSH2 client module, which is unavailable on Infomaniak Web Hosting and Cloud Servers, by using the phpseclib library instead, which runs in native PHP without requiring any specific extension.

     

    Foreword

    • Using PECL SSH2 client results in errors such as No compatible key exchange algorithms found or Unable to exchange encryption keys in its latest available version.
    • Phpseclib allows for:
      • SSH authentication via password or private key.
      • Remote command execution.
      • Secure file transfer (SFTP).
      • SSH key management.

     

    Using phpseclib

    To integrate an SSH connection into a PHP script, use phpseclib as follows:

    use phpseclib3\Net\SSH2;
    use phpseclib3\Crypt\PublicKeyLoader;
    
    $ssh = new SSH2('domain.xyz');
    $key = PublicKeyLoader::load(file_get_contents('/path/to/private_key'));
    
    if (!$ssh->login('utilisateur', $key)) {
        exit('Authentication Failed');
    }
    
    echo $ssh->exec('ls -la');


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Backup a VPS Cloud / VPS Lite

    Infomaniak does not perform any backups of VPS Cloud / VPS Lite.

     

    You can however…

    • … create a snapshot of the server (non-automated backup)
    • … back up the server on Swiss Backup (automated backup)


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Solve a Python problem using Anaconda

    This guide will help you if, for example, you want to deploy a package like pymysql and it requires a Python version higher than the one offered on your hosting.

     

    Preamble

    • Anaconda is a free and open-source distribution of the Python programming language. This distribution aims to simplify package management and deployment.
    • It is recommended to use conda which comes with a recent version of python and installs in the user space, so there is no conflict with the system python (like in a virtual environment, which always requires a system installation of the desired version).
    • Refer to the official documentation.
       
     

    ⚠️ For additional help contact a partner or launch a free tender β€” also discover the role of the host.

     

    Download the installer

    uid165116@od-12345:~$ wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh
    --2021-07-28 18:21:10--  https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh
    Resolving repo.anaconda.com (repo.anaconda.com)... 2606:4700::6810:8303, 2606:4700::6810:8203, 104.16.131.3, ...
    Connecting to repo.anaconda.com (repo.anaconda.com)|2606:4700::6810:8303|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 89026327 (85M) [application/x-sh]
    Saving to: β€˜Miniconda3-py37_4.10.3-Linux-x86_64.sh’
    Miniconda3-py37_4.10.3-Linux-x86_64.sh          100% [==============================================>]  84.90M   203MB/s   in 0.4s   
    18:21:11 (100 MB/s) - β€˜Miniconda3-py37_4.10.3-Linux-x86_64.sh’ saved [89026327/89026327]

     

    Check the hash

    uid165116@od-12345:~$ test $(md5sum Miniconda3-py37_4.10.3-Linux-x86_64.sh | awk '{print $1}') == "9f186c1d86c266acc47dbc1603f0e2ed" && echo "OK" 
    OK

     

    Launch the installation

    uid165116@od-12345:~$ bash Miniconda3-py37_4.10.3-Linux-x86_64.sh -b
    PREFIX=/home/clients/fc84cbbf6dcbd6dd76b15d3e56c1789f/miniconda3
    Unpacking payload ...
    Collecting package metadata (current_repodata.json): done                                                                                           
    Solving environment: done
    ## Package Plan ##
    environment location: /home/clients/fc84cbbf6dcbd6dd76b15d3e56c1789f/miniconda3
    added / updated specs:
        - _libgcc_mutex==0.1=main
        - _openmp_mutex==4.5=1_gnu
        - brotlipy==0.7.0=py37h27cfd23_1003
        - ca-certificates==2021.7.5=h06a4308_1
        - certifi==2021.5.30=py37h06a4308_0
        - cffi==1.14.6=py37h400218f_0
        - chardet==4.0.0=py37h06a4308_1003
        - conda-package-handling==1.7.3=py37h27cfd23_1
        - conda==4.10.3=py37h06a4308_0
        - cryptography==3.4.7=py37hd23ed53_0
        - idna==2.10=pyhd3eb1b0_0
        - ld_impl_linux-64==2.35.1=h7274673_9
        - libffi==3.3=he6710b0_2
        - libgcc-ng==9.3.0=h5101ec6_17
        - libgomp==9.3.0=h5101ec6_17
        - libstdcxx-ng==9.3.0=hd4cf53a_17
        - ncurses==6.2=he6710b0_1
        - openssl==1.1.1k=h27cfd23_0
        - pip==21.1.3=py37h06a4308_0
        - pycosat==0.6.3=py37h27cfd23_0
        - pycparser==2.20=py_2
        - pyopenssl==20.0.1=pyhd3eb1b0_1
        - pysocks==1.7.1=py37_1
        - python==3.7.10=h12debd9_4
        - readline==8.1=h27cfd23_0
        - requests==2.25.1=pyhd3eb1b0_0
        - ruamel_yaml==0.15.100=py37h27cfd23_0
        - setuptools==52.0.0=py37h06a4308_0
        - six==1.16.0=pyhd3eb1b0_0
        - sqlite==3.36.0=hc218d9a_0
        - tk==8.6.10=hbc83047_0
        - tqdm==4.61.2=pyhd3eb1b0_1
        - urllib3==1.26.6=pyhd3eb1b0_1
        - wheel==0.36.2=pyhd3eb1b0_0
        - xz==5.2.5=h7b6447c_0
        - yaml==0.2.5=h7b6447c_0
        - zlib==1.2.11=h7b6447c_3
    The following NEW packages will be INSTALLED:
      _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
      _openmp_mutex      pkgs/main/linux-64::_openmp_mutex-4.5-1_gnu
      brotlipy           pkgs/main/linux-64::brotlipy-0.7.0-py37h27cfd23_1003
      ca-certificates    pkgs/main/linux-64::ca-certificates-2021.7.5-h06a4308_1
      certifi            pkgs/main/linux-64::certifi-2021.5.30-py37h06a4308_0
      cffi               pkgs/main/linux-64::cffi-1.14.6-py37h400218f_0
      chardet            pkgs/main/linux-64::chardet-4.0.0-py37h06a4308_1003
      conda              pkgs/main/linux-64::conda-4.10.3-py37h06a4308_0
      conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.7.3-py37h27cfd23_1
      cryptography       pkgs/main/linux-64::cryptography-3.4.7-py37hd23ed53_0
      idna               pkgs/main/noarch::idna-2.10-pyhd3eb1b0_0
      ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.35.1-h7274673_9
      libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_2
      libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.3.0-h5101ec6_17
      libgomp            pkgs/main/linux-64::libgomp-9.3.0-h5101ec6_17
      libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.3.0-hd4cf53a_17
      ncurses            pkgs/main/linux-64::ncurses-6.2-he6710b0_1
      openssl            pkgs/main/linux-64::openssl-1.1.1k-h27cfd23_0
      pip                pkgs/main/linux-64::pip-21.1.3-py37h06a4308_0
      pycosat            pkgs/main/linux-64::pycosat-0.6.3-py37h27cfd23_0
      pycparser          pkgs/main/noarch::pycparser-2.20-py_2
      pyopenssl          pkgs/main/noarch::pyopenssl-20.0.1-pyhd3eb1b0_1
      pysocks            pkgs/main/linux-64::pysocks-1.7.1-py37_1
      python             pkgs/main/linux-64::python-3.7.10-h12debd9_4
      readline           pkgs/main/linux-64::readline-8.1-h27cfd23_0
      requests           pkgs/main/noarch::requests-2.25.1-pyhd3eb1b0_0
      ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.100-py37h27cfd23_0
      setuptools         pkgs/main/linux-64::setuptools-52.0.0-py37h06a4308_0
      six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_0
      sqlite             pkgs/main/linux-64::sqlite-3.36.0-hc218d9a_0
      tk                 pkgs/main/linux-64::tk-8.6.10-hbc83047_0
      tqdm               pkgs/main/noarch::tqdm-4.61.2-pyhd3eb1b0_1
      urllib3            pkgs/main/noarch::urllib3-1.26.6-pyhd3eb1b0_1
      wheel              pkgs/main/noarch::wheel-0.36.2-pyhd3eb1b0_0
      xz                 pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
      yaml               pkgs/main/linux-64::yaml-0.2.5-h7b6447c_0
      zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3
    Preparing transaction: done
    Executing transaction: done
    installation finished.

     

    Launch conda

    uid165116@od-12345:~$ source <(~/miniconda3/bin/conda shell.bash hook)

     

    Install pymysql (for example)

    (base) uid165116@od-12345:~$ python3 -V
    Python 3.7.10
    (base) uid165116@od-12345:~$ pip3 install pymysql --user
    Collecting pymysql
      Downloading PyMySQL-1.0.2-py3-none-any.whl (43 kB)
         |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 43 kB 892 kB/s 
    Installing collected packages: pymysql
    Successfully installed pymysql-1.0.2


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Include a file globally with Auto Prepend File

    This guide explains how to specify a file that will be loaded before the desired page or at the beginning of each PHP script executed on your server, included as if it had been called with the function require(), but more globally using the PHP directive auto_prepend_file.

     

    Preamble

    • For example, to declare the headers of a website, you can create a file called headers.php that contains PHP header() functions and that is prepended at the beginning of each PHP file…
      • … via a .user.ini file (specific to a folder),
      • … or via the site configuration of the Manager (global) as explained below.

     

    Include a file globally from the Manager

    To access website 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 concerned:
    3. Click on Manage under Advanced Settings:
    4. Click on the PHP / Apache tab.
    5. Fill in the relevant line by entering the path of the file to include.
    6. Click the button to save:

     

    After setting this directive, all PHP pages on your server will automatically include the specified file before executing their own code.

    The headers defined in a .htaccess file are only valid for non-PHP (i.e., static) content.

    Infomaniak uses php-fpm which receives the various headers via apache fast_cgi. In the RFC of cgi_www the header Strict-Transport-Security is not part of the headers passed via CGI and the Apache documentation confirms this. Refer to this other RFC.

    ⚠️ For additional help, contact a partner or launch a free tender β€” also discover the role of the host.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use nested virtualization? (VPS Cloud / VPS Lite)

    The Infomaniak infrastructure does not pass virtualization instructions to VPS Cloud / VPS Lite; it is therefore not possible to do nested virtualization (virtualization that would run within an already virtualized environment) as this causes issues, notably during live migrations.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Create a private network between servers

    This guide concerns the creation of private networks between different Infomaniak hosting offers such as VPS Cloud / VPS Lite, Public Cloud, NAS Synology, etc.

     

    Create a VLAN between VPS

    It is not possible to create a private network (VLAN) between VPS Cloud / VPS Lite and other products, such as NAS Synology for example, because they are installed on separate networks.

    However, it is possible to create a VLAN between at least 10 VPS Cloud / VPS Lite that you own (contact Infomaniak support) however a dedicated private network will not be able to communicate with another.

    It is recommended to migrate to the **Public Cloud** offer to create such private networks between VM.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Use Zend Guard Loader (formerly Zend Optimizer)

    This guide concerns the installation of PHP extensions on Web Hosting Infomaniak.

     

    Using Zend PHP extensions

    • Zend Guard Loader is a PHP extension that allows you to run encrypted PHP scripts via Zend Guard.
      • Zend Guard Loader is pre-installed for PHP <= 5.6 on all web hosting and is not available for PHP versions >= 5.6.
    • Since PHP 5.3.x, the Zend Optimizer module has been replaced by ZendGuardLoader
    • The ZendOPCache extension requires a Serveur Cloud configured with PHP 5.5 minimum


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Install a Perl module on Cloud Server

    To use Perl modules on a Serveur Cloud Infomaniak, it is necessary to install them in the user directory and to define their full path within the scripts.

    You will thus be able to install and freely update your modules.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Install Redis

    This guide concerns Redis, a PHP module for Serveur Cloud Infomaniak.

     

    Preamble

    • Redis is used with PHP to accelerate performance by serving as a cache for temporary data and managing user sessions, thus improving the efficiency of web applications.
    • Redis also allows the implementation of queuing systems and temporary storage of data for asynchronous tasks or statistics.
       

     

    Install Redis

    Redis is installed via Fast Installer, applications available in a few clicks on Serveur Cloud:

    • After installation, Redis is accessible via the IP/port localhost:6379 or 127.0.0.1:6379
    • The password for Redis must be between 15 and 99 characters (inclusive).


    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display more results If you cannot find an answer, contact us
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Β©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS Statuts Public Cloud Service status

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    bcorp-logo
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    Β©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.