How-To create company logo on ZPanel and Roundcude log-in page

Case

You're hosting a with server ZPanel for multiple customer and you want a for every customer a company logo on the ZPanel and Roundcube log-in page.

Here is How-To do that

Step 1

Create a company logo
Create a company logo with a transparent background in PNG format named companylogo.png. (so it matches further steps in this How-To) The size must be around 50px hight and 250px width. It's not necessary to use this size exactly.

Step 2

Upload the company logo
Upload the companylogo.png, by FTP or SFTP, to websites documentroot of the specific virtual host. This is the first public directory.

/var/zpanel/hostdata/CUSTOMER/public_html/example_com/

So after uploading the logo you have a file lik this:

/var/zpanel/hostdata/CUSTOMER/public_html/example_com/companylogo.png

Step 3

Create subdomain in DNS
Add two sub-domains in the DNS record:

zpanel.example.com CNAME @
webmail.example.com CNAME @

Step 4

Login to ZPanel as user admin and start a shadow session to create the sub-domein on the ZPanel server.

  • Z-Panel home -> Admin -> Shadowing
  • Click on button shadow of the particular customer

Step 5

Create the sub-domain

  • In the shadow session go to the homepage
  • Click on Sub Domains (You find that under Domain Management)
  • In the text box fill in the first subdomain zpanel
  • Home directory: -> Create a new home directory
  • In the text box fill in the second subdomain webmail
  • Home directory: -> Create a new home directory

The sub-domains are now on status Pending. Within 5 minutes the status will be Live. If you won't wait:

  • Clik on the red bar "End shadow session and return to your session" to end the shadow session
  • Admin -> Z-panel config -> scroll down
  • Click on the button Go in Run Daemon Now: A window pops-up
  • Click on the button Run now
  • Close the pop-up window

Step 6

Modify apache http-conf file for this virtual host

  • Click on Admin -> Module Admin
  • Click on Apache Config
  • Scroll down
  • Find the section Override a Virtual Host Setting
  • Select the Vitrual host zpanel.example.com from the dropdown menu
  • Click on Select host
  • UNckeck the selectbox OpenBase Enabled:
  • Past this lines in the textbox Custom Entry:

DocumentRoot "/etc/zpanel/panel"
Alias /etc/styles/zpanelx/images/zplogo_v9.png /var/zpanel/hostdata/CUSTOMER/public_html/example_com/companylogo.png

  • Click on Save Vhost

Now we do this again for the sub-domain webmail

  • Click on Admin -> Module Admin
  • Click on Apache Config
  • Scroll down
  • Find the section Override a Virtual Host Setting
  • Select the Vitrual host webmail.example.com from the dropdown menu
  • Click on Select host
  • UNckeck the selectbox OpenBase Enabled:
  • Past this lines in the textbox Custom Entry:

DocumentRoot "/etc/zpanel/panel/etc/apps/webmail"
Alias /skins/larry/images/roundcube_logo.png /var/zpanel/hostdata/CUSTOMER/public_html/example_com/companylogo.png

  • Click on Save Vhost

Step 7

Reload the webserver

  • Admin -> Z-panel config -> scroll down
  • Click on the button Go in Run Daemon Now: A window pops-up
  • Click on the button Run now
  • Close the pop-up window

Step 8

See your result.
Brows to zpanel.example.com and webmail.example.com now you see the company logo in the loginscreen instead of th ZPanel and Roundcube log.

Post new comment
The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.