nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Where do I find the login page images? I just want to change the original image to my logo. I have looked in whm/themes and whm/cpanel but cannot find the image location anywhere. I've also looked through this forum for the answer but haven't found anything related to the image path except for usr/local/cpanel which I don't have. I have usr/local/apache/http/ and that is it when I use ftp or ssh secure shell v3.2.9.
 

YasminTiara

Member
Mar 18, 2010
5
0
51
I have a simple web application with a login page. I am now adding authentication to code that already checks username and password in a database; I use Forms Authentication to write a cookie with an authentication ticket (if that's the right term) to enable a user to access pages other than Login.
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Sorry I don't understand what you just said. All I want to do is change the login image in photoshop and reload it but I cannot find the image anywhere in my directories.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Sorry I don't understand what you just said. All I want to do is change the login image in photoshop and reload it but I cannot find the image anywhere in my directories.
I recommend using WHM at the following menu path to (1) clone an existing theme, (2) download the cloned theme files, and then (3) upload the newly-edited login theme: WHM: Main >> Themes >> Universal Theme Manager >> Login [Manage Themes]
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Awesome, your the man!!! Can't wait to make the changes and upload the files to Whm. Thanks again. Much appreciated.
:D
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
I have cloned the login theme and made the changes to the image files. Then I tried to upload to WHM but get the following error message:
Checking Theme integrity......Sorry.. thats not a Login theme tarball (header.html is missing)!
Yet when I open the zip file the header.html file is there. I also tried uploading as a .tar.gz file and get the same thing. What am I missing?
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
I have cloned the login theme and made the changes to the image files. Then I tried to upload to WHM but get the following error message: Yet when I open the zip file the header.html file is there. I also tried uploading as a .tar.gz file and get the same thing. What am I missing?
I would ensure to use a gzip-compressed tar archive, and check that the directory structure is retained the same as how it was packaged when downloaded via the Universal Theme Manager in WHM.

Example file name: login.themename.tar.gz
Example contents should include a directory of the same name as the theme (e.g., such as "themename" as seen in the example file name); within this directory there should be the full contents of the theme, including all other files and applicable directories (such as "images" sub-directory) that were included when it was downloaded albeit with the desired modifications applied.

If there is persistent difficulty, please try testing the following:
1.) Download a newly-cloned theme.
2.) Without modifying the cloned theme, re-upload the same archive to check the result; it should complete successfully.

Please also let us know the full cPanel version and build number, for reference purposes.
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Okay I changed the file name to .tar instead of .tar.gz and the upload worked. Now how do I make it the default login theme in WHM? I don't see any button to make it the default. I found a place to change it under Server Configuration/Tweek Settings but that didn't seem to work when I changed it and saved the changes.
cPanel 11.25.0-R43473 - WHM 11.25.0 - X 3.9
CENTOS 5.4 x86_64 standard on server2
 
Last edited:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Okay I changed the file name to .tar instead of .tar.gz and the upload worked. Now how do I make it the default login theme in WHM? I don't see any button to make it the default. I found a place to change it under Server Configuration/Tweek Settings but that didn't seem to work when I changed it and saved the changes.
I'm unable to reproduce any difficulty when setting a different login theme. It is correct, however, to set it via the Tweak Settings page in WHM, as seen at the following menu path:
WHM: Main >> Server Configuration >> Tweak Settings >> Display
  • The login theme to display for cPanel Login. See the Universal Theme Manager for options. If you are posting to /login/ you can include "login_theme" as a uri/form variable to overwrite this setting on a per case basis.

Here is an example showing how to directly link to a specific login theme for cPanel or Webmail access and specifically defining the stock-default login theme named "cpanel":
Code:
http://server:2082/?login_theme=cpanel
https://server:2083/?login_theme=cpanel
http://server:2095/?login_theme=cpanel
https://server:2096/?login_theme=cpanel
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
This is the url I was told to use when I set up my dedicated server.
When I go to the url or a client goes to the url they get the right theme but the login window looks like something provided by windows, firefox, opera etc. Which is fine with me however when I log out I get the default cpanel theme logout page which I'm trying to change to my own website theme. I even tried deleting the cpanel theme altogether and still get the same results. I'll keep trying different things to see if I can get what I want, I was just hoping that someone else maybe having the same difficulties as I am and could make it a little easier for me. Thanks for all your help.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
This is the url I was told to use when I set up my dedicated server.

