Jump to content


How To Change Zpanel Control Panel Address To A Specific Port

haphost zpanel

  • Please log in to reply
1 reply to this topic

#1 rajeevrrs



  • Members
  • Pip
  • 2 posts

Posted 12 December 2014 - 10:53 AM

Hello to all.

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

i mean from to or any other port.

thanks you in advance

#2 Bonar


    Advanced Member

  • Members
  • PipPipPip
  • 181 posts
  • Location/home

Posted 17 December 2014 - 03:57 PM

(THIS IS ONLY A REFERENCE GUIDE ON HOW TO CHANGE DEFAULT PORT TODIFFERENT PORT ON ZPANEL)Here we will cover on how to change your ZPanel port 80 (default) to eg: 1080 ~9080 or what ever you like to setup to.Remember that “80″ will still remain in the last 2 digits of the port setting. Do notadd more than 2 digits eg:


so thats a total of 5 digits which is wrong (neverbeen tested). The result should only be like this eg:


in a total of 4 digits


back up the files that we are going to re-configureOnDaemonRun.hook.php httpd-vhost.config so if something goes wrong with the re-configuration, you can revert the backupfiles to default.

Now here’s how:


We need to locate thepath: etc/zpanel/panel/modules/apache_admin/hooks


Open the file:OnDaemonRun.hook.php(<<== backup this file firstthen modify it)


Search for the line: $line .= “" .fs_filehandler::NewLine();


Add the extra port you want to use eg:Code:

$line .= “" . fs_filehandler::NewLine();

etc/zpanel/configs/apache =>Now locate your: “httpd.conf "


Add:Listen 1080



Save your httpd.conf and restart service.If the daemon runs and doesn’t change your httpd-vhost.conf, manually edit yourVHOSTeg:NameVirtualHost *:80# Configuration for ZPanel control panel.ServerAdmin admin@localhostDocumentRoot “/etc/zpanel/panel/"ServerName zpanel.mydomain.com

Nothing to display at the moment. RIP

Also tagged with one or more of these keywords: haphost, zpanel

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users