Solved

Images and Style Sheets not loading in Localhost after PHP install on IIS 5.1

Posted on 2008-06-21
5
463 Views
Last Modified: 2013-12-13
I just installed PHP 5.2 on my Windows XP Pro machine running IIS.  After the configuration, I found that my websites are no longer loading images and style sheets in Localhost.  They're fine on the remote webserver and all the file paths are correct, but in localhost mode the pages display with no styles and the images are broken place holders.

I get this issue on both Firefox and IE.
Any suggestions?
0
Comment
Question by:amar556
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 49

Expert Comment

by:Roonaan
ID: 21838587
Hello amar556,

PHP shouldn't affect your stylesheets and images. Can you call the images and stylesheets directly?

Regards,

Roonaan
0
 

Author Comment

by:amar556
ID: 21838602
Hi Roonaan,

No I can not.  when I try to access the images directly, I get the following error:

HTTP 403.2 - Forbidden: Read Access Forbidden
Internet Information Services

Technical Information (for support personnel)

    * Background:
      This error can be caused if there is no default page available and directory browsing has not been enabled for the directory, or if you are trying to display an HTML page that resides in a directory marked for Execute or Script
0
 
LVL 49

Accepted Solution

by:
Roonaan earned 125 total points
ID: 21838616
Are you sure your files are accessible to the IIS server? Does your IIS run on the correct account?
I'm have very little experience in IIS security, so not sure what the other options for this platform are.
0
 

Author Comment

by:amar556
ID: 21838670
Yes, things were working beautifully before I installed PHP (and Firefox 3).  My IIS is running under the IUSR_* account with "Anonymous access" checked for the Directory Security setting.

I only made two changes to my IIS configuration when I installed PHP:
1) For my Default Website I changed the Execute Permissions to "Scripts Only"
2) I added the PHP5isapi.dll to the Mappings configuration.

After that I noticed my local sites weren't loading at all giving the 403.2 error I described above.  So I changed the Execute Permissions to "Scripts and Executables".  This resulted in the pages loading, but neither the style sheets nor the images would load.

NOTE: all my local sites are *.asp applications.  Traditional ASP 3.0 sites.
0
 

Author Comment

by:amar556
ID: 21838736
I figured it out!
Looks like I need to have the "Read" box checked in the Home Directory tab of the Default Website in IIS.  Once I did that, everything loaded just fine.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question