Best Blackhat Forum

Full Version: how to change zpanel control panel address to a specific port
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello to all.

I NEED A HELP IN changing zpanel control panel address to a specific port.

i mean from 10.01.01.2 to 10.01.01.2:1080 or any other port.

thanks you in advance
why would you want to put in on a port whats the differance
what are you trying to do
in using zpanel
For ZPanel to work properly you really need to use a domain/subdomain as described in the install tutorials.

In ZPanel Config you can change the login port > ZPanel login port
You will also need to edit httpd.conf file:
find:
Code:
LISTEN 80
add after:
Code:
LISTEN ##
where ## is the new port number.

You may also need to edit modules/apache_admin/hooks/OnDaemonRun.hook.php

Look for something like:
PHP Code:
// ZPanel default virtual host container
$line .= "# Configuration for ZPanel control panel." . fs_filehandler::NewLine();
$line .= "<VirtualHost *:" . ctrl_options::GetSystemOption( 'apache_port' ) . ">" . fs_filehandler::NewLine();
and change it to:
PHP Code:
// ZPanel default virtual host container
$line .= "# Configuration for ZPanel control panel." . fs_filehandler::NewLine();
$line .= "<VirtualHost *:" . ctrl_options::GetSystemOption( 'zpanel_port' ) . ">" . fs_filehandler::NewLine();
(Unless you already patched your version) basically it is changing apache_port to zpanel_port for the zpanel vhost entry.

i hope this help my friend

you dont have the modual hostbill or whmcs zpanel by any chance do you thanks brp
repps good
Reference URL's