PHP 5.x with IIS 6.0

Due to a hardware fault on our old web server I had to move this homepage to a new machine.

Previously we were running on Debian Linux with the Apache web server. The server I had “spare” is a Windows 2003 Server machine. I installed the IIS 6.0 on it and configured the PHP extensions.

I had serious issues getting it up and running on the different web sites so I will show you with this manual how you can easily install PHP on IIS 6.0 and troubleshoot if you have any issues.

For those who are interested here is the System Info of our new web server.

http://www.tac-ireland.com/phpsysinfo/

Read more to continue…

1. Install PHP

1.1 Download and unzip the latest version of PHP (5.2.3 at the moment) to C:\<Directory>\PHP\

* Download the latest Windows Binaries of PHP from http://www.php.net/downloads.php and unzip it somewhere on your hard drive.
* Download the “PECL 5.2.3 Win32 binaries” zip file and extract the contents of that archive into C:\<Directory>\PHP\ext. It contains required extensions for mySQL or any other PHP addon. Move php5servlet.dll and php5activescript.dll from C:\<Directory>\PHP\ext into C:\<Directory>\PHP\.

1.2 Create php.ini
In your PHP directory, you’ll find a couple of php.ini-* files. For an easy initial setup rename the php.ini-recommended to php.ini.

2. Configure PHP mainly editing php.ini

2.1 Open the php.ini and uncomment cgi.force_redirect in php.ini and set equal to 0
*** This is a very important step, don’t neglect it. ***
http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/1.JPG

2.2 Install a browscap.ini file
For scripts like phpMyAdmin please download the php_browscap.ini from http://browsers.garykeith.com/downloads.asp to the extras directory under your PHP install directory (C:\<Directory>\PHP\extras\php_browscap.ini, for example), and change the browscap variable in php.ini to be the full path to the file (browscap=C:\<Directory>\PHP\extras\php_browscap.ini).

2.3 Create a session state directory and point the session.save_path php.ini variable to it. Create a session directory somewhere on the server or use the existing Windows one e.g. C:\Temp\. This directory will hold many small files with session variable information for PHP. Now change the value of the session.save_path variable in php.ini to be the full path to that directory (session.save_path=C:\Temp).

