LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-01-2005, 09:15 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Icons for Apache


Can someone tell me where this icon for the "image2" is located at? I looked in my apache2 dir and was not able to find a storage folder for icons or anything like that? I would like to add my own .jpg image called "image2" for my Apache web server however I need to find where they are located.

Here is the icon I am talking about. Its the one you see on the very left next to each file name.

http://i4.photobucket.com/albums/y14...will/index.jpg
 
Old 11-01-2005, 09:27 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
These icons are in a directory named "icons". There is a "Alias /icons/ "/some/directory/" directive in your apache config file. So you have to go to the /some/directory to change those icons.
 
Old 11-01-2005, 11:02 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Yes, I figured that much. I just was unable to find /some/directory/ so I was wondering if anyone had a good place to check since I can't seem to find it.
 
Old 11-01-2005, 01:51 PM   #4
aassoum
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
Hi,

In recent versions of Apache the icon folder is located in /var/www/icons.

Anyway, if you don't find it there you can try to user the slocate command to find where the folder is located (you can even try the command slocate with your file name and it will most probably find it).

Ammar.
 
Old 11-01-2005, 02:00 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
How would I use the "slocate" the command in this scenario?

Here is what I see in my directory.

Code:
stricom:/# cd /var/
stricom:/var# ls
backups  cache  lib  local  lock  log  mail  opt  run  spool  tmp  www
stricom:/var# cd www/
stricom:/var/www# ls
apache2-default  index.html  wedding
stricom:/var/www# rm index.html
stricom:/var/www# ls
apache2-default  wedding
stricom:/var/www# cd apache2-default/
stricom:/var/www/apache2-default# ls
apache_pb2_ani.gif       index.html.de  index.html.he.iso8859-8   index.html.no            index.html.ru.utf8
apache_pb2.gif           index.html.dk  index.html.hr.iso8859-2   index.html.po.iso8859-2  index.html.sv
apache_pb2.png           index.html.ee  index.html.it             index.html.pt            index.html.var
apache_pb.gif            index.html.el  index.html.ja.iso2022-jp  index.html.pt-br         index.html.zh-cn.gb2312
apache_pb.png            index.html.en  index.html.ko.euc-kr      index.html.ru.cp-1251    index.html.zh-tw.big5
banner.jpg               index.html.es  index.html.lb.utf8        index.html.ru.cp866      robots.txt
index.html.ca            index.html.et  index.html.nl             index.html.ru.iso-ru
index.html.cz.iso8859-2  index.html.fr  index.html.nn             index.html.ru.koi8-r
 
Old 11-02-2005, 01:54 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Run
Code:
updatedb
to update your slocate.db and then:
Code:
locate image2.gif
 
Old 11-02-2005, 05:57 AM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Very cool.

Code:
stricom:~# updatedb
stricom:~# locate image2.gif
/usr/share/apache2/icons/image2.gif
/usr/share/apache2/icons/small/image2.gif
Now to figure out which one is which. There seems to be a large and a small one so I will need to mess around.

What does the "updatedb" command do?
 
Old 11-02-2005, 06:40 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
updatedb updates the database used from (s)locate to index your files. Run:
Code:
man slocate
man updatedb
to learn more.

Regards
 
Old 11-02-2005, 06:56 AM   #9
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache icons brak Linux - Software 3 06-19-2004 05:44 PM
removed dockapps icons and wmconfig icons by mistake ethereal Linux - General 1 09-04-2003 04:54 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM
Icons, icons everywhere, eating resources! Stephanie Linux - General 0 07-09-2001 11:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration