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 18/1
    10 FAQ(s) found
    Manage the default homepage pages taken into account

    This guide concerns the homepage names that can be used on your Web Hosting Infomaniak, and which will be prioritized when a visitor accesses your website via its domain name.

     

    Regarding Site Creator, refer to this other guide.

     

    Preamble

    • The default homepages on a web server are the first pages that display when a user accesses a website without specifying a particular file.
    • If you simply enter http://domain.xyz in your browser's address bar, the web server will look for a default home page to display, for example index.html, index.php, index.htm, or other similar variations.

     

    Homepage priority order

    Here are the default pages loaded in order of priority at Infomaniak:

    1. index.html
    2. index.htm
    3. home.html
    4. home.htm
    5. default.html
    6. default.htm
    7. index.cgi
    8. index.php
    9. index.php5
    10. index.php4
    11. index.php3
    12. default.php
    13. home.php
    14. welcome.php

    In summary:

    • If you have 2 pages at the root of your hosting, thanks to the ranking above, you will notice that index.php is recognized as a priority over welcome.php.
    • It can also be deduced that if you only have welcome.php as a page in the root folder, it will be loaded and function as the homepage.
    • If you have a page accueil.html, it will not work because this name is not on the list.
    • When you type www.domaine.xyz into the browser, only index.php will automatically display (and to display welcome.php you will need to type the exact page name www.domaine.xyz/welcome.php).

     

    Customize the default homepage

    To set a different default home page, add DirectoryIndex followed by the appropriate pages in the .htaccess file:

    DirectoryIndex accueil.html index.php index.html

    This means that the web server will first look for a file named accueil.html. If it does not find accueil.php, it will look for index.php, then index.html.



    Updated 04.07.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.
    Resolve an "no privilege" error

    To avoid an error “Create a database: no privilege” you must go through the Manager Infomaniak and not through phpMyAdmin to add a new database.



    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.
    Check if a site has a caching system

    This guide explains how to obtain information about the presence of a caching system on a site using the curl command.

     

    Introduction

    • In the world of programming and system administration, it is often necessary to determine if a website uses a caching system to improve its performance.
    • Caching systems like Fastly are commonly used to temporarily store data to serve it faster to users.
    • By following these steps, you will be able to determine if a website uses a caching system to improve its performance and understand the operation and optimization of sites.

     

    Using the curl command

    curl is a command-line tool for transferring data using URLs.

    The option -svo /dev/null is used to perform a silent request (-s), display detailed information about the request (-v), and redirect the output data to /dev/null to ignore it (/dev/null is a special device on Unix/Linux systems that behaves like a trash can). -H "Fastly-Debug: true" is an HTTP header added to the request to ask for debugging information specific to Fastly.

    Run the command

    Run the following command from a terminal application (command line interface, CLI) on your device:

    curl -svo /dev/null [url] -H “Fastly-Debug: true”

    and replace [url] with the address of the website you want to check.

    If the site uses Fastly or another similar caching system, you will see specific debugging information in the command output. The details provided may include information about HTTP requests and responses, as well as information about the cache and performance.



    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 URL redirection/rewriting issue

    This guide explains how to enable the MultiViews option via a .htaccess file on sites hosted by Infomaniak.

     

    Preamble

    • In some cases, the MultiViews option must be enabled to handle redirection and URL rewriting issues. Example:
      • If the configuration folder and the configuration.php file are located at the root of your site and you try to access the address mon-site.com/configuration to reach the configuration.php file, the MultiViews option must be enabled.

     

    Enable the MultiViews option

    To do this:

    1. Open or create the .htaccess file located at the root of the relevant site.
    2. Add the following directive:

      Options +MultiViews
    3. Save the changes.


    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 ImageMagick and alternatives

    This guide concerns ImageMagick, a powerful solution for image manipulation, which you can install on a Web Hosting Infomaniak.

     

    For installation, the easiest way is to use Fast installer.

     

    ImageMagick and alternatives

    These image manipulation solutions are compatible with Web Hosting and Cloud Servers:

    1. ImageMagick: the main software suite for versatile image manipulation via the command line
    2. PerlMagick: Perl interface to integrate ImageMagick functionalities into Perl scripts
    3. Perl Module Image::Magick: Perl extension to access ImageMagick features without specifying the absolute path of the executable
    4. GD 2.x: open-source graphics library offering similar functionalities to ImageMagick, often used in web development contexts
    5. Gallery 2: an online image gallery management platform compatible with ImageMagick

     

    If necessary, the path for ImageMagick is standard since it is installed through the Debian repository:

    /usr/bin

    and for the Perl module Image::Magick:

    /usr/local/bin/convert

    or without specifying the absolute path:

    $ perl -e 'use Image::Magick';

     

    All ImageMagick commands are under /usr/bin/:

    /usr/bin/animate
    /usr/bin/compare
    /usr/bin/composite
    /usr/bin/conjure
    /usr/bin/convert
    /usr/bin/display
    /usr/bin/identify
    /usr/bin/import
    /usr/bin/mogrify
    /usr/bin/montage
    /usr/bin/stream


    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.
    Resolve a 502 Bad Gateway error

    This guide details "502 Bad Gateway" errors that can occur when visiting a website.

     

    Introduction

    • The 502 Bad Gateway error occurs when the server acting as a gateway between the browser and the origin web server receives an invalid response.
    • This error can be caused by an overloaded web server, communication issues between a CDN and the hosting web server, or a misconfigured proxy server.
    • Sometimes, the error may be caused by a bad entry in the DNS server.

     

    Troubleshooting steps

    To resolve the 502 Bad Gateway error, you often need to troubleshoot by elimination:

    • Check if the server is not temporarily overloaded: simply reload the page after a few minutes for the error to disappear.
    • Clear the browser cache.
    • Try using another browser.


    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 the FTP logs

    This guide explains how to view file activity on the server of your hosting Infomaniak.

     

    FTP activity logs

    To find out about the activity of exchanges on your FTP space, contact Infomaniak support to request FTP logs by first authenticating with the credentials corresponding to the management of your web hosting.

     
    The log is only updated if there has been FTP activity.

    Help reading logs: http://www.castaglia.org/proftpd/doc/xferlog.html



    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 an FTP ownership issue

    The owner "site1xxx" (e.g. site1152, site1163, site1184…) appears when the FTP user account that created the folders/files in question has been removed from the list of FTP user accounts.

    To access these files again in order to modify them, you need to log in with a different FTP account in the FTP File Manager and change the owner of the files with the "Properties" button.



    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 headers to optimize resource caching

    This guide explains how to optimize web resource caching using HTTP headers.

     

    Introduction

    • A good caching strategy significantly improves your site's performance by avoiding the unnecessary retransmission of unchanged files.
    • Web caching relies on two complementary mechanisms:
      1. The cache validity duration (via the Expires header) which indicates how long a resource can be reused without contacting the server.
      2. Conditional validation (via the Last-Modified/If-Modified-Since headers) which allows checking if a resource has changed before re-downloading it.

     

    Configuration of cache duration with Expires

    The Expires header allows you to specify a duration during which the browser can directly reuse resources from its local cache. Here's how to configure it in your .htaccess file:

    1. Create or open the .htaccess file at the root of your site (usually in /web or /sites/domain.xyz).
    2. Add the configuration for the expires module:

      <IfModule mod_expires.c>
    3. Set the appropriate cache durations for each type of resource:

      ExpiresActive On
      ExpiresByType text/html "access plus 1 week"
      ExpiresByType image/jpeg "access plus 1 month"
      ExpiresByType text/css "access plus 1 month"
      ExpiresByType application/javascript "access plus 1 month"

      These directives mean that:

      • HTML pages will be cached for one week.
      • JPEG images, CSS files and JavaScript files will be kept for a month.

      Adjust these durations according to the frequency of updates to your resources.

    4. Close the configuration section:

      </IfModule>

     

    Conditional validation with Last-Modified

    Even when a resource has expired in the cache, it is not always necessary to completely redownload it. The conditional validation mechanism allows the browser to check if its cached version is still up-to-date. This process works as follows:

    1. The server automatically sends a Last-Modified header with each resource, indicating its last modification date.
      • Apache handles this natively for static files - no additional configuration is required.
    2. When the browser requests the resource again, it sends a If-Modified-Since header containing the date it has in cache:

      GET /resource HTTP/1.1
      Host: www.example.com
      If-Modified-Since: Wed, 21 Oct 2015 07:28:00 GMT
    3. The server compares this date with the actual file modification date:
      • If the file has not changed, it simply returns a 304 Not Modified code, thus saving bandwidth.
      • If the file has been modified, it returns the new version with a 200 OK code.


    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.
    Configure the PHP parameters via CLI

    This guide explains how to configure the PHP parameters of Web hostings directly from the command line when you run PHP scripts using PHP CLI (Command Line Interface).

     

    Preamble

    • This type of configuration can be useful when you need to temporarily modify certain parameters for a specific script or for a PHP session.
    • These changes will only be valid for the current script execution and will not alter the global PHP configuration.

     

    Modify the PHP CLI parameters

    For example, to temporarily modify the parameters for a specific script without having to modify the configuration PHP of the server, follow the method below; with the PHP CLI environment you can specify multiple PHP parameters at the same time by separating them with spaces.

    Using the parameter -d

    When you run PHP from the command line, you can use the parameter -d to specify PHP configurations. This allows you to modify the PHP parameters for that specific execution. For example, to set the maximum execution time to 90 seconds, the memory limit to 256 MB and disable secure mode, you can do it as follows:

    php -d max_execution_time=90 -d memory_limit=256M -d safe_mode=Off -f test.php


    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.