2.4 Setup the PHP extensions.
Now you have to enable some additional PHP extensions (For information on extensions, visit http://ca3.php.net/manual/en/install.windows.extensions.php)
The most important to start with is the extension=php_mysqli.dll simply remove the ; before it to enable the extension. This one is used for the mySQL database connection.

2.5 Create your PHP directory as variable PATH inside Windows
Make a rightclick onto My Computer – Press Properties – Select the Advanced tab – Click the Environmental Variables Button – Scroll down to PATH and double click same – Enter in there your PHP installation directory e.g. “C:\<Directory>\PHP\;” the final; is very important else none of your PATH info will work and your command prompt is useless 😉

http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/2.JPG
Reboot your PC to enable the made changes.

2.6 Add the IniFilePath into the Registry.
Click Start – Run – fill in regedt32 – and press OK
In the Registry Editor please go the HKLM and create under Software a new Key named “PHP” inside this key you create a new Strink named “IniFilePath” with your PHP installation path as value
http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/3.JPG

3. Configure IIS

Open the IIS mms. Click Start Administrative Tools – Internet Information Services (IIS) Manager

3.1 First you have to add the Web Service Extensions.
Press the + in front of your PC Name – select the “Web Service Extensions” – press “Add a new Web Service Extension” – Give the extension a nice name e.g. “ISAPI PHP Extension” – click Add and browse to your PHP installation directory ad select the php5isapi.dll – Check the “Set extension status to Allowed” checkbox and click “OK
http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/4.JPG

3.2 Add new extension (.php)
Now you have to tell the IIS what it should do when a .php file is requested.
Right-click on “Web Sites” in the left pane, then click “Properties” in the menu that pops up – Flip to the “Home Directory” tab – Click “Configuration” – Click “Add…” – Browse to the php5isapi.dll in the “Executable” textbox – Enter “.php” in the “Extension” textbox – Select radial button “Limit to“, enter “GET,POST,HEAD“- Click “OK” all the way out
This will apply to every website.

http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/5.JPG

3.3 Turn on scripting permissions for your websites
Right-click on “Web Sites“, goto Properties – Home Directory – Change the “Execute permissions” dropdown to “Scripts only“.

http://me.go-unified.com/images/blogs/PHP%205.x%20with%20IIS%206.0/6.JPG

3.4 Restart IIS
Right-click the local computer in the left pane of IIS Manager, click on All Tasks – Restart IIS… – Enjoy
4. Test your setup

4.1 Create a new file named test.php in one of the websites e.g. C:\Inetpub\wwwroot
As content simply type in the following:

<?php
phpinfo();
?>


Open the newly created file with the web browser and you will see the php info page that indicates a successfull installation!

60 comments to PHP 5.x with IIS 6.0

  • Hello there! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My blog addresses a lot of the same topics as yours and I believe we could greatly benefit from each other. If you’re interested feel free to shoot me an e-mail. I look forward to hearing from you! Wonderful blog by the way!

  • Every weekend i used to pay a quick visit this site, for
    the reason that i wish for enjoyment, for the reason that
    this this web page conations in fact fastidious funny material too.

  • Goodd day! Do you know if thеy make аny pplugins to аssist with Search Engine
    Optimization? I’m trying tο get my blog to rank for some targeted keyworԁs but I’m not seeing very good results.
    If youu knοw of any please share. Many thanks!

  • Weapons, vehicles, food, Nick Ramos can combine it all.
    What’s worse is the people who pass such horrible judgments on the industry, really don’t know what they are talking about.
    It was also noted that Xbox Live Gold Memberships would transfer over to the
    Xbox One.

    my webpage; Real Racing 3 Hack (http://www.youtube.com)

  • Microsoft now presents the following generation video games console “Xbox 360”; fusing games, entertainment, area, details and development all together. Xbox 360 is a video game device that places you at the center of the enjoyment experience.

  • Do you have a spm issue on this blog; I also am a blogger, and I was wondering your situation; many
    of uus have developed sime nice practices and we are looking to swap solutions with other folks,
    be sure to shoot me an e-mail if interested.

    My website … online working capital loans

  • you’re truly a good webmaster. The site loading velocity is
    amazing. It sort of feels that you’re doing any distinctive trick.
    Furthermore, The contents are masterpiece. you have done a great task
    on this topic!

  • I just like the valuable information you supply ffor your articles.
    I will bookmark your weblog and test again right here frequently.
    I am moderately sure I’ll be informed many nnew stuff right here!

    Best of luck for the next!

    My web page … Working Capital Loan

  • This article is truly a fastidious one it assists new web users,
    who are wishing for blogging.

  • Hey There. I found your blog using msn. This is an extremely
    well written article. I will be sure to bookmark it and
    return to learn more of your useful information. Thanks
    for the post. I will certainly return.

  • This paragraph will help the internet visitors for creating new
    weblog or even a weblog from start to end.

  • Amazon’s Gold Box Deal today is the Otterbox Preserver Series
    for iPhone 5 or 5s at 67% off list price.

  • Hello to evefy one, it’s really a pleasant for me to paay
    a quick visit this site, it cconsists of valuable Information.

  • Hello very nice website!! Man .. Beautiful ..

    Superb .. I’ll bookmark your blog and take the feeds additionally?
    I’m happy to find numerous useful info here
    within the post, we want develop more techniques in this regard, thanks for sharing.
    . . . . .

  • Good day! This pos could not be written any better! Reading through this post reminss me of my old room mate!
    He always kept talking about this. I will forward this page to him.

    Pretty sure he will have a good read. Thank you for sharing!

    Allso visit my site; almond milk benefits

  • My relatives always say that I am killing my time here at
    web, however I know I am gettng knowledge all the time
    by reaqding such pleasant articles or reviews.

    My page chinos for men regular fit

  • Person trials and initiatives at the accelerators are funded from the taking part the german language and overseas institutions, which experts claim tend to be in public backed up.
    Of your doris safe-keeping wedding ring was originally the location where the the
    conversion process of a b-meson into its antiparticle,
    the anti–m-meson was observed.

  • I hardly leave a response, however after reading a few of the
    remarks on this page PHP 5.x with IIS 6.0 | Go-Unified. I do have a few questions for you if it’s allright.
    Could it be only me or does it give the impression like a few of these remarks appear as if they are
    coming from brain dead people? 😛 And, if you are posting at additional sites, I would like to keep up with you.
    Would you list of every one of your social pages like your twitter feed,
    Facebook page or linkedin profile?

  • One of the first of these to achieve success was Sim – City and its later versions, which focus
    on the creation of a virtual city. “Build your dream city, manage your neighborhood, and develop franchises with friends”, that’s the tagline of City – Ville, a new online social
    game on Zynga’s. graphics cards will be more powerful then we had ever seen before.

    Feel free to visit my blog – SimCity BuildIt Cheats iPhone
    (Albertha)

  • Hey there would you mind letting me know which webhost you’re using?
    I’ve loaded your blog in 3 completely different web browsers and I must say
    this blog loads a lot quicker then most. Can you recommend a good web hosting provider at
    a reasonable price? Thank you, I appreciate it!

  • For a number of years, athletes and health
    enthusiasts have been adopting a protein-rich diet to build
    more muscle mass and promote weight loss. Inclusion of turmeric in cleansing diet helps
    in fat metabolism and formation of bile secretions.
    Popular forms of fibre include wheat bran and psyllium husks; however
    these fibres may bloat some people.

  • Hey There. I discovered your blog the usage of msn. This is
    an extremely neatly written article. I will
    be sure to bookmark it and return to read extra of your helpful info.
    Thanks for the post. I will definitely comeback.

  • Hi to every body, it’s my first visit of this web site;
    this webpage carries awesome and in fact good data for visitors.

  • More over the gas produced due to this waste contains methane which is prime cause of globsl warming rather than carbon dioxide.

    Heavy savings on your electricity bills- Well, once you hve
    installed a solar panel it will result in optimum benefits.
    It iis very importannt to wear appropriate clothing whwn you are camping.

  • Hi admin, i found this post on 22 spot in google’s search results.
    I’m sure that your low rankings are caused by high bounce
    rate. This is very important ranking factor.
    One of the biggest reason for high bounce rate is
    due to visitors hitting the back button. The higher your bounce rate the further down the search results
    your posts and pages will end up, so having reasonably low bounce rate is
    important for improving your rankings naturally. There is very handy wp
    plugin which can help you. Just search in google for:
    Seyiny’s Bounce Plugin

  • My brother suggested I would possibly like this blog.

    He was entirely right. This publish truly made my day.
    You can not believe simply how much time I had spent for
    this information! Thank you!

  • Kiezels zijspoor is prachtig vormgegeven van ceder- en krijgt uw woning een kijkje van raffinement.
    Verticale en horizontale scheuren in de muren en op de concrete slab vloer,
    met name die omringd door efflorescence, zijn een andere potentiële
    bron van problemen. Dus ook het meubilair dat is gebouwd in die
    periode en beantwoordden aan de ontwikkeling van het modernisme wordt aangeduid als moderne meubelen. “Consumenten Unie: Tips voor consumenten Herfinanciering Hun Home:. Table tops, glazen kommen, vaas, antiek, urnen, regency potjes, designer blikken, maaswerk en nog veel meer. De manier waarop de verlichting is ingesteld kan grote veranderingen in de manier waarop je je voelt.

    EEN derde optie, voor het gebruik van meubels reeds beschikbare thuis zorgt voor maximale kostenbesparingen, maar ga voor deze optie alleen als u kunt extra zoals meubilair voor het exclusieve gebruik van de home office. Keuken en badkamer metamorfoses kan erg duur zelfs voor de doe het zelf soort huiseigenaar, opnieuw budget, budget, budget. Gebied tapijten met florale patronen hebben een geschiedenis van aanwezigheid in koninklijke families. IK zou adviseren om een robuuste roestvrijstalen behuizing minimaal met een gietijzeren of gegoten kunststof voet als standaard. Zorg ervoor dat de volgorde waarin uw voltooide projecten. Deze gids zal u leren beproevingsmethoden te erkennen fout in elektronica.

    De rechten en plichten van elke partij moet worden ingesteld in termen die dubbelzinnigheid te voorkomen. Volgens Vulcan Kelder Waterdicht maken, dit type overdrukklep systeem vereist geen graven buiten muren,. Zelven en opknappen projecten kunnen soms overweldigend, dus niet vergeten om het leuk te hebben. Het is een formule die werkt, maar groeit vermoeiend als de show vordert. Als een huiseigenaar heeft een omvangrijk eigen vermogen of een goed hoewel improvement plan, een cash-out herfinancieren voor woningverbetering is een zeer goede lening product. Vele bronnen van kelder lekkage zijn duidelijk zelfs nonprofessionals.

    Er zijn maar weinig projecten die voldoen aan die verbetering van uw woning. Bovendien is deze markt is zeer concurrerend, dus zodra u ontvangt uw beveiligde online zelven lening tarieven kunt u zien dat u een aantal voordelige opties. Een ideaal bouwmateriaal voor huis renoveren en groene bouw, glazen blokken zijn efficiënt, duurzaam, duurzaam en herbruikbaar. Het is goed om discussie met de aannemer vóór de aanvang van de werkzaamheden. Zoeken naar een bedrijf die is installeren TPO membraan voor ten minste 5 jaar. 85% Van de consumenten rekening houden met de kleur als de belangrijkste reden waarom zij dit product koop.

  • This is very fascinating, You’re an excessively professional blogger.
    I’ve joined your feed and sit up for seeking more of your excellent post.
    Additionally, I’ve shared your web site in my social
    networks

  • It’s remarkable in support of me to have a web page, which is helpful in support
    of my experience. thanks admin

  • – Measurements appareil (HxLxP) : 31x37x21cm.

  • I don’t know whether it’s just me orr if perhaps everybody else experijencing
    problems with your blog. It appears as if some of the text
    within your content are running off the screen. Can someone else please provide feedback and
    let me know if this is happening tto them as well? This might be a problem with my web browser because I’ve had
    this happen before.Cheers

  • Grande informations . Lucky Me Je ai couru à travers votre site
    par hasard ( stumbleupon ) . Je ne ai livre marqué it pour plus tard !

  • This site was… how do I say it? Relevant!! Finally I’ve found something that helped me.
    Many thanks!

  • Everyone loves what you guys tend to be up too.

    This type of clever work and coverage! Keep up the very good
    works guys I’ve incorporated you guys to blogroll.

  • Great beat ! I wish to apprentice while you amend your
    web site, how can i subscribe for a blog web site?

    The account aided me a acceptable deal. I had been a little
    bit acquainted of this your broadcast provided bright clear concept

  • Lewis is the Wizards of the starting small forward, also the Wizards now the highest-paid player, but this year, he averaged 9 points and 4 rebounds.
    Jordan 11 Gamma Blue http://www.pacificfirst.org/62/

  • First off I would like to say wonderful blog!
    I had a quick question that I’d like to ask if you
    do not mind. I was curious to know how you center yourself
    and clear your head before writing. I have had
    a difficult time clearing my thoughts in getting my thoughts out.

    I truly do take pleasure in writing however it just
    seems like the first 10 to 15 minutes tend to be wasted just trying to figure out how to begin. Any ideas or hints?
    Appreciate it!

  • If some one wants expert view about blogging and site-building then i recommend him/her to pay a
    visit this web site, Keep up the pleasant work.

  • Nice answer back in return of this difficulty with real arguments and telling everything
    on the topic of that.

  • Thanks a bunch for sharing this with all people you actually realize what you’re speaking about!
    Bookmarked. Kindly also seek advice from my website =). We will have a link change arrangement among us

  • Do you mind if I quote a few of your articles as long as I
    provide credit and sources back to your
    weblog? My blog site is in the exact same niche
    as yours and my users would truly benefit from some
    of the information you present here. Please let me know if this alright with you.
    Appreciate it!

  • Wonderful, what a web site it is! This weblog gives
    helpful information to us, keep it up.

  • Hi there, You have done an excellent job. I’ll definitely digg it and personally suggest
    to my friends. I’m sure they will be benefited from this website.

  • I’m really enjoying the theme/design of your blog. Do you ever run into any internet browser
    compatibility problems? A handful of my blog visitors have complained about my website not operating correctly in Explorer but looks great in Firefox.
    Do you have any suggestions to help fix this issue?

  • Having read this I thought it was extremely informative.
    I appreciate you finding the time and effort to put this information together.

    I once again find myself spending way too much time both reading and
    posting comments. But so what, it was still worth it!

  • Very good info. Lucky me I found your site by chance (stumbleupon).

    I’ve book marked it for later!

  • Amazing! Its in fact amazing post, I have got much clear idea
    regarding from this article.

  • Great web site you have got here.. It’s difficult to find quality writing like yours nowadays.
    I truly appreciate people like you! Take care!!

  • Quality content is the key to interest the visitors to go to see the website, that’s what
    this website is providing.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Bandwidth utilization bar