Base de données · 6 min read · Jan 15, 2026
ISPConfig 3 avec le service de base de données cloud Xeround
ISPConfig 3 avec le service de base de données cloud Xeround
Ce tutoriel est un complément à l’un des tutoriels Perfect Server. ISPConfig 3 ne fonctionnera pas avec le service de base de données cloud Xeround par défaut. Avec quelques modifications mineures de ce tutoriel, vous pourrez exécuter votre Perfect Server sans avoir à gérer un serveur de base de données.
Les exemples spécifiques ci-dessous ont été réalisés sur un serveur Debian avec ISPConfig 3 et nginx. Les étapes devraient être similaires pour d’autres distributions. De plus, l’instance est hébergée dans le datacenter Rackspace ORD1. Les instances dans un datacenter Amazon peuvent nécessiter une configuration différente. Ce tutoriel est fourni sans garantie d’aucune sorte.
Remarque préliminaire
J’ai créé une instance Xeround :
Nom DNS :
instanceABCD.db.xeround.com.:7126
Nom DNS interne :
int.instanceABCD.db.xeround.com.:7126
En cliquant sur le nom DNS, vous serez dirigé vers phpMyAdmin.
J’utiliserai le nom DNS interne car mon serveur est situé dans Rackspace ORD1, mais si votre serveur est situé ailleurs, utilisez le nom DNS. Ce tutoriel commence dans un tutoriel Perfect Server immédiatement avant :
php -q install.php1 Redirection de port - Source
Xeround n’utilise pas le port par défaut 3306. La manière la plus simple de contourner cela est d’utiliser la redirection de port. Cet exemple utilise rinetd.
Pour installer rinetd, exécutez simplement
apt-get install rinetdNous allons rediriger le trafic HTTP de 127.0.0.1 vers int.instanceABCD.db.xeround.com.. Le port MySQL par défaut est 3306 et notre port d’exemple est 7126. Localhost ne fonctionnera pas à la place de 127.0.0.1.
nano /etc/rinetd.conf127.0.0.1 3306 int.instanceABCD.db.xeround.com. 7126Maintenant, redémarrez rinetd.
/etc/init.d/rinetd restartPuis exécutez :
netstat -taprinetd devrait maintenant fonctionner sur le port 3306 (mysql).
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:ftp *:* LISTEN 9086/pure-ftpd (SER
tcp 0 0 *:ssh *:* LISTEN 1578/sshd
tcp 0 0 localhost.localdom:smtp *:* LISTEN 1207/exim4
tcp 0 0 *:https *:* LISTEN 1192/nginx
tcp 0 0 localhost.localdom:9000 *:* LISTEN 1289/php-fpm: pool
tcp 0 0 localhost.localdo:mysql *:* LISTEN 8700/rinetd
tcp 0 0 *:http-alt *:* LISTEN 1192/nginx
tcp 0 0 *:www *:* LISTEN 1192/nginx
tcp 0 0 *:tproxy *:* LISTEN 1192/nginx
tcp 0 0 localhost.localdom:9010 *:* LISTEN 1291/php-fpm: pool
tcp 1 0 localhost.localdo:38196 localhost.localdo:mysql CLOSE_WAIT 9086/pure-ftpd (SER
tcp6 0 0 [::]:ftp [::]:* LISTEN 9086/pure-ftpd (SER
tcp6 0 0 [::]:ssh [::]:* LISTEN 1578/sshd
tcp6 0 0 ip6-localhost:smtp [::]:* LISTEN 1207/exim42 Configurer ISPConfig 3
ISPConfig 3 nécessite quelques ajustements pour se permettre d’accéder au serveur de base de données. Utiliser server1.example.com n’a pas fonctionné. L’hôte MySQL distant nécessitait % pour tout hôte.
nano /tmp/ispconfig3_install/install/lib/installer_base.lib.php...Ligne 184
if($conf['mysql']['host'] == 'localhost') {
$from_host = '%';
} else {
$from_host = '%';
}
...Ligne 1946 (Ajouter la deuxième ligne)
$content = rf('tpl/mysql_clientdb.conf.master');
$content = str_replace('localhost',$conf['mysql']['host'],$content);Pour permettre l’accès aux applications pour les bases de données créées dans ISPConfig 3, exécutez
sed -i 's/localhost/%/g' /tmp/ispconfig3_install/server/plugins-available/mysql_clientdb_plugin.inc.phpNous allons utiliser l’installation experte pour ISPConfig 3.
php -q install.phproot@neonpx:/tmp/ispconfig3_install/install# php -q install.php
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ps.ini on line 1 in Unknown on line 0
--------------------------------------------------------------------------------
_____ ___________ _____ __ _ ____
|_ _/ ___| ___ \/ __ \ / _(_) /__ \
| | \ `--.| |_/ / | / \/ ___ _ __ | |_ _ __ _ __/ /
| | `--. \ __/ | | / _ \| '_ \| _| |/ _` | | |_ |
|_| /__/ / | | \__/\ (_) | | | | | | | (_| | ___\ \
\___/\____/_| \____/\___/|_| |_|_| |_|\__, | \____/
__/ |
|___/
--------------------------------------------------------------------------------
>> Initial configuration
Operating System: Debian 6.0 (Squeeze/Sid) or compatible
Following will be a few questions for primary configuration so be careful.
Default values are in [brackets] and can be accepted with .
Tap in "quit" (without the quotes) to stop the installer.
Select language (en,de) [en]: <-- ENTER
Installation mode (standard,expert) [standard]: <-- expert
Full qualified hostname (FQDN) of the server, eg server1.domain.tld [server1.example.com]: <-- ENTER
MySQL server hostname [localhost]: <-- 127.0.0.1
MySQL root username [root]: <-- yourxeroundadmin
MySQL root password []: <-- yourxeroundadminpassword
MySQL database to create [dbispconfig]: <-- ENTER
MySQL charset [utf8]: <-- ENTER
The next two questions are about the internal ISPConfig database user and password.
It is recommended to accept the defaults which are 'ispconfig' as username and a random password.
If you use a different password, use only numbers and chars for the password.
ISPConfig mysql database username [ispconfig]: <-- ENTER
ISPConfig mysql database password [MbSrzVTpPLRMjes9210ec5f0f1160a65]: <--ENTER
Shall this server join an existing ISPConfig multiserver setup (y,n) [n]: <-- ENTER
Configure Mail (y,n) [y]: <-- ENTER
Configuring Mail
Configure Jailkit (y,n) [y]: <-- ENTER
Configuring Jailkit
Configure FTP Server (y,n) [y]: <-- ENTER
Configuring Pureftpd
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -Y 1 -p 20000:20100 -b -u 1000 -O clf:/var/log/pure-ftpd/transfer.log -A -E -8 UTF-8 -D -H -B
Configure DNS Server (y,n) [y]: <-- ENTER
Hint: If this server shall run the ISPConfig interface, select 'y' in the 'Configure nginx Server' option.
Configure nginx Server (y,n) [y]: <-- ENTER
Configuring nginx
Configuring Apps vhost
Configure Firewall Server (y,n) [y]: <-- ENTER
Configuring Bastille Firewall
Install ISPConfig Web Interface (y,n) [y]: <-- ENTER
Installing ISPConfig
ISPConfig Port [8080]: <-- ENTER
Enable SSL for the ISPConfig web interface (y,n) [y]: <-- ENTER
Generating RSA private key, 4096 bit long modulus
...++
....++
e is 65537 (0x10001)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]: <-- ENTER
State or Province Name (full name) [Some-State]: <-- ENTER
Locality Name (eg, city) []: <-- ENTER
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <-- ENTER
Organizational Unit Name (eg, section) []: <-- ENTER
Common Name (eg, YOUR name) []: <-- ENTER
Email Address []: <-- ENTER
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: <-- ENTER
An optional company name []: <-- ENTER
writing RSA key
Configuring DBServer
Installing ISPConfig crontab
Reloading PHP5 FastCGI Process Manager: php5-fpm.
Reloading nginx configuration: nginx.
Installation completed. Maintenant, permettez aux liens de base de données dans ISPConfig de se connecter à votre instance Xeround. Remplacez l’adresse ci-dessous par celle de votre nom DNS Xeround.
nano /usr/local/ispconfig/interface/web/phpmyadmin/index.phpSi vous utilisez nginx au lieu d’Apache, commentez les deux lignes dans le fichier ci-dessous. Ces paramètres sont doublés et provoqueront une boucle de redirection.
nano /usr/local/ispconfig/server/conf/nginx_vhost.conf.master# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_script_name;Enfin, retournez à votre tutoriel Perfect Server pour configurer ISPConfig 3.
Recevez de nouveaux articles dans votre boîte de réception.
Aucun spam. Désabonnez-vous à tout moment.