Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide offers solutions to errors of the type:
"Malicious site! The website has been reported as a malicious site and has been blocked based on your security preferences"
Who put this message?
This error message or warning:
- IS NOT added by Infomaniak
- is generated based on Google's criteria, including the use of https://www.stopbadware.org/
- may appear in English ("STOP! This Website Can Harm Your Computer!")
- may not appear directly anymore because
- you are no longer indexed by Google
- you are using a browser that does not rely on Google's controls
What to do?
If this does not concern the site you are dealing with, consult Google's help on this topic.
If the site is yours, please read the advice below:
- Check the source code of the published page: there is probably additional code compared to previously healthy pages; it could be a malicious iframe or any inclusion
- On the page in question, click on the "Why has this site been blocked" button and follow the instructions
- Read the documentation https://developers.google.com/search/docs/monitor-debug/security/malware
- Monitor Patchman which could resolve the issue in the meantime
⚠️ For additional assistance contact a partner or submit a bid — also read about the role of the host
This guide explains how to change the PHP version available for the websites on your Infomaniak Web Hosting.
It is possible to switch from an old and potentially vulnerable PHP version to a newer one, but reverting back to this vulnerable version will no longer be possible for security reasons.
Change the PHP version used for a website
You can easily change the PHP version used on an entire website:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- Click on the icon at the top right of the interface (or navigate through the left side menu, for example)
- Choose Website (Web & Domain universe)
- Click on the name of the relevant object in the displayed table
- Click on Edit in the PHP version section
- Choose the desired PHP version
- Click Save to save the change
The change takes effect immediately and permanently.
To configure the PHP version used in SSH, read this guide.
This guide explains how to add a MySQL/MariaDB database, create or modify users, and find all the necessary parameters to configure your scripts and CMS on a Web Hosting.
Database Management
To access the database management page of your hosting:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface (or navigate through the left side menu, for example)
- Choose Hosting (under Web & Domain)
- Click directly on the name of the relevant object in the displayed table
- Click on Databases or MariaDB in the left side menu, for example:
or
Databases
Under the Databases tab, you can:
- Create a MySQL/MariaDB database by clicking on the Add a database button
- Import, export, or restore a MySQL database using the arrow on the right side of the Add button
Users
Under the Users tab, you can:
- Create a MySQL/MariaDB database user by clicking on 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 database username (the one you chose when creating the MySQL/MariaDB user reset it if forgotten)
- The MySQL/MariaDB server for databases / hostname (e.g., XXXX.myd.infomaniak.com) with its version (5.7, for example)
User Rights
- With read rights: the user can only view the structure and content of a table and perform SELECT-type queries
- With write rights: the user can modify the structure and content of the database
- With administration rights: the user can delete the database
- Without any rights: the user will not see the database in phpMyAdmin
Web Application Databases
This guide details the technical and administrative aspects of hosting multiple websites on the same platform.
Technically speaking
A single hosting package can encompass various websites. Therefore, it's possible to add multiple websites to one hosting account (multi-site / multi-domain management). In this scenario, the resources of the hosting (disk space, databases, script execution time, and memory, etc.) are shared among the various websites on the hosting account.
The basic Cloud Server plan includes a certain number of hostings (e.g., 5) and a higher number of websites (e.g., 20). In this example, that means you could create 20 websites (with 20 different domains/subdomains) that you can freely organize across your 5 hosting accounts.
Administratively speaking
Regarding the organization within the Infomaniak Manager, management and access rights cannot be assigned to a specific website on a hosting account. A user that you add to the organization cannot have rights limited to just one site; they will always have access to the entire hosting account.
However, at the server data level, it is possible to create an FTP user restricted to a specific folder (this should be limited to the folder where the site is located).
Managing a single site among others on the same hosting can also be considered directly within the tool used for the site (e.g., WordPress user management).
Also read: https://news.infomaniak.com/quel-hebergement-web-choisir/
This guide concerns you if you encounter a 500 error, which can have various origins generally related to the development of your website on a Web Hosting, especially with the rewrites in your .htaccess files.
Under What Circumstances Do These Errors Occur?
Apache2, in use on our servers, no longer supports certain modules like mod_auth_anon, mod_auth_dbm, mod_authz_dbm, mod_cern_meta, mod_imap, mod_imagemap, mod_mime_magic.
Furthermore, Apache2 is strict with syntax errors, and when it encounters syntax errors in an .htaccess file, it can result in 500 Internal Server Error or unexpected URL rewriting errors.
Examples of Incorrect Syntax in .htaccess and Correction
In this first example, the syntax error is that the rewrite rule does not specify the HTTP redirection response code to return. The correction adds the R=301 directive to specify that the redirection should return a 301 (permanent) status code:
RewriteRule ^articles/([0-9]+)/$ /article.php?id=$1 [L]
Correction:
RewriteRule ^articles/([0-9]+)/$ /article.php?id=$1 [L,R=301]
In this second example, the syntax error is that the Options directive does not properly specify the options to enable or disable. The correction adds the "+" sign to specify that FollowSymLinks should be enabled rather than disabled:
Options -Indexes FollowSymLinks
Correction:
Options -Indexes +FollowSymLinks
How to Resolve These Errors?
- If the first page or another page displays a 500 error, rename the .htaccess file or comment out all lines with # and uncomment line by line until you find the problematic section.
- If the error occurs after making changes to one of your pages, the easiest way is to restore the previous version of the file.
This guide explains how to add an additional website to an existing hosting.
The hosting can be on a shared Web Hosting plan or on an Infomaniak Managed Cloud Server.
The additional website can correspond either to a second domain name (domain2.xyz for example) or to a subdomain (abc.domain.xyz for example) of a domain name you already own.
If the 20 sites offered by Web Hosting are already used, you can order additional sites.
During this multisite/multidomain management (virtual host), the disk space and total resources of your hosting are shared among your sites/subdomains.
Access the site management
To access a Web Hosting to add a site:
- Log in to the Infomaniak Manager (manager.infomaniak.com)
- Click on the icon with squares in the upper right corner of the interface (or navigate through the left sidebar menu, for example)
- Choose Hosting (under the Web and Domain universe)
- Click on the name of the relevant object in the displayed table
- Click on the blue Add button (in the Sites section)
- Choose potential content for the new site (A) or no particular installation (B)
- Press Continue
- Choose the type of domain that should correspond to this new site:
- an already acquired domain name
- a subdomain created from an already acquired domain name
- an available domain name that needs to be ordered
- Enter the name of the Domain (domain2.xyz for example) or the Subdomain
- Choose any Advanced Options, including:
- by default, the new site is added in the /sites/domain2.xyz directory on your FTP server
- to manually define another directory, check the Set location manually option and indicate the location and its name
- Click Continue
If it is 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 domain name management to Infomaniak.
This guide explains what a web host is and what its role is. Will it, for example, be able to help in designing a website or resolve a bug which has appeared on a user’s computer?
Infomaniak, a host since 1996
According to Wikipedia, a web host is a company which provides an online hosting service for various IT systems for people or entities who do not want to do this themselves.
No intervention on the content of the products hosted
As a web and email host, Infomaniak's main activities involve installing, securing, and updating servers, in particular to protect them from malicious attacks.
We also take care to improve our web interfaces (Manager) and our infrastructures constantly based on customer feedback, the latest technologies, and market needs. Finally, we are also here to accompany our customers in the various stages of using our products.
However, we do not intervene with regard to the content of servers or the development of websites. The creation or maintenance of a website is a different profession. We have webmasters and developers for our own website, our own apps & tools.
Find a webmaster
For help with regard to the content of your website or the organisation of your mailboxes, you can contact one of our partners.
Issue a call for tenders
The Infomaniak call for tenders platform lists more than 1,000 verified companies in Switzerland, France, Belgium, Italy and Spain. It is the quickest means of finding a webmaster, a UX designer, an IT technician, a web agency or a communication and marketing agency near you ; or browse the directory.
This guide presents the DNS Diagnostic tool, which allows you to verify that the relationships between domain names and Infomaniak's Mail Service and/or Web Hosting are correct so that Mail/Web traffic is directed to the right place. This involves checking MX, A, CNAME, etc. records. The tool allows you to intervene in the configuration if needed.
You can thus detect and correct certain Mail or Web problems, especially if they are related to DNS (name servers, technical information that essentially determines where Web or Mail traffic should be directed) by acting at the level of your domain.
Diagnosing a DNS Problem
To access the DNS diagnosis of your domain name:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface (or navigate through the left sidebar menu, for example)
- Select Domains (universe Web & Domain)
- Click directly on the name of the relevant object in the displayed table
- Click on DNS Diagnostic in the left sidebar menu
- If DNS problems are detected, they will be indicated in red on the table
- Correct each entry individually (1) or all entries at once (2), or if necessary and you are sure about it, ignore these warnings (3):
Also see the diagnosis of DNS records related to messaging.
An alias is a second domain name linked to an existing website.
For example, to make the site "domain.xyz" also accessible with "www.domain.xyz," you need to add it as an alias to the domain "domain.xyz." In this example, "domain.xyz" is the parent site of the alias "www.domain.xyz."
In general, the "www" alias is already added and present, but the procedure will also be useful when you want to point a second domain name to your site.
Prerequisites
If the domain name (intended to become an alias) or its DNS zone is managed by Infomaniak, everything is fine. If not:
- The A record of the domain name must point to Infomaniak
- For simplicity, you can entrust us with the management of your domain name
Add an alias to an existing site
To access Web Hosting to add an alias to a site:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon in the top right of the interface (or navigate using the left side menu, for example)
- Select Hosting (in the Web & Domaine universe)
- Click directly on the name of the relevant item in the table that appears
- Click on the respective site (in the Sites section)
- Click on the blue Add button (in the Domains section)
- Enter the desired alias domain name(s), separating them with the Enter key
- If the alias or its DNS zone is managed by Infomaniak, it's possible to automatically update the DNS entries. Otherwise, make any necessary changes with your registrar or transfer the domain name management to Infomaniak
- Click Validate to complete the procedure
It can take up to 48 hours for the alias to point to the parent site.
To set the alias as the main domain: https://faq.infomaniak.com/2070
This guide concerns inbound and outbound traffic permissions between different hosting providers at the database level.
Access...
...to databases external to Infomaniak
From an Infomaniak Web hosting, it is possible to perform MySQL queries to external servers without restriction.
...from outside to Infomaniak databases
Access to Infomaniak databases from outside the infrastructure is only allowed with a Cloud Server (appropriate ports are opened by default).
Allowing external connections on MongoDB
Regarding MongoDB, you need to disable the "local_only" option from the Fast Installer:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- Click on the icon at the top right of the interface (or navigate through the left side menu, for example)
- Choose Cloud Server (Web & Domain universe)
- Click on the name of the relevant object in the displayed table
- Click on Fast Installer in the left side menu
- Click on MongoDB
- Click on the action menu ⋮ to the right of the relevant object in the displayed table
- Click on Configure
- Disable "local_only"
- Save the changes