Favicon.ico for Cacti Installations
Moderators: Developers, Moderators
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Favicon.ico for Cacti Installations
Just to make your installation a little more custom I converted the Cacti cactus from the main cacti website into a favicon.ico and figured out what needed to be done to have cacti serve it up. I'm not exactly sure if all the steps below are actually needed since I'm not really that well versed in *nix, but it's what I had to do to make it work under the CactiEZ installation.
Step 1: Download and unzip the Attached favicon.zip file and put the favicon.ico in the root of your cacti installation. For me that's: /var/www/html
Step 2: chown -R apache:apache favicon.ico
Step 3: chmod 644 favicon.ico
Step 4: Edit your httpd.conf file with this line: AddType image/x-icon .ico
Step 5: Edit the top_header.php and the top_graph_header.php right below the <head> tag with the following line:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
This is now working for me under all my plugins, except for Mactrack, I don't know why that one isn't working.
Step 1: Download and unzip the Attached favicon.zip file and put the favicon.ico in the root of your cacti installation. For me that's: /var/www/html
Step 2: chown -R apache:apache favicon.ico
Step 3: chmod 644 favicon.ico
Step 4: Edit your httpd.conf file with this line: AddType image/x-icon .ico
Step 5: Edit the top_header.php and the top_graph_header.php right below the <head> tag with the following line:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
This is now working for me under all my plugins, except for Mactrack, I don't know why that one isn't working.
- Attachments
-
- Cacti-Icon.gif (3.24 KiB) Viewed 29569 times
-
- favicon.zip
- (2.25 KiB) Downloaded 2014 times
Last edited by streaker69 on Thu Dec 07, 2006 11:10 am, edited 5 times in total.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
I was following instructions from another site on how to make this work. They suggested it.rony wrote:Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.
Maybe you can help out. I edited my original post because I found that the top_header.php wasn't working across all the tabs, only the console. Can you think of what needs to be done to make it work across all the tabs?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
I would change step 3 to "chmod 644 favicon.ico".
Also, you need to edit top_header.php and top_graph_header.php.
Also, you need to edit top_header.php and top_graph_header.php.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
I did it to both, and I started to get errors.rony wrote:I would change step 3 to "chmod 644 favicon.ico".
Also, you need to edit top_header.php and top_graph_header.php.
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/include/top_graph_header.php:2) in /var/www/html/include/top_graph_header.php on line 56
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
Cacti icon - Minor changes
Hello.
I just performed some minor art to add transparency to the cacti icon borders. Tested under Apache on MS, IIS on MS and Apache on Ubuntu linux, works ok for me using Firefox or IExplorer browsers.
I suggest you to also add the line to the "auth_login.php" file in the main cacti directory (always inside the <head> section).
P.S. My icon is named "cacti.ico" so rename in to "favicon.ico" if preferred. Favicon.ico is a generic name for the "main icon" of a web site, so using it may make unnecessary to edit the auth_login.php file.
Regards,
Bernardo.
I just performed some minor art to add transparency to the cacti icon borders. Tested under Apache on MS, IIS on MS and Apache on Ubuntu linux, works ok for me using Firefox or IExplorer browsers.
I suggest you to also add the line to the "auth_login.php" file in the main cacti directory (always inside the <head> section).
P.S. My icon is named "cacti.ico" so rename in to "favicon.ico" if preferred. Favicon.ico is a generic name for the "main icon" of a web site, so using it may make unnecessary to edit the auth_login.php file.
Regards,
Bernardo.
- Attachments
-
- cacti-icon.zip
- (531 Bytes) Downloaded 1120 times
I see Fav Icon is now built in to 0.8.7
Nice work everyone!
Nice work everyone!
Thank you,
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Re: Favicon.ico for Cacti Installations
Nice work! Are you knowing probably how to create and install a transparent favicon.ico?
Who is online
Users browsing this forum: No registered users and 0 guests