This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Sentora with external database, same local network
#1
Sentora with external database, same local network
Hi, 

I plan to update my Zpanel (CentOS 6) server to a Sentora (CentOS 7) server.

Right now my zpanel use a database on an other server from the local network.

This other server is exclusively use for SQL.

I don't remember how i setup this in Zpanel, but i would like to do the same with Sentora, and i don't see this option in the Sentora install.

Is possible to use a database on an other server with Sentora? And if yes, how can i do?

Thank You.

Khalimerot.
Reply
Thanks given by:
#2
RE: Sentora with external database, same local network
hi if you able to do it can you post the steps later thanks Smile
Reply
Thanks given by:
#3
RE: Sentora with external database, same local network
Sentora is as fork from Zpanel and is almost the same.
If you found how you did it on Zpanel on the old Zpanel forums you can translate them to Sentora?

My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons

Sentora's development takes way too long, so i'm transitioning to HestiaCP.
Reply
Thanks given by:
#4
RE: Sentora with external database, same local network
I found how i did with Zpanel.

I edited the /etc/zpanel/panel/cnf/db.php file.


Code:
<?php
/*
* Database configuration file.
* @package zpanelx
* @subpackage core -> config
* @author Bobby Allen (ballen@bobbyallen.me)
* @copyright ZPanel Project (http://www.zpanelcp.com/)
* @link http://www.zpanelcp.com/
* @license GPL (http://www.gnu.org/licenses/gpl.html)
*/
$host = 'mysql.local';
$dbname = 'zpanel_core';
$user = 'zpanel';
$pass = 'xxxx';

i'll search after this file with sentora.
Reply
Thanks given by:
#5
RE: Sentora with external database, same local network
So i manage to make it work.

Here is my method.

Installing Sentora
Log In
Dump SQL from phpmyadmin
Write SQL to the external database
edit: Create a sentora User and password in your external DB, with full access.
Edit /etc/sentora/panel/cnf/db.php
$host = '(where is your external database)';
edit: $user = '(the user you created)';
edit: $pass = '(the password you put for the user)';

And it works.

edit: forgot some steps
Reply
Thanks given by:
#6
RE: Sentora with external database, same local network
@Khalimerot,
Do you know how to move and store all client databases on another server from local network?
Reply
Thanks given by:
#7
RE: Sentora with external database, same local network
(09-30-2016, 09:49 PM)kini Wrote: @Khalimerot,
Do you know how to move and store all client databases on another server from local network?

MMMmmmm if there is an automatic way to do it nope i don"t know.

I dump my databases to an SQL file from Phpmyadmin, navicat, or command line  and importe the SQL to the other SQL server.

at the moment all my clients databases are already on the external server (manage by Zpanel), so i juste have to recreate clients informations in Sentora, to make it manage those DB. 

or trying an export from zpanel to sentora DB.
Reply
Thanks given by:
#8
RE: Sentora with external database, same local network
You also need to update the roundcube config, phpmyadmin config, postfix config and proftp configs to use this new database also! There may be more, but those are the ones off the top of my head. ZPanel used a single user (root) for all services which is no longer the case in Sentora (More security).

Me.B might have some more information on this also.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#9
RE: Sentora with external database, same local network
I'll also update these config files, thank you.
Reply
Thanks given by:
#10
RE: Sentora with external database, same local network
So,

For Roundcube you have to edit:

/etc/sentora/configs/roundcube/roundcube_config.inc.php

For Proftpd:

/etc/sentora/configs/proftpd/proftpd-mysql.conf

For Postfix:

/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf
/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
/etc/sentora/configs/postfix/mysql-virtual_mailbox_limit_maps.cf
/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf

I will update, when i'll continue to setup this.
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,971 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,590 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 3 ,334 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 3 Guest(s)