Go Premium for a chance to win a PS4. Enter to Win

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

Php on both and IIS: how to?

Hi all.

I have a Win 8 64 bit machine with xampp installed on and all is ok. Now I need to run some php application on IIS so I installed IIS and the installation is okay. I configured IIS to run on port 8080 so to don't have problems with Apache port 80. But what I need is to run php on both servers. There is a way to share Php installation? Or what I have to do to run php in IIS also?

Thanks in advance
Marco
0
Marco Gasi
Asked:
Marco Gasi
2 Solutions
 
Jagadishwor DulalBraces MediaCommented:
Typically developers use IIS for asp programming and apache for php programming. In your case you just want to test it in both?? Better to get resources about from iis.net see reference links below:
http://php.iis.net/
http://www.iis.net/learn/application-frameworks/running-php-applications-on-iis
and here you can get configuration for windows server 2012 and windows 8
http://www.iis.net/learn/application-frameworks/scenario-build-a-php-website-on-iis/configure-a-php-website-on-iis
0
 
Marco GasiFreelancerAuthor Commented:
What I want to know if there is a way to use my php installation, running in Apache, in IIS without installing another php from scratch.
Maybe it's convenient uninstall xampp and install php, mysql and  apache manually: I yet did it following Kevin Yank's guide and it's not so difficult as I read around the web.
But before to do it, I wish to know if, once done that, I can use some trick to use the same php (and maybe mydql) in boths servers adjusting or commenting some lines or so...
0
 
GaryCommented:
Get the installer from http://www.php.net/ but also get the zip (manual) version and go ahead with the windows installation.
Copy the C:\PHP\php.ini-dist file to C:\Windows\ and rename it php.ini
Copy the zip contents to the php folder which should be c:/php (you are overwriting the XAMPP installation
If I have remembered everything you should now have PHP working in IIS and XAMPP
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Marco GasiFreelancerAuthor Commented:
Hi Cathal.
Please, let me understand: now I have php in C:\xampp\php so do I have to extract the php zip to c:\xampp\php?

Do I have to leave the destination direcotries of the installer how they are?

Thx
0
 
Dave BaldwinFixer of ProblemsCommented:
No, do Not use the PHP from XAMPP.  Install a fresh version of PHP for Windows in it's Own directory.  IIS and Apache require different settings for PHP and you can't share them.  On my machine that has both web servers, I use the 'Non Thread Safe' version for IIS and the 'Thread Safe' version for Apache.
0
 
Marco GasiFreelancerAuthor Commented:
I apologize for the delay in awarding points: other problems have requested my total attention.
Thanks, I installed fresh php for IIS.
Cheers
0
 
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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