Getting download prompt when accessing setup.php

I am trying to set up Zenphoto on a Windows 2003 server running IIS 6. I installed and configured PHP on this server using the tutorial at http://peterguy.com/php/install_IIS6.html

When I run the test.php script from that website, everything is fine. However, when I attempt to run setup.php, I only get a prompt to download it. All of my setup on the server looks fine; the application configuration is mapped to handle .php, the Zenphoto folder is inheriting these permissions, etc. and, as I mentioned, the test.php script runs fine.

I am a total PHP noob and have no clue where the problem could be; lots of research hasn't brought up anything that helped. Any ideas?

Comments

  • As an addendum to this- I tried copying the working test.php from the main wwwroot folder to the zenphoto folder and seeing if I had the same problem. I didn't- the test.php file opened fine- no download prompt. In addition, I have not modified any of the zenphoto files in any way.
  • Sorry, Can't help you here. If you are getting a prompt to download the setup.php file then your server is not treating it as a servable page. As to why the test.php would work and the setup.php would not I have no idea. Perhaps there are file permission problems? Just a guess. Did you try test.php from the zp_core folder?
  • OK- one problem out of the way...just tried clearing my browser cache and now setup.php is loading- as a blank page. Argh. So now I guess it's a *different* problem with PHP!

    "Did you try test.php from the zp_core folder?"
    Just tried it and it works fine.

    ""Perhaps there are file permission problems?"
    I checked the permissions and they are identical- they are being inherited from the main wwwroot folder.
  • More info- it's a 500 error. I looked through the other 500 error issues reported here and nothing has helped.
  • 500 is an internal server error, so something seems not set correctly. Check also your GCI logs to see if any errors have been reported.
  • I have got a similar problem.
    The script is installed successfully and everything works, but when I browse the gallery I sometimes got the question to download "IMG0015.jpg.php" (for example) instead of just viewing the page. I've noticed also that it's more frequent in the admin section, when I try to save something.
    Btw after a page reload (or a couple of page reloads) it does work.

    Another problem is the blank page. Sometimes when I want to view a picture I just got a blank page. Again, after a page reload the picture is shown or the settings are saved.

    If I may guess I would say this is a problem of the host/server. It's not strong enough to load or handle the script. But that's just a guess and I hope it can be solved ...
  • Something seems to be failing on your server or browser. Please review your server CGI logs and look to see if the browser is getting javascript errors.
Sign In or Register to comment.