Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

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

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
amar556
Asked:
amar556
  • 3
  • 2
1 Solution
 
RoonaanCommented:
Hello amar556,

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

Regards,

Roonaan
0
 
amar556Author Commented:
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
 
RoonaanCommented:
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
 
amar556Author Commented:
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
 
amar556Author Commented:
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now