Aller au contenu principal

Installer WHMCS

Ce guide vous explique comment installer WHMCS sur votre VPS.

Prérequis​

  • VPS Linux avec minimum 2 Go RAM
  • Licence WHMCS valide
  • PHP 8.1+
  • MySQL/MariaDB
  • Serveur web (Nginx ou Apache)

Installation​

1. Préparer l'environnement​

sudo apt update
sudo apt install nginx php8.1-fpm php8.1-{mysql,curl,gd,mbstring,xml,zip,intl,bcmath,imap} mariadb-server unzip -y

2. Créer la base de données​

sudo mysql -u root -p
CREATE DATABASE whmcs;
CREATE USER 'whmcs_user'@'localhost' IDENTIFIED BY 'mot_de_passe_securise';
GRANT ALL PRIVILEGES ON whmcs.* TO 'whmcs_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

3. Télécharger WHMCS​

Téléchargez WHMCS depuis votre espace client WHMCS et uploadez sur votre serveur.

sudo mkdir -p /var/www/whmcs
cd /var/www/whmcs
sudo unzip whmcs_*.zip
sudo chown -R www-data:www-data /var/www/whmcs
sudo chmod -R 755 /var/www/whmcs

4. Configuration Nginx​

server {
listen 80;
server_name votredomaine.com;
root /var/www/whmcs;
index index.php;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}

5. Installation web​

Accédez à http://votredomaine.com/install et suivez l'assistant.

attention

Supprimez le dossier /install après l'installation.