Missing Icons in Apache Localhost Directory
Posted by: pcgodfather (---.dsl.bcvloh.sbcglobal.net)
Date: April 21, 2008 05:51PM

Problem:
I've created a new Project named "test" and placed it in the folder named "test" in the "www" diectory. The Project shows up in http:// localhost/ (WAMP5 Homepage) under Your Projects. I click on the Project, it opens up a new page to "Index of /test" directory, however the icons to the left of the file names are all missing.

Installed are all the default scripts from WAMPserver:
Apache 2.2.8
PHP 5.2.5
mySQL 5.0.51a

When viewing the Source of the "Index of /test" page it shows the table structure pointing to the icons like this:
<img src="/icons/back.gif" alt="[DIR]"></td><td><a href="/">Parent Directory</a>
<img src="/icons/p.gif" alt="[ ]"></td><td><a href="hello.pl">hello.pl</a>

Can anyone help me figure our why the icons are missing?
Do I need to change the path to icons or something?

Thanks in advance,

Doc

Options: ReplyQuote
Re: Missing Icons in Apache Localhost Directory
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: April 21, 2008 06:08PM

yes in C:\wamp\bin\apache\apache2.2.8\conf\extra auto-index.conf there is two paths at the top that are wrong,,, make them point at the right folder in apache with the images... i cant help u more then this as im on my phone

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Missing Icons in Apache Localhost Directory
Posted by: yfastud (Moderator)
Date: April 21, 2008 06:15PM

To fix icons, open file httpd-autoindex.conf in C:\wamp\bin\apache\apache2.2.6\conf\extra and find these 2 path:

C:/Program Files/Apache Software Foundation/Apache2.2/icons/

And replace with:

C:/wamp/bin/apache/apache2.2.6/icons/

Make sure use forward flash / not backward flash \

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Missing Icons in Apache Localhost Directory
Posted by: pcgodfather (---.dsl.bcvloh.sbcglobal.net)
Date: April 21, 2008 06:23PM

Perfect! This fixed the problem. Thanks yfastud.

In the file "httpd-autoindex.conf" I changed line 20 and 22 to:

C:/wamp/bin/apache/apache2.2.8/icons/

I saved the page, Restarted All Serevices, refreshed my page, and now have icons restored in the directory. Thank you for the fast reply. Excellent help. Much appreciated.

Doc.

Options: ReplyQuote
Re: Missing Icons in Apache Localhost Directory
Posted by: yfastud (Moderator)
Date: April 21, 2008 06:53PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.