Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide explains how to delete a folder or file using SSH, which can be particularly useful when it is not possible to delete a file using an FTP client or the FTP Manager.
SSH Command to Delete a Folder/File
Infomaniak disclaims any responsibility for data loss related to these instructions.
To delete a file or directory, you need to use the rm
command.
To delete the files FileName.php
and FileName.txt
, for example, execute the following command:
rm FileName.php FileName.txt
To delete a directory, you first need to remove its contents and then use the following command:
rmdir DirectoryName/
To delete all HTML files, execute the following command:
rm *.html
- Other Useful Commands (external link)
Infomaniak constantly improves its products and customer service. Every time you share a suggestion regarding any of the services through support, social media, or the web, Infomaniak discusses it during the relevant service meeting. Your needs determine its priorities and contribute to continuously enhancing its services.
Give feedback on...
- Domain names: French / English / German / Italian / Spanish
- Web hosting: French / English / German / Italian / Spanish
- Mail & Mail Interface Service: French / English / German / Italian / Spanish
- kDrive: French / English / German / Italian / Spanish
- kMeet: click here
- Cloud Servers: French / English / German / Italian / Spanish
- Jelastic Cloud: French / English / German / Italian / Spanish
- Newsletter: French / English / German / Italian / Spanish
- SSL Certificates: French / English / German / Italian / Spanish
- Housing & Datacenter: French / English / German / Italian / Spanish
- Audio Streaming: French / English / German / Italian / Spanish
- Video Streaming: French / English / German / Italian / Spanish
- VOD/AOD: French / English / German / Italian / Spanish
- Synology: French / English / German / Italian / Spanish
- Swiss Backup: French / English / German / Italian / Spanish
- Guest Manager: French / English / German / Italian / Spanish
- Swiss Transfer: French / English / German / Italian / Spanish
- Public Cloud: French / English / German / Italian / Spanish
Infomaniak Support is also available to you via email, chat, or phone if needed.
This guide explains how to enable compression for css, html, json, xml etc. resources on the Web Hosting of your choice.
This will reduce the size of the resources loaded by your visitors, resulting in faster loading times for your web pages.
Compress files with Gzip
To enable compression with Gzip:
- 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 side menu).
- Choose Website (in the Web & Domain universe).
- Click on the name of the relevant item in the displayed table.
- Click on the Advanced settings button.
- Click on the APACHE tab.
- Enable the File Compression option.
- Click the blue Save button.
The .htaccess and .user.ini files will be automatically updated with the necessary directives. As a security measure, a backup copy of these two files is made with each change. Any modification may take several minutes to take effect.
Test compression
You can easily test the compression of your pages using tools like:
This guide explains how to use PHPMailer with Infomaniak Web Hosting.
PHPMailer
PHPMailer is a library for sending emails from a website in HTML format. It supports attachments, SMTP authentication, and multipart/alternative for clients that cannot read HTML emails.
Using PHPMailer
To use PHPMailer, you need to install it manually:
- Download the PHPMailer library: https://github.com/PHPMailer/PHPMailer
- Copy the files to a directory on your website via FTP
- Link your script to PHPMailer. Example:
require_once('path_to_modify/class.phpmailer.php');
Fixing a Sender Mismatch Error
In the SMTP (Simple Mail Transfer Protocol) protocol, the "From" header specifies the sender's email address. This is the address that will appear in the "From" field of the message received by the recipient.
In PHPMailer, the 'setFrom' method is used to set the sender's email address, while the 'From' header is used to specify the same address when sending the message. The 'setFrom' method also sets the 'Reply-To' field of the email.
The error Sender mismatch SMTP code: 550 Additional SMTP info: 5.7.1
occurs when the email address specified in the 'setFrom' field does not match the email address specified in the 'From' header when sending the message. To avoid this error, you need to replace the 'setFrom' field with 'From' when configuring PHPMailer:
- Instead of using the 'setFrom' method to set the sender's email address, use the 'From' property of the PHPMailer object. For example:
$mail = new PHPMailer();
$mail->From = 'sender@example.com'; - Ensure that the value specified in the 'From' property exactly matches the email address used in the 'setFrom' field. For example, if you use 'setFrom' with a sender name like this:
$mail->setFrom('sender@example.com', 'Sender Name');then make sure that the value of 'From' is also set with the sender name:
$mail->From = 'sender@example.com';
$mail->FromName = 'Sender Name';
After that, continue configuring and sending the email as usual.
Learn More
- Authenticated Mail (SMTP) from a Website
- Unauthenticated Mail via PHP mail()
- Manually Configure Your Emails, Contacts, and Calendars on Your Devices
This guide explains how to:
- copy and migrate a WordPress site from a competitor's host to Infomaniak
- modify the domain name of a WordPress site
- back up an entire WordPress site
Preamble
- Depending on the context, instead of transferring WordPress, you can also simply:
- change the site address (the associated domain name) very easily if you use WordPress Infomaniak (WordPress installed via WordPress & Apps in the Infomaniak Manager)
- Duplicate a WordPress site in order to work simultaneously in a development environment, follow the Infomaniak blog article and the FAQ on this subject
Transfer a WordPress Site
with the All-in-One WP Migration extension
- read this guide (requires installing a new blank WordPress (e.g., via the Infomaniak automatic installer) to import the old site onto)
with the Duplicator extension
- read this guide (requires connecting to the hosting via FTP to send a .zip archive and a PHP file to reinstall the old site)
⚠️ For additional help contact a partner or fill out a request for proposal — also read the role of the host
This guide details the Infomaniak Cloud Server offer that allows you to create multiple hostings (the "FTP spaces" for which you create your FTP/SSH accounts) on which you add sites (the "Apache vhosts" for the indicated domain), and the Infomaniak VPS offer intended for different use.
Breaking Free from Shared Hosting Limits
With a managed Cloud Server, you can distribute your sites across your hostings as you wish. You can configure them by specifying the root directory and certain information such as memory_limit
and max_execution_time
beyond the limits imposed by a shared environment.
Web tools are available such as cronjobs, Site Creator, WordPress (which allows easy installation and use of the WordPress tool), or access and error logs. It is entirely possible to add a specific Apache module or install a caching system.
Cloud Server or VPS?
Managed (Cloud Server)
Infomaniak manages the software part of the servers under FastCGI and PHP-FPM without you being able to freely configure the server (no custom installation, for example). Only specific programs can be installed.
Unmanaged (VPS)
Infomaniak takes care of the hardware and installs the chosen version of Linux or Windows at the order. No software intervention. The server is under "your responsibility". You can restart the server via the Infomaniak Manager and a snapshot system is available (except VPS Lite).
If you hesitate to take a server and you mainly plan to have significant video content, you can combine shared hosting with a VOD space. This solves overload issues on a site since it allows you to separate audiovisual content from your shared hosting and thus have a video storage space that easily supports significant load increases. You will also have detailed statistics on the viewing of your videos.
Switching from one to the other...
To migrate from a Cloud Server to a VPS, or vice versa, there is no "turnkey" solution. For this type of migration, you need to cancel the product that is no longer desired and then order the product you need instead. Infomaniak refunds on request any new server purchase if the cancellation occurs less than 30 days after the order.
This guide explains how to transfer a shared web hosting to a Managed Cloud Server by retrieving all its data, websites, databases, etc.
To transfer a web hosting from one Cloud Server to another Cloud Server, please follow this guide.
To transfer a web hosting from a Cloud Server to a shared web hosting, please follow this guide; please note that this is an operation you will have to perform manually.
Preamble
- Database names and user names 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" (learn more)
- The IP addresses of the sites will change except for dedicated IPs
- There will be a service interruption during the migration process
1. Order a Cloud Server
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Choose Cloud Server (Web & Domain universe)
- Choose a managed Cloud Server and follow the wizard to complete the order
2. Migrate the hosting to the Cloud Server
Once the Cloud Server is operational:
- 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 Hosting (Web & Domain universe)
- Click directly on the name of the relevant object in the displayed table
- Click on the Manage button
- Click on the Modify offer
- Select the free transfer offer
- Select the Cloud Server to which you want to migrate your hosting
- Click on Next at the bottom and proceed to the end of the procedure
- Wait for the hosting migration to complete
This guide explains how to activate a CDN to optimize an Infomaniak Web Hosting.
What is a CDN?
CDN stands for "Content Delivery Network" in English, which translates to "Red de DistribuciĂłn de Contenido" in Spanish and "Content Delivery Network" in Italian. A CDN stores a copy of your site's content (images, videos, CSS/JS files) on multiple servers geographically dispersed. When a user accesses your site, the CDN provides this content from the server closest to their location, thereby reducing loading times.
Advantages of a CDN
- Improved loading speed: your site loads faster for visitors, which can reduce bounce rates and improve user experience.
- Reduced load on your origin server: by distributing content, the CDN lightens the load on your main server, improving its performance and availability.
- Increased security: some CDNs offer security features such as protection against DDoS attacks and data security.
Setting up a CDN
To use a CDN, you will generally need to make adjustments to your domain name configuration, specifically at the DNS records level. This will redirect your site's traffic to the CDN's network of servers. So in general:
- Create an account on the CDN's website of your choice and add your site.
- Modify the DNS zone of your domain name according to the instructions provided by the CDN.
- Test your site to ensure that the CDN is working correctly.
Cloudflare
Cloudflare CDN optimizes the performance and security of a website. It is a reverse proxy, which means that once your site starts using CloudFlare, the traffic it receives is routed through CloudFlare's network. Additionally, Cloudflare provides the following features:
- Caching of a site's static content
- Minification of HTML, CSS, and Javascript code
- Basic DDoS protection
- etc.
To set up Cloudflare:
- If necessary, create an account with Cloudflare: https://www.cloudflare.com/sign-up
- Add the domain name of the site in question.
- Transfer all the DNS zone records of the domain in question to Cloudflare (A, MX, TXT, NS, etc.).
- In the Infomaniak Manager, modify the DNS zone of the domain in question with the DNS servers indicated by Cloudflare.
It may take up to 48 hours for the new DNS to take effect.
Note: mod_cloudflare is enabled by default on all our paid Web Hosting plans.
Amazon CloudFront
If you are already using AWS services, CloudFront is easy to set up. Create a distribution, configure the settings, and link it to your site.
Fastly
Sign up for Fastly, configure your service by adding your site, and define cache settings. Fastly offers advanced configuration options.
This guide is about Django , an open-source web development framework in Python.
Installing Django
It is only possible to install Django on VPS Cloud / VPS Lite.
Discover the different Infomaniak web hosting.
This guide explains how to prevent cyberattacks and how to avoid a hack on the website you manage.
WordPress Users: read this dedicated article.
The Role of the Host
Infomaniak’s role is to provide quality hosting, which makes it essential to respond quickly to various attacks that any internet entity might face. Infomaniak takes all possible precautions against hacking, especially by keeping the different versions of the technologies used up to date.
In the case of a confirmed hack, if the source can be traced and the machine was compromised due to a security flaw under Infomaniak's responsibility, or if server integrity is at stake, Infomaniak will handle the situation.
The Role of the Website Owner and Webmaster
If your site’s hack is due to your own responsibility (an outdated script, an unpatched security update, etc.), Infomaniak will contact you to inform you of an issue that needs to be resolved quickly. Organisations like Saferinternet may also suspend the domain name, which will disable both the website and email.
Infomaniak cannot counter exploits related to bugs in your PHP code or others. If the hack goes undetected, you will generally notice it soon by suspicious elements on your pages or by receiving numerous error emails.
It is therefore your responsibility to maintain your website over time and not let it "die" in a corner; consider hiring a webmaster if necessary.
No time to manage your services? Launch a free tender to find an Infomaniak partner who will take care of everything.
Infomaniak's Recommendations
- Regularly update all your web applications (WordPress, Joomla, Drupal, ownCloud, etc.).
- Keep your site’s PHP version on Infomaniak servers up to date.
- Keep your site updated by migrating to new offers when prompted.
- ‍Add a protection system to your contact forms (captcha, etc.) and any "tell-a-friend" tools.
- Regularly perform a virus scan on the hosting.
- Monitor the vulnerability detection tool.
- Remove anything you did not develop yourself and that has not received updates/fixes for several months.
- Regularly back up your site (refer to this other guide if you use WordPress) when everything is working well and store it in a safe place (since automatic backups are only kept for a few days, which may not be long enough if you discover an intrusion later).
- Visit ibarry.ch.
If an Issue Has Occurred...
- Change the passwords for your web applications, your FTP accounts, and your databases, ensuring you check for any viruses on your computer first.
- Restore a backup but immediately update everything that can be updated once the restoration is complete.