Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
This guide explains how to customize the limits of a site hosted on a Web Hosting or a Cloud Server.
Unlock or adjust the limits of a site
To access the website management:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product concerned:
- Click on Manage under Advanced settings:
- Click on the PHP / Apache tab.
You can, in particular...
- ... unlock for 60 minutes the memory limit (
memory_limit
= 1280 MB) and the maximum execution time of scripts (max_execution_time
= 60 minutes):- This unlock is possible up to 10 times per year.
- ... customize the limits of:
max_execution_time
(in seconds)memory_limit
(in MB)post_max_size
&upload_max_filesize
(maximum file size for upload, in MB)- Cloud Server only:
Max children
(see this other guide) - Cloud Server only:
Max input time
Don't forget to save the changes at the bottom of the page.
Maximum values by type of accommodation
Limits | Shared | Cloud Server | CLI (Cloud Server only) |
---|---|---|---|
max_execution_time | 300 s | 3600 s | 0 (unlimited) s max |
memory_limit | 1280 MB | 2048 MB max | 512 MB max |
post_max_size + upload_max_filesize | 9223372036854775807 MB max | 9223372036854775807 MB max | 48 Mo max |
max_children | 20 max | 20 (by default, modifiable) | |
simultaneous connections per IP | 30 max | 30 (by default, modifiable) | |
max_input_time | 0 (unlimited) | 0 (by default, modifiable) | 0 (unlimited) |
files (inodes) | no limit on the number of files per hosting |
This guide explains how to change the PHP version available for the sites on your Web Hosting Infomaniak.
Preamble
- It is possible to switch from an old and potentially vulnerable PHP version to a recent one, but you will no longer be able to revert to this vulnerable version for security reasons.
- The change is effective immediately and permanently.
- Refer to this other guide if you are looking for information about configuring the PHP version used in SSH.
Change the PHP version used for a website
It is possible to easily modify the PHP version used for an entire website:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on More information.
- Click on Modify:
- Select the desired PHP version:
- Click on Save at the bottom of the page to save the change.
It may be necessary to update your hosting in advance to access the very latest versions of PHP offered by Infomaniak.
This guide explains how to change the PHP version directly from the command line when you run PHP scripts using PHP CLI (Command Line Interface) on an Web Hosting Infomaniak.
Preamble
- This can be useful when you need to temporarily modify certain parameters for a specific script or for a PHP session.
- If you use only the mention
php
below, it is the release preceding the one already in place that will be installed (last version -1): if the last installed version is 8.1, it is 8.0 that will be used with "php
". It is preferable to use the mentionphp7.0
,php7.1
, etc. so that the version does not change over time with updates. - Refer to this other guide if you are looking for information about configuring the PHP version set on the Infomaniak Manager.
Change the PHP version used in CLI
It is possible to easily modify the PHP version used in the command line (CLI) via SSH:
- Log in to the server via SSH (need help?).
Create a
.profile
file if it does not exist:touch ~/.profile
Edit the
.profile
file:nano ~/.profile
Add this code inside the file to select the desired PHP version:
export PATH=/opt/php7.4/bin:$PATH
Load the
.profile
file:source ~/.profile
Check 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 is the .bash_profile
file that is sourced. And in interactive mode (non-login), it is the .bashrc
file that is sourced.
Some server deployment scripts open sessions in interactive (non-login) mode and the 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 in 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 version of PHP you specified should be loaded into your shell environment every time you open a new session. This will allow you to run scripts using this version of PHP from the command line (CLI).
This guide relates to the execution of scripts launched via SSH on various types of machines.
No time limit
There is no predefined time limit for the execution of scripts launched via SSH, meaning that the script can run as long as necessary. However, if the SSH session ends, the script will also be interrupted.
It is possible to run scripts in the background to avoid this issue. In this case, the script will continue to run even if the SSH session is interrupted.
Other resources may be limited either by the machine's capacity or by the configuration (PHP scripts limited to 512 MB of memory, for example).
It is possible to change these limits on Serveur Cloud machines, but not on hébergements mutualisés.
This guide explains the differences between the web hosting offers to help you choose the best solution according to your computer needs.
If you are looking to host your email, refer to this other guide.
Web Hosting Starter
The free web hosting
The Starter Web hosting is offered for free with each domain name registered with Infomaniak. It provides 10 MB of disk space to create a site (basic pages in HTML language only - no PHP, no database) even without particular knowledge thanks to the Welcome Page tool.
- Register or transfer a domain name with Infomaniak
- Learn more about the benefits included with a domain name
Shared Web Hosting
The flagship offer to create your sites
These web hostings are shared offers (the websites will be hosted on servers whose resources are shared with other customers). To ensure the reliability of these shared services, Infomaniak servers use on average only 40% of the CPU power and are equipped with professional, latest generation SSD disks.
Web hosting offers a minimum of 250 GB of disk space and allows you to manage multiple websites with multiple domain names. This offer includes all the technologies usually used to create professional sites: PHP, MySQL, FTP and SSH access, SSL certificates and easy installation of WordPress or common CMS, etc. It is also possible to add a Node.js site and/or Site Creator.
Cloud Server
Professional Web hosting
With a Cloud Server, the resources allocated to you are not shared with other clients and you can customize the hardware and software configuration of your server according to your needs. A Cloud Server also allows you to use components that are not available on shared web hosting (Node.js
, mongoDB
, Sol
, FFMPEG
, etc.).
- A Cloud Server allows you to easily manage your server via the same administration interface as Web hosting - you manage the sites in the same way.
- A VPS allows you to manage your server completely autonomously with the version of Windows or the Linux distribution of your choice (
Debian
,Ubuntu
,openSUSE
, ...) - solid technical skills are required to use a VPS, including VPS Lite.
Public Cloud (and Kubernetes Service)
Open, proven, and secure IaaS solution
For Infomaniak, it is the infrastructure that drives kDrive, Swiss Backup and the Webmail, services used by several million users. But Public Cloud is accessible to everyone and provides the resources you need to develop your projects.
With customized and tailored offers, you will have no trouble managing your development budget. No setup fees. No minimum amount. Cancelable at any time. You only pay for the resources actually used with Public Cloud at the end of each month, same for Kubernetes Service.
Jelastic Cloud
Web hosting tailored to your chosen technologies
Jelastic Cloud allows you to create custom development environments with the technologies of your choice (PHP
, Java
, Docker
, Ruby
, etc.). It is a flexible cloud offering:
- Horizontal and vertical scaling of resources.
- Payment based on actual resource consumption.
- Easy customization of your infrastructure (redundancy, IP, SSL, load balancing, etc.).
This guide explains how to use PHP environment variables with Web Hosting that runs on php-fpm
.
Preamble
- PHP environment variables (
REDIRECT_
) are system variables used to store information about HTTP requests and redirects. - They are generally used on web servers to store details about previous requests or redirections that have been performed.
- The prefix "
REDIRECT_
" is often added to environment variables to indicate that they are related to specific redirections performed by the server. - These variables can contain information such as previous URLs, HTTP methods, or other data related to the client's navigation on the web server.
Using environment variables
To use PHP environment variables:
- Define the PHP environment variables in a
.htaccess
file:SetEnv EXAMPLEVARIABLE hello
- In your PHP file, the name of the variable to call must be prefixed with
REDIRECT_
:<?php getenv('REDIRECT_EXAMPLEVARIABLE');
In this example, the displayed result will be hello.
Going further with environment variables
It is possible to configure environment variables directly from the Manager for your entire website:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the concerned product:
- Click on Manage under Advanced settings:
- Click on the PHP / Apache tab.
- Click on the chevron to expand the Environment Variables section.
- Click on the icon Add.
- Enter the variable and its value.
- Click on the button to save:
This guide explains how to transfer to Infomaniak data (Web, Mail, Domain, and even Cloud) currently hosted elsewhere. You remain the obvious owner of your data, without loss or interruption!
Don't have time to migrate your services? Launch a free tender to find an Infomaniak partner who will take care of everything.
Specific guides
Click on the link corresponding to your current host:
- Swisscom: complete guide to migrate Web, Mail and domain name data
Guides for any other hoster
To retrieve any other data, follow the procedures below:
- Import Web data (all PHP, HTML, etc. sites.)
- For WordPress specifically, refer to this other guide…
- For WordPress specifically, refer to this other guide…
- Copy the Mail data (addresses and mailbox content, etc.) to kSuite or a simple Mail Service
- Transfer the domain name (domain management, DNS zone, etc.)
To avoid interrupting your website and emails and to avoid losing content while importing your existing data, migrate your services in the specified order.
You can also bring other types of data to the Infomaniak servers:
- Dropbox, Google Drive, etc. content: refer to this other guide
- Data on NAS Synology or QNAP: refer to this other guide
Why join Infomaniak?
By consolidating your domain names, websites, and email addresses with Infomaniak, you simplify the management of your invoices and services. Moreover, your domains will automatically link with your website and email address. You will therefore not need to manually configure the DNS of your domains with another registrar.
Learn more about Infomaniak
This guide details the security measures implemented for the Infomaniak email offers to detect abusive and abnormal use of an email address.
Preamble
- Upon written, justified and authenticated request, it is possible to modify these security rules for a specific paid email address.
- For sending emails to a large number of recipients, the Newsletter tool is the most suitable.
- These measures protect you from malicious use of your computer or your account.
Daily sending limits
The number of outgoing emails per 24 hours is limited to:
- my kSuite = 500 | my kSuite+ = 1440
- kSuite Standard 1 max. user = 100 | kSuite Standard 2 min. users = 1440 | kSuite Pro = 1440 | kSuite Entreprise = 1440
- Service Mail Starter = 100 | Service Mail 5 addresses min. = 1440
- Web Hosting (PHP Mail() function - unauthenticated sends) = 50 | Web Hosting (authenticated sends) = 1440
1 message sent to 2, 42 or 99 people in CC/BCC counts as respectively 2, 42 and 99 messages.
Other email limits
This guide explains how to enable PHP-FPM status
to, for example, debug a slow site at the PHP level.
Preamble
PHP-FPM status
allows you to monitor in real-time the scripts that are executed as well as their execution time.- This operation is only possible on Serveur Cloud.
Enable PHP-FPM status
To activate PHP-FPM
on a site, contact Infomaniak support from an email address listed on your user account to authenticate your request.
In your request, please specify the source IP address that should be authorized.
Once PHP-FPM status
is activated, the following URL links will display the necessary information:
- https://domain.xyz/fpm-status?json&full
- https://domain.xyz/fpm-status?html&full
- https://domain.xyz/fpm-status?xml&full
Warning: if your site contains rewrite rules including the path /fpm-status
, you will likely need to make an exception for it.
This guide explains why it is dangerous to use a version of PHP that is no longer officially maintained and how to use a more recent version of PHP with a website hosted by Infomaniak.
Is an outdated version of PHP dangerous?
When you use a (soon to be) vulnerable version of PHP on one or more of your sites, a warning message appears in the dashboard of the affected hosting.
The PHP language evolves regularly and when you use a version of PHP that is no longer maintained, you expose your website to security risks. Malicious individuals could, for example, exploit known security vulnerabilities to gain access to your site and modify its content. It is therefore strongly recommended to always use a recent version of PHP.
3 situations are possible:
- the PHP version is fully supported: no action is required
- the PHP version only receives security updates: it is recommended to use a more recent version of PHP
- the PHP version is no longer maintained: it is strongly recommended to use a more recent version of PHP
Learn more: http://php.net/supported-versions.php
Using a more recent version
The latest versions of PHP are more efficient and speed up the loading of websites.
Before using a more recent version of PHP, it is necessary to take the following precautions:
- if your site works with a CMS or a web application (WordPress, Joomla, Drupal, etc.), it is recommended to check that its current version is compatible with the version of PHP you plan to use
- if your site was developed manually, it is necessary to consult the official PHP documentation to learn about modified functions and potential incompatibilities
If you encounter problems after migrating a site to a more recent version of PHP, it may be possible to revert to a previous version of PHP if it is still supported.
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
This guide explains how to enable support for certain file types (e.g., .inc
) by PHP on an Infomaniak Web hosting so that they are processed in the same way as a .php
file.
Preamble
- Previously, you had to add the following line in a
.htaccess
file:AddType application/x-httpd-php .inc
- This prevented the file's content from being displayed as text instead of being correctly interpreted by PHP when accessed via a browser.
- Now you can manage file extensions via the FPM Extensions field in your hosting Manager.
Manage extensions recognized by PHP
To add support for a specific file type:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product.
- Click on Manage under Advanced Settings:
- Edit the FPM Extensions field to make the desired addition:
Do not forget to save the changes at the bottom of the page.
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
This guide details the offer of Serveur Cloud which allows you to create several hostings (FTP "spaces" for which you create your FTP/SSH accounts) on which you add sites (Apache "vhosts" for the indicated domain), and the VPS offer intended for a different use.
Breaking free from shared hosting limitations
With a managed Cloud Server, you can distribute your sites across your hosting environments as you wish. You can configure them by specifying the root directory as well as certain information such as the memory_limit
and the max_execution_time
beyond the limits imposed by a shared environment.
Web tools are available such as cronjobs, Site Creator, WordPress (which allows for the installation and use of the WordPress tool with ease) or access and error logs. It is quite possible to add a specific Apache module or to install a caching system.
Server Cloud or VPS?
Managed (Serveur Cloud)
Infomaniak manages the software part of the servers under FastCGI and PHP-FPM without allowing you to freely configure the server (for example, no custom installation). Only specific programs can be installed.
Unmanaged (VPS)
Infomaniak handles the hardware and installs the chosen version of Linux or Windows upon order. There is no software-level intervention. The server is under "your responsibility". You can restart the server via the Infomaniak Manager and a snapshot system is available (excluding VPS Lite).
If you are hesitant to take a Server and you mainly plan to have a large amount of video content, you can pair a shared hosting with a VOD space. This solves the problems of overload on a site since it allows you to separate the 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 at your disposal regarding the viewing of your videos.
Switching from one to the other...
To migrate a **Serveur Cloud** to a **VPS**, or vice versa, there is no "turnkey" solution. For this type of migration, you must cancel the product that is no longer desired and then order the product you need in its place. Infomaniak will refund upon request any purchase of a new server if the cancellation occurs within 30 days of the order.
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 asNo compatible key exchange algorithms found
orUnable 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');
This guide explains how to enable the following functions on Web Hosting (in italics, Cloud Server only):
proc_open
popen
exec()
shell_exec()
set_time_limit
passthru
system
These functions are disabled by default as they pose a significant security risk in case of a website hack. Only enable them if absolutely necessary (for a script or CMS such as ImageMagick, Typo3, CraftCMS, etc.).
Enable PHP functions
To access website management:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant product:
- Click on Manage under Advanced Settings:
- Click on the PHP / Apache tab.
- Click on the toggle switches On/Off as desired:
- Click on the Save button to confirm the changes.
This guide explains how to install applications, PHP extensions and technologies (non-exhaustive list below) in a few clicks on Serveur Cloud only.
Refer to this other guide if you are looking for information about additional Web Applications that can be installed on any type of hosting, including standard/shared offers.
Install (or uninstall) apps / PHP extensions…
To find the list of technologies and proceed with their installation:
- Click here to access the management of your Cloud Server on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the relevant Cloud Server.
- Click on PHP Extensions or on ‘Fast Installer’ in the left sidebar:
- Click on the action menu ⋮ to the right of the extension you wish to uninstall in the displayed table.
- Click on Uninstall.
- Otherwise, click on the blue button Install an extension to make your choice for a new installation:
Non-exhaustive list of available apps & extensions
AdvanceCOMP
BuildEssential
electron_dev
ExifTool
FFmpeg
↗ guideGhostscript
Gifsicle
GraphicsMagick
HAProxy
Imagemagick
↗ guideJpegoptim
libjpeg_turbo
libqrencode
libX11_xcb1
MidnightCommander
Memcached
↗ guidemongoDB
NVM Node Version Manager
OptiPNG
p7zip
PDFtk
PHP_APCu
PHP_CLI
↗ guidePHP_FPM
PHP_GnuPG
PHP_gRPC
PHP_igbinary
PHP_IonCube
↗ guidePHP_OPcache
PHP_PDF
PHP_PDO_ODBC
↗ guidePHP_Swoole
pip
Pngcrush
Pngquant
Redis
↗ guideRRDTool The Round Robin Database Tool
RubyCompass
systemd
↗ guidetesseract_ocr
varnish
↗ guidevirtualenv
WebP
xauth
xpdf
xvfb
ZSH
This guide shows how to modify the error_reporting()
directive on your website.
Enable error reporting
Specify the following 2 pieces of information in your .user.ini
file:
display_errors=on
error_reporting=E_ALL & ~E_NOTICE & ~E_STRICT
If your browser does not display any errors or warnings, then there are none.
Disable PHP error display
For WordPress, edit the file wp-config.php
and replace the line:
define('WP_DEBUG', false);
by:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
Otherwise, you can add the following code to the .user.ini
file:
display_errors=off
Thank you for entrusting Infomaniak with the hosting of your website.
Preamble
- A web hosting service is a storage space available on a computer, also called a "server," connected to the Internet and managed by a web host, Infomaniak.
- This storage space, made available to professionals and individuals, is used to install websites or other types of tools (CRM, extranet, intranet...) that need to be accessible via the Internet.
- These guides allow you to quickly use the essential functions of your new product, your web hosting, which can host multiple websites.
Where to start?
- Create a WordPress website
- Build the site with Site Creator
- Install a web application (ownCloud, Joomla, Typo3, Drupal, phpBB, Simple Machines Forum, Magento, Prestashop, …)
- Manage your FTP accounts/users
- Manage and publish files on your web hosting via FTP Manager
- Manage your MySQL databases
- Add a site or subdomain to your hosting (multi-sites/multi-domains)
- Link another domain name to an existing website (domain alias)
- Preview your site even if your domain name is not yet pointing to Infomaniak's servers
IMPORTANT: the domain name…
Web hosting, to be visible to the public on the Internet, must be associated with a domain name!
Is your domain name not managed by Infomaniak? Or is it in a different Organization than your web hosting? Then refer to this other guide to configure the DNS or the "A records" in order to link the domain name to your web hosting.
In case of a problem
To resolve an issue, please consult the Web Hosting knowledge base before contacting Infomaniak support.
Click here to share a review or suggestion about a Infomaniak product.
Jelastic Cloud Infomaniak is one of the most complete and flexible PaaS
solutions on the market.
Preamble
Node.js
= official name of the language/environment.NodeJS
= technical or simplified name in certain contexts (often for practical reasons, no real technical difference).
Supported languages
You can deploy applications in Java
, PHP
, Ruby
, Node.js
, Python
and Go
without having to adapt your code using Docker
, Kubernetes
, GIT
, SVN
or integrated extensions like Maven
, Ant
, Eclipse
, NetBeans
or IntelliJ IDEA
.
Supported SQL and NoSQL databases
MariaDB
, MongoDB
, MySQL
, Postgre
, Redis
, Neo4j
, Cassandra
, OrientDB
, PerconaDB
, CouchDB
, Couchbase
.
Supported application servers
Tomcat
, TomEE
, Jetty
, GlassFish
, Payara
, Apache PHP
, Apache Ruby
, Apache Python
, NGINX PHP
, NGINX Ruby
, NodeJS
, JBoss
, SmartFoxServer
, SpringBoot
, WildFly
, Golang
.
Supported load balancers
NGINX
, Apache Balancer
, HAProxy
, Varnish
.