Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide explains how to create a homepage on your Infomaniak website using the welcome page creation tool, a simplified aid for quickly and easily creating content.
Prerequisites
- have an Infomaniak web hosting account (including Starter, the basic web page to activate if necessary)
Create a Welcome Page
To access the creation tool:
- log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- click on the ‍ icon in the top right corner of the interface (or navigate using the left sidebar menu, for example)
- choose Hosting (the Web & Domain universe)
- click on the name of the relevant object in the displayed table
- click on My Sites in the left sidebar menu
- click on Page Editor in the left sidebar menu
- select/verify the domain name of the site where you want to install the web page
- click on Create a Homepage
You can then choose a theme, set the text visible to your visitors, insert an image in the body of the page, 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 the blue button at the bottom of the page to save and publish your changes.
Note that the tool can be used alongside FTP management of your web hosting if necessary.
Disable and Delete the Welcome Page
To clear the homepage that has been automatically placed at the root of your website's structure:
- log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- click on the ‍ icon in the top right corner of the interface (or navigate using the left sidebar menu, for example)
- choose Hosting (the Web & Domain universe)
- click on the name of the relevant object in the displayed table
- click on My Sites in the left sidebar menu
- click on Page Editor in the left sidebar menu
You will be able to delete the welcome page using the recycle bin; this will permanently delete the content of the welcome page!
This guide details sending authenticated emails from a website hosted by Infomaniak using SMTP configuration; the setup of an authenticated SMTP server is presented for the main CMS.
Using authenticated SMTP to send emails from your applications offers advantages in terms of security, reliability, error management, compatibility with third-party servers, and traceability compared to using unauthenticated PHP mail.
Prerequisites
- own a mailing service; you have the option to use the Mail Service offered by Infomaniak or any other mailing service of your choice
Example of SMTP Configuration
If you have an email address associated with your website domain (email@domain-site.xyz e.g.), enter its details to use it for sending from the web server via SMTP:
on WordPress
- log in to the WordPress admin dashboard
- install an SMTP plugin (WP Mail SMTP works)
- configure the plugin, e.g.:
‍
From then on, an email sent from a contact form present on the site (default Divi form e.g.) will be sent via SMTP. To verify, simply check the headers of a message received this way, especially the x-mailer
line which may mention, for example, WPMailSMTP/Mailer/smtp
instead of PHPMailer
.
Note: the x-mailer can be any indication not necessarily representative of the actual sending method
on Prestashop
- log in to the Prestashop admin dashboard
- go to Advanced Parameters then Email
- configure sending via SMTP:
Then check (to avoid an error like Could not instantiate mail function
or sender mismatch
) that the address you configured in these advanced settings matches the address used by Prestashop when sending emails. To do this:
- log in to the Prestashop admin dashboard
- go to Store Settings
- click on Contact in the left sidebar
- in the Contacts tab, verify that the email address mentioned is the same as the one configured earlier
- edit email addresses if necessary
- click on the Stores tab
- verify (and correct if necessary) that the mentioned email address is the same as the one configured earlier
on Joomla
- log in to the Joomla admin dashboard
- click on System in the left sidebar
- click on Global Configuration
- click on the Server tab
- configure sending via the SMTP sending method:
This guide is relevant to you if you encounter the The web host does not exist error when visiting a website hosted on Infomaniak Web Hosting.
Origin
Most of the time, this occurs because your domain name is not correctly linked to your site (your domain likely points to the wrong IP address).
Solution
To get your site back online, check your domain name's DNS zone, especially its A records, and correct them as necessary by specifying the IP address of your hosting.
For this, the easiest way is to use our DNS Diagnostic tool to automatically fix the pointing, first by grouping products into the same organization if necessary.
This guide explains how to update a Let's Encrypt SSL certificate following the addition or removal of aliases to a website hosted by Infomaniak.
Update a Let's Encrypt Certificate
To access the certificate management :
- 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 corner of the interface (or navigate through the left sidebar menu, for example)
- Choose SSL Certificates (universe Web & Domain)
- Click on the name of the relevant object in the displayed table
- Click on the Manage button
- Click on Update
- Tick the boxes of the domains to include in the certificate after the update
- Click on the blue Update button
This guide explains how to report a phishing attempt you may have fallen victim to.
Phishing, Fishing, Scamming...
Phishing is a fraud and scam attempt aimed at obtaining sensitive information in a fraudulent manner.
Typically, the victim receives a message in their email that appears to be from Infomaniak, their bank, or a trusted organization, indicating that a problem has occurred with their account.
The purpose of this identity theft is usually to voluntarily direct the user to a page and communicate private information that will then be exploited for various purposes, mainly financial.
Prerequisites
- check that the spam filter is active
- for added security, activate the external mail tag
How to Report a Phishing Email
To do this:
- log in to Infomaniak Mail (mail.infomaniak.com) from a web browser like Brave or Firefox
- open the phishing message and click on the action menu â‹® on the right
- from the menu that appears, select Report as phishing:
- confirm to send for processing
- delete the email
Once you have clicked on Report as phishing, an email is automatically sent to Infomaniak with all the necessary information for handling the scam report.
In case of a more serious problem (when the message is directly addressed to you by an acquaintance or a contact without it being a large-scale sending) it is recommended to reach out to an organization like www.report.ncsc.admin.ch.
This guide explains how to modify the PHP version directly via command line when running PHP scripts using PHP CLI (Command Line Interface). This can be useful when you need to temporarily modify certain settings for a specific script or PHP session.
Modify the PHP Version Used in CLI
To change the PHP version used in command line (CLI) via SSH:
- Connect via SSH (help)
- Create a
.profile
file if it doesn't exist: touch ~/.profile - Edit the
.profile
file: nano ~/.profile - Add this code inside the file to choose the desired PHP version: export PATH=/opt/php7.4/bin:$PATH
- Load the
.profile
file: source ~/.profile - Verify the PHP version: php -v
Interactive Mode
The .profile
file mentioned above is only loaded when the user interface is used. In SSH (login mode), it's the .bash_profile
file that is sourced. And in interactive mode (non-login), it's the .bashrc
file that is sourced.
Some server deployment scripts open sessions in interactive mode (non-login), and environment variables are not loaded into the PATH even if the SSH session is correctly configured.
In this case, you need to load the PHP version into the .bashrc
file (export PATH="/opt/php7.4/bin:$PATH"
), and source the .bashrc
file in the .bash_profile
and .profile
files (. ~/.bashrc
).
After following these steps, the PHP version you specified should be loaded into your shell environment whenever you open a new session. This will allow you to run scripts using this PHP version in command line (CLI).
Mention of PHP Version
If you only use the mention php
, the release preceding the one that was already in place will be installed (latest version -1): if the latest installed version is 8.1, it's 8.0 that will be used with "php". It's preferable to use the mention php-7.0
, php-7.1
, etc. so that the version doesn't change with each update.
This guide explains why it is recommended to abandon the use of the mysql_num_rows()
function in MySQL, which simply returns the number of rows in a result.
The disadvantage of this function is that it is very heavy for the server since it is a loop that iterates through each row to count them.
For example:
$SQLstr = "SELECT * FROM comments WHERE display=1";
$r = mysql_query($SQLstr);
$num = mysql_num_rows($r);
MySQL has a count()
function that handles this and is much less heavy. Use this:
$SQLstr = "SELECT count(*) FROM comments WHERE display=1"
$r = mysql_query($SQLstr);
$result = mysql_fetch_row($r);
$num = $result[0];
or
$SQLstr = "SELECT count(*) as total FROM comments WHERE display=1"
$r = mysql_query($SQLstr);
$result = mysql_fetch_array($r);
$num = $result['total'];
This guide concerns the task scheduler, a feature that allows you to run scripts on Web Hosting at the time and frequency of your choice to automate repetitive tasks.
Also, read this guide (click here) about crontab (crons via SSH) on Managed Cloud Server.
Accessing the Task Scheduler (webcron)
To access the task scheduling tool:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Edge
- Click on the ‍ icon in the top right corner of the interface (or navigate through the left sidebar menu, for example)
- Choose Hosting (Web & Domain universe)
- Click on the name of the relevant object in the displayed table
- Click on Advanced Tools in the left sidebar menu
- Click on Task Scheduler in the left sidebar menu
- Existing crons are displayed on the page; read below
Add a Task to Execute
Click on the blue button at point 7 above to create a scheduled task, specifying whether the script URL to be executed is password-protected, if you want to receive notifications, etc.
Don't forget to activate the task using the toggle button.
Minimum Intervals
You can schedule the cron at a minimum interval of:
- 15 minutes with shared hosting
- 1 minute on Managed Cloud Server
This guide explains the "Options +Indexes" directive, which facilitates navigation for visitors and allows for more advanced customization of how files are displayed.
For example, it will be possible to list the contents of a directory that does not have an index (i.e., a folder without a specific "home page").
Why Use This Directive?
Without this directive, a visitor may encounter an error message like:
Forbidden access!
You do not have permission to access the requested directory.
Either there is no index document or the directory is protected.
If you think this is a server error, please contact the site administrator.
Error 403
Implications
It is important to understand the implications of this option and ensure that directories containing sensitive information are properly protected upstream.
Displaying Files and Directories
One of the main advantages of enabling directory indexing is that visitors can see all the files and subdirectories in a given directory, even if they do not know the exact name of the file they are looking for. This can be particularly useful for file-sharing websites or download sites.
Easy Navigation
Directory indexing also makes navigation easier for visitors who are not familiar with the site's file structure. They can simply browse through subdirectories to find the file or folder they need.
Customization
The "Options +Indexes" directive can be customized to display additional information, such as file size and modification date, or to hide specific files or directories. This can be particularly useful for websites that need to control how files are displayed to visitors.
How to List the Contents of a Web Folder
To list the items in a folder without a specific index:
- Create a .htaccess file in the relevant folder.
- Add the following command:
Options +Indexes
It is important to note that this solution will only work if you have no indexes in the folder in question. You need to remove index files like index.php, index.html, index.htm, etc., as well as any welcome.php file, if present.
Customizing the Display
Here is an example of code to customize the appearance of the file list generated by Apache:
Options +Indexes
IndexOptions FancyIndexing
IndexOptions FoldersFirst IgnoreCase NameWidth=* DescriptionWidth=* Charset=UTF-8
HeaderName header.html
ReadmeName footer.html
In this example, we have enabled the "Indexes" option, added the "FancyIndexing" option for a more aesthetic look, specified the file sorting order, set the column widths for file names and descriptions, and specified the file names to use for the header and footer of the file list.
This guide explains how to install a theme or extension from Elegant Themes for a WordPress site already installed via WordPress & Apps (Infomaniak).
Prerequisites
- Your WordPress site must be installed using Infomaniak WordPress tools to use these themes and extensions
- Infomaniak only allows you to install for free with 1-click the theme (Divi, Extra, etc.) and the extensions (Monarch, Bloom, etc.) of your choice and benefit from official updates; to benefit from their customer service you must subscribe to an Elegant Themes plan.
Using an Elegant Themes theme
To do this:
- 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 sidebar menu, for example)
- Select Website (Web & Domain universe)
- Click on the name of the relevant object in the displayed table
- Click on WordPress & Apps in the left sidebar menu
- Click on the Configure button for the site to manage
- Under Site Theme, click the Select button and choose the desired theme
- Click the Save button
Using an Elegant Themes extension
Follow this guide to install Monarch, Bloom, or Divi Builder.