When I go to the url or a client goes to the url they get the right theme but the login window looks like something provided by windows, firefox, opera etc. Which is fine with me however when I log out I get the default cpanel theme logout page which I'm trying to change to my own website theme. I even tried deleting the cpanel theme altogether and still get the same results. I'll keep trying different things to see if I can get what I want, I was just hoping that someone else maybe having the same difficulties as I am and could make it a little easier for me. Thanks for all your help.
The login and logout screens are controlled by the login theme, and are completely independent of the cPanel theme ("x3") -- not to be confused with the login theme ("Cpanel"). Now, it sounds like you're using HTTP Authentication rather than Cookie Authentication, thus your login theme will never be used for logins. To use your own login theme, first disable HTTP Authentication, a recommended practice as of 11.25 described in our recommended security settings:

http://docs.cpanel.net/twiki/pub/AllDocumentation/ReleaseNotes/recommended_settings.pdf (PDF)

The URLs that Don gave will help you test your theme. But to apply it permanently to all users, go into Tweak Settings and near the top, change the login theme to the name of your login theme. The login theme "cpanel" is what we supply.
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
:confused: Well I just downloaded my custom theme again from WHM and it seems I never did upload my custom theme as all the images are the default cpanel ones. I must have uploaded the original clone instead of my changed one.

My problem seems to be with compressing the files incorrectly or something. I have created all my own images keeping them all the same dimensions as the originals and tried quick zip, 7 zip and something called JZip. All compressed my files into a .tar.gz format but everytime I try to upload using the login theme manager in Whm I get the error message:

Checking Theme integrity......Sorry.. thats not a Login theme tarball (header.html is missing)!
All of these free software programs I've tried claim they can compress files into .tar, and .tar.gz so now I'm baffled. Can anyone reccomend another free program to try or can I use putty somehow to do this?

When I try to upload the original cloned files in .tar.gz format that I downloaded from WHM everything works fine.

I'll look through your security settings in the url provided, but all my security settings were set up for me by the company (as far as I know anyway) that I had install my firewall and antivirus/mailscanner software. I trusted their judgement in setting the security parameters.
 
Last edited:

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
:confused: Well I just downloaded my custom theme again from WHM and it seems I never did upload my custom theme as all the images are the default cpanel ones. I must have uploaded the original clone instead of my changed one.

My problem seems to be with compressing the files incorrectly or something. I have created all my own images keeping them all the same dimensions as the originals and tried quick zip, 7 zip and something called JZip. All compressed my files into a .tar.gz format but everytime I try to upload using the login theme manager in Whm I get the error message:

All of these free software programs I've tried claim they can compress files into .tar, and .tar.gz so now I'm baffled. Can anyone reccomend another free program to try or can I use putty somehow to do this?

When I try to upload the original cloned files in .tar.gz format that I downloaded from WHM everything works fine.

I'll look through your security settings in the url provided, but all my security settings were set up for me by the company (as far as I know anyway) that I had install my firewall and antivirus/mailscanner software. I trusted their judgement in setting the security parameters.
If possible, please attach a copy of the modified theme (as a gzip-compressed tar archive); I would like to compare your customized version with an unmodified cloned copy of the stock-default theme to check if there might be something specific causing the difficulty.

Regarding compression utilities, when using a Windows-based workstation I've used 7-zip in the past and preferred this over other software as 7-zip is free and open source; I would believe 7-zip should be sufficient in handling gzip-compressed tar archives.

Using PuTTY one can connect to the server via SSH, change to the appropriate directory containing the custom files involved (perhaps after having been uploaded somewhere via SFTP or FTP), and then compress the data via command-line (CLI) access to the "tar" utility; the following example command will accomplish the task of archive creation and data compression, (while ensuring to substitute the actual custom theme name where applicable); this command assumes your theme files are stored within a directory named "themename":
Code:
# tar -czvf login.themename.tar.gz themename/
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
It won't let me upload a .tar.gz file. I could send it to you via email if you'd prefer.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
It won't let me upload a .tar.gz file. I could send it to you via email if you'd prefer.
To ensure integrity of the archive, is there a URL where I may download it from? You may send me a PM with the link or include it in a thread reply here, whichever is preferred. :)
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
To ensure integrity of the archive, is there a URL where I may download it from? You may send me a PM with the link or include it in a thread reply here, whichever is preferred. :)
Thank you for the PM. After inspecting the packaged theme archive I pinpointed the issue to stem from a difference in the directory structure from the customized theme versus what is seen from a freshly-downloaded copy of a cloned theme.

