Sentora Support Forums
Default important paths - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36)
+---- Thread: Default important paths (/showthread.php?tid=1506)



Default important paths - PyroByte - 04-22-2015

Hello, is it possible to change the default important paths created by Sentora?
I.e, i want to change "/var/zpanel/hostdata/[Sentora-login]/public_html/[domain_tld]" to
"/home/[domain_tld]/public_html".


RE: Default important paths - Me.B - 04-23-2015

Take care would trigger some issues.

You may try with symbolic links and move files. Ensure that owner remaion apache:apache.

Why are you trying to do so?

M B


RE: Default important paths - PyroByte - 04-23-2015

Im askin for the name of the script who creates the folders and generates the vhosts. If its from a php file, just tell me which one it is and the location. Thanks!


RE: Default important paths - Me.B - 04-23-2015

Doing so you will likely break the panel.

Check under modules apach_admin and hooks.

M B


RE: Default important paths - PyroByte - 04-23-2015

I already checked the hooks, nothing found.


RE: Default important paths - Me.B - 04-23-2015

This is the file that manage the whole apache vhosts

https://github.com/sentora/sentora-core/blob/master/modules/apache_admin/hooks/OnDaemonRun.hook.php

IF you check it carefull you will see it's grabbing data from sentora_core/settings.

$line .= 'DocumentRoot "' . ctrl_options::GetSystemOption('sentora_root') . '"' . fs_filehandler::NewLine();
$line .= 'ErrorLog "' . ctrl_options::GetSystemOption('log_dir') . 'sentora-error.log" ' . fs_filehandler::NewLine();

It's there and in DB.

M B


RE: Default important paths - PyroByte - 04-23-2015

I must have missed this file. Thats exactly what i was searching for. Thanks!