Banco de Dados · 6 min read · Jan 15, 2026

ISPConfig 3 Com o Serviço de Banco de Dados em Nuvem Xeround

ISPConfig 3 Com o Serviço de Banco de Dados em Nuvem Xeround

Este tutorial é um complemento para qualquer um dos tutoriais do Perfect Server. O ISPConfig 3 não funcionará com o serviço de banco de dados em nuvem Xeround por padrão. Com pequenas modificações deste tutorial, você poderá executar seu Perfect Server sem precisar gerenciar um servidor de banco de dados.

Os exemplos específicos abaixo foram feitos em um servidor Debian com ISPConfig 3 e nginx. Os passos devem ser semelhantes em outras distribuições. Além disso, a instância está hospedada no datacenter Rackspace ORD1. Instâncias dentro de um datacenter da Amazon podem exigir configuração diferente. Este tutorial vem sem garantia de qualquer tipo.

Nota Preliminar

Eu criei uma instância Xeround:

Nome DNS:

instanceABCD.db.xeround.com.:7126

Nome DNS Interno:

int.instanceABCD.db.xeround.com.:7126

Clicando no Nome DNS, você será levado ao phpMyAdmin.

Eu usarei o Nome DNS Interno, pois meu servidor está localizado dentro do Rackspace ORD1, mas se seu servidor estiver localizado em outro lugar, use o Nome DNS. Este tutorial começa em um tutorial do Perfect Server imediatamente antes:

php -q install.php

1 Encaminhamento de Porta - Fonte

O Xeround não usa a porta padrão 3306. A maneira mais simples de contornar isso é usar o encaminhamento de porta. Este exemplo usou rinetd.

Para instalar o rinetd, basta executar

apt-get install rinetd

Nós encaminharemos o tráfego HTTP de 127.0.0.1 para int.instanceABCD.db.xeround.com.. A porta padrão do MySQL é 3306 e nossa porta de exemplo é 7126. O localhost não funcionará no lugar de 127.0.0.1.

nano /etc/rinetd.conf
127.0.0.1 3306 int.instanceABCD.db.xeround.com. 7126

Agora reinicie o rinetd.

/etc/init.d/rinetd restart

Então execute:

netstat -tap

rinetd deve agora estar rodando na porta 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/exim4

2 Configurar ISPConfig 3

O ISPConfig 3 precisa de alguns ajustes para permitir o acesso ao servidor de banco de dados. Usar server1.example.com não funcionou. O host MySQL remoto exigiu % para qualquer host.

nano /tmp/ispconfig3_install/install/lib/installer_base.lib.php
...Linha 184
        if($conf['mysql']['host'] == 'localhost') {
            $from_host = '%';
        } else {
            $from_host = '%';
        }
...Linha 1946 (Adicionar segunda linha)
        $content = rf('tpl/mysql_clientdb.conf.master');
        $content = str_replace('localhost',$conf['mysql']['host'],$content);

Para permitir o acesso da aplicação para os bancos de dados criados no ISPConfig 3, execute

sed -i 's/localhost/%/g' /tmp/ispconfig3_install/server/plugins-available/mysql_clientdb_plugin.inc.php

Usaremos a instalação expert para o ISPConfig 3.

php -q install.php
root@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.

Agora permita que os links do banco de dados no ISPConfig se conectem à sua instância Xeround. Substitua o endereço abaixo pelo que está no seu Nome DNS Xeround.

nano /usr/local/ispconfig/interface/web/phpmyadmin/index.php

Se estiver usando nginx em vez de Apache, comente as duas linhas no arquivo abaixo. Essas configurações são duplicadas e causarão um loop de redirecionamento.

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;

Finalmente, volte ao seu tutorial do Perfect Server para configurar o ISPConfig 3.

Share: X/Twitter LinkedIn

Receba novas postagens na sua caixa de entrada

Sem spam. Cancele a assinatura a qualquer momento.