Specifically, before packaging the theme files in a gzip-compressed tar archive, ensure to place the theme files into a directory named after the theme; for example, the directory structure should appear similar to the following after archival is completed:
Code:
# tar -tzf login.themename.tar.gz | sort
themename/
themename/broken.css
themename/broken.gif
themename/broken.html
themename/fav_old.ico
themename/favicon.ico
themename/footer.html
themename/footer_webmaild.html
themename/footer_whostmgrd.html
themename/header.html
themename/header_webmaild.html
themename/header_whostmgrd.html
themename/images/
themename/images/accept.gif
themename/images/bg.gif
themename/images/bg.jpg
themename/images/button-bg-over.jpg
themename/images/button-bg.jpg
themename/images/cpanel_login_sprite.jpg
themename/images/log_01.jpg
themename/images/log_01_webmail.jpg
themename/images/log_01_whm.jpg
themename/images/log_02.jpg
themename/images/log_02b.jpg
themename/images/log_03.jpg
themename/images/log_04.jpg
themename/images/log_1_webmail.jpg
themename/images/log_2.jpg
themename/images/mid.jpg
themename/images/reject.gif
themename/images/top-logo.gif
themename/images/webmail_login_sprite.jpg
themename/images/whm_login_sprite.jpg
themename/login_cpaneld.html
themename/login_webmaild.html
themename/login_whostmgrd.html
themename/policy.css
themename/preview.png
themename/resetpass_header_cpaneld.html
themename/resetpass_reset_cpaneld.html
themename/resetpass_resetform_cpaneld.html
themename/resetpass_resetform_nouser_cpaneld.html
themename/resetpass_resetformheader_cpaneld.html
themename/resetpass_suspended_cpaneld.html
themename/securitypolicy_footer.html
themename/securitypolicy_header.html
themename/style.css
themename/style_optimized.css
themename/styleold.css
themename/test.php
As seen above, the theme files are contained within a directory named after the theme; the theme directory and all contents are then stored in a gzip-compressed tar archive file (.tar.gz).
 

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Thanks I've got the files to upload and changed the tweek settings but now all I see when I go to the login pages is the grey background with the two login text boxes, no images at all. Is there something else I should be changing to allow the images to show? I've looked in the css files (tried adding cpanel/ to the url images/) and all the other files in the directory and cannot see anything that would make this happen. I even tried making changes to the images in the login.cpanel theme and then uploading the same theme name and tweeking the setting to cpanel and I get the same results.
 
Last edited:

nootkan

Well-Known Member
Oct 25, 2006
170
12
168
Well I figure it is because I'm not compressing the files right as I downloaded the default version of cpanel left the images alone and made some text changes in the footer and header html files instead, then I compressed the files as a tar file then compressed the tar files as a gz file and uploaded to whm. All I see is the default E6E6E6 background and login text boxes with no default images at all. Is there a tutorial on how to compress these files correctly as googling gz and tar compressing didn't find anything for me.

I've uploaded the default cpanel login theme for now so at least there are images even though they aren't my brand.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
[..]
Using PuTTY one can connect to the server via SSH, change to the appropriate directory containing the custom files involved (perhaps after having been uploaded somewhere via SFTP or FTP), and then compress the data via command-line (CLI) access to the "tar" utility; the following example command will accomplish the task of archive creation and data compression, (while ensuring to substitute the actual custom theme name where applicable); this command assumes your theme files are stored within a directory named "themename":
Code:
# tar -czvf login.themename.tar.gz themename/
To help reiterate and clarify, please try using the command provided above to compress and archive the theme directory and its contents via SSH access. You may upload the files to your server via FTP or SFTP and then via any SSH client software, such as PuTTY, you may login and change to the same parent directory that contains your login theme directory; from there you may compress and archive the theme as described earlier.

Steps to follow:
  • Step 1.) Upload via FTP or SFTP, for example, if you have a user account "username" and a theme directory of "themename" you may upload it to a path like the following:
    Code:
    /home/username/themename/
  • Step 2.) Via SSH access, login as the same cPanel account "username" that was used to upload via FTP or SFTP; once logged-in here are example commands that may be used (albeit you must replace the directory path and theme name with your actual username and customized theme name):
    Code:
    # cd /home/username/
    # tar -czvf login.themename.tar.gz themename/
    The command "cd" will change to the directory specified.
    The command "tar" (with included options "-czvf") will create a gzip-compressed tar archive, with verbose output, while specifying a specific archive file name followed by the contents to add such as the themename directory.
 

daniel-b

Member
Jul 28, 2010
24
0
51
Has WHM a web-based template modifier? as its hard being downloading a new packpage when you make a single change =/...