Reply to topic
PHP5 install on windows VPS
pulsar77


Joined: 19 Sep 2007
Posts: 9
Reply with quote
Hello,

I have installed the latest PHP on my windows server 2003 IIS6 machine. From the DOS command line interface (when in the C:\PHP directory which is where all the files are) if I type PHP phpinfo.php, the file runs.
phpinfo contains one line: <?php phpinfo() ?>

However I cannot get it to work on the browser on the server our out on the web using my URL. I'm sure it's just an II6 issue, but what am I doing wrong?

Thanks!
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 547
Location: Harrisburg, PA
Reply with quote
pulsar77,

I recently touched base about this to someone else a few weeks ago. Please have a look at this post:
http://forums.hostmysite.com/viewtopic.php?p=16983#16983

I posted a link to a tutorial of proper PHP setup in windows. If you follow the tutorial correctly, you should have no issue getting PHP to run under IIS6. I have used this tutorial myself several times without a problem.

You can't use the windows Installer. You have to use the ZIP version

However, if you still have a problem, please come back here and let me know and I'll see if I can help.
pulsar77


Joined: 19 Sep 2007
Posts: 9
Reply with quote
Thanks. I did follow the tutorial you mention: http://www.peterguy.com/php/install_IIS6.html

I am 95% certain I downloaded the zip file. I can;t access my server right now so I can't be sure. If I did use the windows installer, would that explain why it works from the command line but not via web browser? Seems like there is something else I need to do.....

I did place PHP in the C:\PHP directory and not at the top of the websites tree as your other forum post suggests. PHP is also listed in the application configuration (using all verbs) and I set scripts only (though perhaps not in the right directory..will need to check VPS later tonight).

Thanks for your help!

Also, any good tutorials about insalling active state perl? I used their installer but it doesn't seem to work and I can't find a decent tutorial.

I'm not totally helpless. I did install MySql just fine!
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 547
Location: Harrisburg, PA
Reply with quote
pulsar77 wrote:
...If I did use the windows installer, would that explain why it works from the command line but not via web browser?


You should check that you added the "C:\PHP\" to your environment variables. Windows might not be able to find your php.ini

Check that the PHP install did recurse down to the website that you are trying to access. If you installed it on the top website tree, it should have installed itself at all other websites, but double check anyways.

After you installed, did you reboot OR did you restart the "World Wide Web Publishing Service"?

Can't really help you with the perl install. Never tried it.

Glad to hear you did get MySQL working Smile
pulsar77


Joined: 19 Sep 2007
Posts: 9
Reply with quote
Check that the PHP install did recurse down to the website that you are trying to access. If you installed it on the top website tree, it should have installed itself at all other websites, but double check anyways.


How do I do that? Sorry, newbie question.

(I'm moving from a Solaris VPS on another provider. Tried the LINUX VPS at host my site and it was just a disaster. In 3 weeks I/they couldn't even get e-mail running. Switched to windows and got that up in under an hour. Unfortunately there is much for me to learn. Any book recommendations?)

Thanks for taking the time to help!
pulsar77


Joined: 19 Sep 2007
Posts: 9
Reply with quote
I think I got it! I didn't have a mime type .php

When I added that, it worked!
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 547
Location: Harrisburg, PA
Reply with quote
pulsar77 wrote:
I think I got it! I didn't have a mime type .php

When I added that, it worked!


Wohoo! Sorry for not responding earlier, but glad to see you go it. Very Happy
PHP5 install on windows VPS
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic