FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How can I run PHP on IIS?





shenyl
I have installed PHP many years ago on IIS, and now would like to do it again on my new notebook.

Can anyone direct me to the latest and most reliable source to install PHP on my IIS server?

Can PHP work well with Microsoft SQL server? Or must I also install MySQL - which I find it not so useful for triggers programming.

Help appreciated. Thanks.
blueray
Did you checked out the php manual already?
There is step-by-step tutorial that tell you how to do that.

http://www.php.net/manual/en/install.windows.php

Some important point is,
do remember to put the path for the php installation directory to the system path on the system applet.

Also,
If you are using php its version below 5.2.x.
You can choose from ISAPI or CGI/FastCGI mode.

or if you are on php 5.3.x or later.
The only choose is CGI/FastCGI (on my test)
shenyl
Thanks for the reference and the highlights.

Will visit and try the installation.

What about the database management?

Must I use MySQL or able to use MSSQL?

I hope I can cut back some of these servers.

Thanks.
rockacola
shenyl wrote:
Thanks for the reference and the highlights.

Will visit and try the installation.

What about the database management?

Must I use MySQL or able to use MSSQL?

I hope I can cut back some of these servers.

Thanks.


You can do IIS + PHP + MySQL stacking
shenyl
Thanks, I know I can install all these, but that will just be loading more resources at start-up of my OS. They will also takes up more memory and redundant periodic activities.

I hope to develop using PHP + IIS + MS SQL (IIS and MS SQL servers are already running on my computer).

Any more specific info?
blueray
Mysql server will use your system resource only when it is running.
You can at anytime shutdown it by the services MMC console in the administive folder of the control panel folder.
(This assumed you are installed it with the MySQL windows installer)

You are also be able to use MSSQL.
But as I know php 5.2.x and below
There is an library that support connect to it.
It functionanlity limited only to 6.x however.

If you google the internet. An updated library that will connect to MSSQL 7.0 too but no more.

On the other hand, download an MSSQL driver for php is another option.

google for this "mssql driver for php" I got

http://www.microsoft.com/sqlserver/2005/en/us/PHP-Driver.aspx

If you develop in-house.
Than it should not be an issues.
However, if it is on shared hosting. It might be an issue as you are none of control for
what extension(s) that can be loaded.


[1] PHP builtin MSSQL library: ntwdblib.dll
shenyl
Thanks for all the great details you have given. Yes, I am sort of using MSSQL for internal development, and what you have mentioned seem to suit my need.

By the way, what is the latest PHP version - more than 7.0?

With regards and many thanks to you blueray.
rvec
shenyl wrote:
By the way, what is the latest PHP version - more than 7.0?

http://php.net

Quote:

Stable Releases

1. Current PHP 5.3 Stable: 5.3.0
2. Current PHP 5.2 Stable: 5.2.11

Release Candidates

1. 5.3.1RC2 (20 Oct 2009)



And there's a 6.0 in development, but you shouldn't use that.
akaichen
shenyl wrote:
Thanks for the reference and the highlights.

Will visit and try the installation.

What about the database management?

Must I use MySQL or able to use MSSQL?

I hope I can cut back some of these servers.

Thanks.


if you want use MSSQL, you should install ODBC driver for MSSQL
thnn
Microsoft have an excellent website for PHP on IIS. I used both of these while setting it up and found it very helpful. However I now use Zend Server community edition, which configured IIS for me.

http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-70/
http://php.iis.net/
Related topics
What should I go for
PHP Question
Communicating between web pages
The last foolish PHP/MySQL Question of the Year....
php extensions config
How can I do this?
Php with Sun Java System Application Server Platform
Running PHP Script without PHP Server?
PHP beginner help!!!
Anyone install wiki for an Internal office setup?
PHP vs J2EE
please please beta test it (PHP coders)
getting started in php
PHP SOAP error
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.