Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Remote connection to an Oracle database is not available with shared hosting and servers.
However, you can install OCI8
for PHP on VPS Cloud / VPS Lite.
This guide concerns Django, an open-source web development framework in Python.
Django Installation
It is only possible to install Django on VPS Cloud / VPS Lite.
Discover the various web hostings of Infomaniak.
This guide explains how to migrate a shared web hosting to a Cloud Server by retrieving all its data, websites, databases, etc.
Preamble
- If you already have a **Serveur Cloud**, go straight to step 2 of this guide.
- To migrate a web hosting from one Server Cloud to another Server Cloud, refer to this other guide.
- To migrate a web hosting from a Server Cloud to a shared web hosting, refer to this other guide; note that this is a manual operation.
1. Order a Cloud Server
For this:
- Click here to access the management of Cloud Servers on the Infomaniak Manager (need help?).
- Click on Order, choose a Managed Cloud Server and follow the assistant to complete the order:
2. Migrate the hosting to the Cloud Server
Once the Cloud Server is up and running:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click on the action menu â‹® located to the right of the relevant item.
- Click on Change Offer:
- Select the free transfer offer.
- Select the Serveur Cloud to which to migrate your hosting:
‍
- Click on the Next button at the bottom of the page and complete the procedure entirely.‍
- Please wait during the hosting migration, a service interruption will be felt during the process.
- Note:
- The names of the databases and database users are retained.
- FTP accounts are retained with the same names, but the host server changes to an address of type
xxxx.ftp.infomaniak.com
. - The IP addresses of the sites will change except for dedicated IPs.
This guide explains how to view and download Apache logs from Web Hosting useful for correcting PHP scripts or certain programming errors.
Preamble
- Infomaniak keeps the last 500 error or access displays for a maximum retention period of 10 days.
- It is impossible to perform a previous search even upon request.
- You can also find these logs on the server via FTP in the
/ik-logs
folder.
Accessing the access and error logs
To display these logs:
- 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 Logs in the left sidebar:
- Click on Errors or Access to display the error log or access log.
- Click on Send by email to immediately receive all entries by email at your user address:
This guide explains how to order, link or remove a dedicated IP from a website.
Manage dedicated IPs on a hosting plan
Order one or several first dedicated IP addresses
To do this:
- 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 Web in the left sidebar.
- Click on Dedicated IPs in the left sidebar.
- Click on the button to order one or more IP addresses:
Order one or several additional dedicated IP addresses
To do this:
- 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 Web in the left sidebar.
- Click on Dedicated IPs in the left sidebar.
- Click on Order :
Associate a dedicated IP address with a website on a hosting plan
Once the IP has been ordered and paid for, familiarize yourself with the prerequisites below, as switching to a dedicated IP address for a website may cause a temporary interruption, especially in the presence of a certificat SSL Let’s Encrypt. To limit the impact:
- Start by reducing the TTL of the DNS records
A
andAAAA
(for@
andwww
) to 5 minutes. - Wait for the previous TTL duration before making any changes.
- The change below should be made during a period of low traffic to limit the inconvenience caused by the inevitable interruption.
- At the end of the procedure, you will need to wait for the new TTL to propagate the new configuration and for the SSL certificate to be regenerated, then check the accessibility of the site in HTTPS to ensure that everything is working correctly.
To switch to a dedicated IP address:
- 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 Web in the left sidebar.
- Click on Dedicated IPs in the left sidebar.
- Click on the button to dedicate the IP to a site on your hosting:
- Select the site to assign the new IP address to.
- Check the box after reviewing the warnings.
- Click on the Associate button:
Remove a dedicated IP address from a website
Once the IP is installed, to uninstall it:
- 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 Web in the left sidebar.
- Click on Dedicated IPs in the left sidebar.
- Click on the action menu â‹® located to the right of the relevant item.
- Choose Unbind:
- Take note of the warnings and confirm the deletion to complete the IP uninstallation procedure.
Refer to this other guide if you are looking for information on potential issues related to your IP.
This guide provides basic instructions for creating and using a .htaccess
and .user.ini
file with an Web Hosting Infomaniak.
Preamble
- A
.htaccess
file is placed at the root of a website and allows you to configure the Apache HTTP server.- As a decentralized configuration file, it offers significant flexibility to adjust the server's behavior according to the specific needs of the site.
- This file allows you to define URL rewrite rules, impose access restrictions, manage HTTP errors, and even customize security aspects such as disabling the display of files/folders.
- It also facilitates the implementation of redirects and aliases, thus providing precise control over the organization and accessibility of the site.
- A
.user.ini
file allows you to customize the PHP directives of the folder (and its subfolders) in which it is located.- By acting at the PHP interpreter level, this file allows you to define specific configurations for a given folder and its subdirectories.
- With its clear syntax, it offers the possibility to modify various parameters such as memory limit, script execution time, error handling, and other PHP-related directives.
- This granular approach allows developers to finely customize PHP behavior according to the specific requirements of each section of the site.
Create a file…
… .htaccess
- Log in to your hosting via FTP or SSH.
- At the root of the relevant website, create a new file and name it:
.htaccess
. - Enter the desired directives in the file; refer to these other guides for example:
… .user.ini
- Log in to your hosting via FTP or SSH.
- In the desired location, create a new file and name it:
.user.ini
. - Enter the desired PHP configuration parameters in the file.
⚠️ Modifying the .user.ini
file takes several minutes to take effect.
This guide explains how to deploy Node.js
with a Cloud Server to always have the environment needed to compile or build modern frontends (React, Vue, etc.).
Preamble
- Node.js is a free software platform in JavaScript designed for network applications that need to scale, a simple and effective solution for integrating frontend tools into any server stack.
Node.js
= official name of the language/environment.NodeJS
= "technical" or simplified name in certain contexts (often for practical reasons, no real technical difference).
Install Node.js
Prerequisites
- Install NVM on your Cloud Server.
- Warning: Node.js version 18 is not compatible with older Cloud Servers; perform a migration beforehand!
⚠️ For additional help contact a partner or launch a free tender — also discover the role of the host.
Install the stable version of Node.js
nvm install stable
Install the latest version available
nvm install node
Install an older version (not recommended)
nvm install 17
List the available versions
nvm ls-remote
Install a specific version
nvm install <version>
Switch Node.js version and set version 6.3.1 (or another version) as default
nvm alias default 6.3.1
Use a specific version of Node.js in the current shell
nvm use <version>
Check the currently used version of Node.js
node -v
Source
To set up NVM, go to the WebSSH console of your Cloud Server.
Source the .profile
file
source ~/.profile
Run the following command to check the installation of NVM
nvm
Configure Node as a service
To configure Node as a service, it is recommended to use a "service systemd-user.
Redirect traffic to a specific port
Familiarize yourself with this other guide regarding traffic redirections to a specific port and dedicated IPs.
This guide concerns the database management features available on Infomaniak servers.
MySQL, SQLite, MariaDB, PostgreSQL…
At the level of Database Management System, Infomaniak servers support…
- … MySQL databases via PHP MySQL access or via Perl DBI+DBD::mysql
- You can use MySQL as a database management system (DBMS) on Infomaniak servers.
- You can access it either via PHP using the built-in MySQL database functions of PHP, or via Perl using the DBI and DBD::mysql modules
- … MySQLI, the native MySQL access interface (PHP5)
- MySQLI is a PHP extension that allows access to a MySQL database.
- It is an improved and more recent version of the old MySQL extension of PHP, offering enhanced features and performance.
- … SQLite 3.x
- SQLite is a lightweight, self-contained, serverless SQL database engine.
- Infomaniak servers support SQLite version 3.x, which means you can use SQLite to store data on these servers.
- … MariaDB
- MariaDB is a fork of MySQL and is often used as an alternative to MySQL
- You can therefore use MariaDB as a database management system on Infomaniak servers
- … the PGSQL module
- PGSQL is a PHP module that allows you to connect to a PostgreSQL database
- This specific feature allows you to connect to a REMOTE PostgreSQL database via PHP; this requires opening the appropriate port to the precise IP of the PostgreSQL database from the Infomaniak manager.
This guide explains how to update Web Applications installed via Infomaniak tools.
Preamble
- If an application is manually updated via FTP, it is then impossible to update it via the Manager and benefit from automatic updates.
- When installing your Web Application, automatic updates (at least security updates) are usually enabled by default:
Updating an application installed via Infomaniak
To access the Infomaniak Web Application and update it:
- 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 the action menu â‹® located to the right of the relevant Web Application.
- Click on Settings for the application:
- Click on Edit in the Information block:
- Click on the dropdown menu to select a newer version.
- Click on the Save button:
This guide explains how to enable or disable the PHP function set_time_limit
for a Web Hosting.
Preamble
set_time_limit
is a PHP function that sets the expiration time of a script, in seconds; if this limit is reached, the script stops and returns a fatal error.set_time_limit
cannot be used to set values beyond the script execution time limit (max_execution_time) set in the Manager.
Enable or disable the PHP function set_time_limit
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 the toggle switch button On/Off as desired:
- Click the Save button to confirm the changes.