Gandi

[Gandi][Serveur] Installation d’un serveur Bind

[Gandi][Serveur] Installation d’un serveur Bind. Serveur : Serveur Gandi Distribution : Debian 8 64 bits (HVM) @ip : 92.243.5.200 Serveur primaire : ns1.samglux.info = 92.243.5.200 Serveurs secondaires : ns6.gandi.net = 217.70.177.40 ns.kimsufi.com = 213.186.33.199 1) Acheter un nom de domain chez Gandi https://www.gandi.net/domaine 2) A partir de l’interface Gandi du nom de domaine : Création […]

[Gandi][Serveur] Installation de Apache2 avec SSL

[Gandi][Serveur] Installation de Apache2 avec SSL. 1) Activation du module Apache SSL : root@server33:~# a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Enabling module socache_shmcb. Enabling module ssl. See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed […]

[Gandi][Serveur] Génération des certificats SSL

[Gandi][Serveur] Génération des certificats SSL. Serveur : Serveur Gandi sous Debian 8 64 bits (HVM) Nom de domaine : http://steamcyberpunk.info/ 1) Génération de la ‘Demande de Signature de Certificat‘ / ‘Certificate Signing Request‘ (CSR) : Chiffrement : SHA2 Clé RSA : 2048 Common Name : steamcyberpunk.info = Nom de domaine à protégé root@server33:~# openssl req […]

[Gandi][Serveur] Installation de Let’s Encrypt avec Nginx sur Ubuntu 14.04

[Gandi][Serveur] Installation de Let’s Encrypt sur Ubuntu 14.04 Remplacer ‘monsupersite.fr’ par votre nom de domaine. 1) Connexion au serveur : [~] ➔ ssh admin@217.70.190.39 admin@217.70.190.39’s password: Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.12.46-guest-39-a97a54c-x86_64 x86_64) … admin@server01:~$ admin@server01:~$ su Password: root@server01:/home/admin# cd root@server01:~# 2) Installation de git et de bc : root@server01:~# apt-get -y install git […]

Installation de Docker sur un Gandi Serveur

Installation de Docker sur un Gandi Serveur. 1) Paramètre du serveur : Localisation : Paris (France) Coeur : 2 Ram : 2048 Mo Interface : 1 IPV4 Disque : 10 Go Système d’exploitation : Debian 8 64 bits (HVM) Nom du disque système : sysdisk01 Nom (Hostname) : server01 2) Connexion au serveur : [~] […]

[Gandi][API] Create a domain name with account handle in Python

[Gandi][API] Create a domain name with account handle in Python. #!/usr/bin/python3 import pprint import xmlrpc.client import sys import string import random pp = pprint.PrettyPrinter(indent = 4) api = xmlrpc.client.ServerProxy(‘https://rpc.ote.gandi.net/xmlrpc/’) # INSERT YOUR OWN API KEY apikey = ‘l’ def generate_domainname(size = 10): domainname =  » . join(random.SystemRandom().choice(string.ascii_lowercase + string.digits) for _ in range(size)) return ‘api’ […]

[Gandi][Serveur] Upgrade de Ubuntu 10.04 Lucid vers 12.04 Lts Precise

[Gandi][Serveur] Upgrade de Ubuntu 10.04 Lucid vers 12.04 Lts Precise. Les commandes suivantes doivent être fait dans le « multiplexeur de terminaux » screen. 1) Vérification. root@server02up:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESCRIPTION= »Ubuntu 10.04.4 LTS » root@server02up:~# uname -a Linux server02up 2.6.32-xenU-7970-i386 #2 SMP Tue Jun 18 14:14:13 UTC 2013 i686 GNU/Linux 2) Modification des dépôt. Ouvrir : […]

[Gandi][Simple Hosting] Mysql PDO

1) Créer la base de donnée et une table de test : CREATE DATABASE AddressBook; CREATE TABLE IF NOT EXISTS `Person` ( `id` int(11) NOT NULL AUTO_INCREMENT, `firstname` varchar(255) NOT NULL, `lastname` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; 2) Insertion de données : Ouvrir : […]

[Gandi][Simple Hosting] Déploiement d’une application Node.js

[Gandi][Simple Hosting] Déploiement d’une application Node.js 1) Répertoire de travail : [~] ➔ mkdir -p GANDI/NODEJS [~] ➔ cd GANDI/NODEJS/ [~/GANDI/NODEJS] ➔ 2) Création du répertoire de l’application : [~/GANDI/NODEJS] ➔ mkdir -p monappli [~/GANDI/NODEJS] ➔ cd monappli/ [~/GANDI/NODEJS/monappli] ➔ 3) Création d’un fichier de test : Ouvrir : server.js Ajouter : var http = […]

[Gandi][Python] Gestion des zones

[Gandi][Python] Gestion des zones. #!/usr/bin/python3 import pprint import xmlrpc.client import sys pp = pprint.PrettyPrinter(indent=4) api = xmlrpc.client.ServerProxy(‘https://rpc.gandi.net/xmlrpc/’) apikey =  » print(« ***************************************************** ») print(« Create an empty zone / Active zone ») print(« Version 1 / Active zone ») zoneName = « mytestzone » newZoneActive = api.domain.zone.create(apikey, {‘name’: zoneName}) pp.pprint(newZoneActive) zoneid = newZoneActive[‘id’] print(« ***************************************************** ») print(« Create a new zone version for modification ») print(« Version: 2 ») […]