Question

Install PHP on Windows 2003 IIs x64

Asked by: BestWay

Hi

This a simple question.

How to configure the PHP in the Windows 2003?? And a x64 server is an extra :)

To run this i know that i need to run

CSCRIPT ADSUTIL.VBS SET W3SVC/AppPools/Enable32bitAppOnWin64 1

But the issue here is run the php.

I have follow all the steps that i find in the Internet, but still i cant get this to work

I create a web extension with the php.exe file, and  nothing. I have change the php.ini, and still cant get this to work

I have a server with this, then the server dead, now i create a new one and cant get the php to work.

After i change some settings, and create a file teste.php with:

<?php
// Show all information
phpinfo();
?>
and in the browser localhost/teste.php

I cant get nothing, no error, but still no information.

I am missing something, but i cant figure out what

Thank you

Jail

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-03-30 at 15:53:07ID24279299
Topics

PHP Installation

,

PHP for Windows

,

PHP Scripting Language

Participating Experts
2
Points
500
Comments
23

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. no php.ini
    I use phpinfo it tell me that php.ini is in /tec but when i go to /etc no php.ini I use commnd find but not found . It mean that i not have php.ini or not Thank
  2. SMTP settings in php.ini file not showing up on a <?php p…
    I'm developing a web form for our IT department and need assistance with the PHP side. When I submit the form, it goes to a confirmation page for the EU to review. When that last "Submit" button is clicked to mail the form i get the following error... Warning: mail(...
  3. PHP.ini changes not showing on phpinfo() Suspect Path…
    Trying to change values in the php.ini folder recently installed on a new server. The current php.ini file is located on c:\php\php.ini According to phpinfo() Configuration File (php.ini) Path C:\WINDOWS and Loaded Configuration File C:\php\php.ini I want the follow...
  4. Is it possible to install php4 in a windows 2003 server s…
    Hello, I need to run a web application that needs apache2 and php4. Using a later version of either apache or php it doesn't work. I tried to install the application in windows 2003 standard edition , and the apache works fine, but when I installed the php 4 the apache shows...
  5. appserv php works on vista, but not phpmyadmin or phpinfo
    I have appserv v 2.5.9 working on my vista machine. If I create a php page, the code works. If I try to go to a page with phpinfo(), I get a blank page. If I got to phpmyadmin I get "Cannot load mysql extension. Please check your PHP configuration. - Documentation"

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: routinetPosted on 2009-03-31 at 06:28:43ID: 24028664

What other configuration have you done?  Did you restart after enabling 32-bit apps?  Have you added php.exe or the ISAPI dll as a filter?  Have you made sure the IIS service user has adequate permissions to your PHP directory?  Have you added the PHP directory to your path?  Have you set the force_redirect option to 0 in php.ini?  Have you set your document root properly in php.ini?  Have you added PHP as a valid web service extension?

Most importantly, have you read and followed the instructions in both of these pages:

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

 

by: BestWayPosted on 2009-03-31 at 08:06:32ID: 24029684

Hi

Thank for the reply

I will try to answer all your questions
 
-  What other configuration have you done?  

I have tried severak. But the last was FastCGI

I have fastCGI, and the webPI for the configurations, and no luck

-  Did you restart after enabling 32-bit apps?  

Nope. This i neve did. I always enable and try to run php. Do you thing this may be a diffenrece?

-  Have you added php.exe or the ISAPI dll as a filter?  

I have tried with both ways.

-  Have you made sure the IIS service user has adequate permissions to your PHP directory?  

No i did not confirm that. But since this was a instaltion with webpi, or just msi, i think i do not need.

-- Have you added the PHP directory to your path?

YEs

-- Have you set the force_redirect option to 0 in php.ini?  

Yes

-  Have you set your document root properly in php.ini?  Have you added PHP as a valid web service extension?

YES i have tried to use dll, or exe as the web service extension.

I think the problem in where is the x64 server. I am not a php expert, but i have done this before, but never in a x64. Since i have no restart the server after enabling the 32 bit, maybe this was the reason.

Jail

 

by: routinetPosted on 2009-03-31 at 10:50:57ID: 24031621

Restarting can't hurt, and it's always a good idea to restart services when you make a configuration change.  IIRC, setting an environment variable (like PATH) does not take effect until the system is rebooted...don't quote me on that, though.  

Checking the permissions on the .exe/.dll folder can't hurt either.  Remember that you will need to allow permission to the same user listed on the application pool's identity tab.  By default, that should be "Network Service".  You can also try the IUSR account, but I'm pretty sure you need the application pool user.

Does a normal .htm file work as expected in the same directory?

Do your event logs show any events when you try to browse to a PHP page?

 

by: BestWayPosted on 2009-03-31 at 19:29:54ID: 24035569

Hi

Yes html pages work. I have some sites that just use html, and they are all working.

I have some changes. Add the I_USR to the php folder

If i use cgi.exe or just the php.exe as a filter i get

The HTTP Filter DLL C:\PHP\php-cgi.exe failed to load.  The data is the error.

and

Could not load all ISAPI filters for site/service.  Therefore startup aborted.

If i use dll, i get

The script started from the URL '/index.php' with parameters 'option=com_rss&feed=RSS2.0&no_html=1' has not responded within the configured timeout period.  The HTTP server is terminating the script.

and

The HTTP Filter DLL C:\PHP\php5.dll failed to load.  The data is the error.

Since this a Virtual Server, i will create another Windows 2003 server, now only with 32 bit.

And see if the problem is the server is 64 bit

Jail

 

by: RQuadlingPosted on 2009-04-01 at 14:44:16ID: 24044351

What version of PHP are you using?

http://windows.php.net/snapshots/ contains 32/64 thread-safe/non-thread-safe versions.

 

 

by: BestWayPosted on 2009-04-01 at 15:59:51ID: 24044801

Hi

What is the difference between the safe and the non safe?

Jail

 

by: RQuadlingPosted on 2009-04-02 at 00:37:47ID: 24047338

 

by: BestWayPosted on 2009-04-02 at 19:03:17ID: 24056152

Hi

First the msi files from the http://windows.php.net/snapshots, dont work.

I have download the 64 bit with zip option, and manually install.

But i get the problems :(

If i use the filters, i get in the event viewer

Could not load all ISAPI filters for site/service.  Therefore startup aborted.
The HTTP Filter DLL C:\PHP\php5.dll failed to load.  The data is the error.

If i remove the filter, and just use php extension, if i ass the .exe, i get nothing. Just a page error. A¬ny of the exe, if i use the php5.dll file i get "The specified procedure could not be found. "

I have made the path changes, the permissions change, the ini changes, and still this PHP dont work :(

I am still trying in the 64 bit server.

Any ideas?

Jail

 

by: RQuadlingPosted on 2009-04-03 at 01:39:23ID: 24057756

There is no ISAPI anymore for PHP 5.4 You have to use FastCGI. Which is why I've moved to IIS7 now.

 

by: RQuadlingPosted on 2009-04-03 at 01:40:43ID: 24057764

 

by: BestWayPosted on 2009-04-03 at 02:38:56ID: 24058100

Hi

But i am in Windows 2003, and IIs 6

Cant move to 2008.

I have installed the FasCGI in this server.

Since i have FastCGI, i dont use filters?? Is that right?

And in my Web extension file i use php5.dll, or other exe? In my installations i have php.exe, php-win.exe an php-cgi.exe. Withc this must i use in the extensions(if i need to use this), and witch i use in the Aplications Extension?

This php installation is driving me crazy :(

I will upload my php.ini just to confirm my settings

Jail

 

by: BestWayPosted on 2009-04-03 at 02:39:56ID: 24058103

Hi

Cant upload the ini file? Even if I zipped?

Jail

 

by: BestWayPosted on 2009-04-03 at 02:52:28ID: 24058155

Hi

I have renamed the ini to txt

Jail

 

by: RQuadlingPosted on 2009-04-03 at 05:17:37ID: 24058988

For the fast cgi, you use php-cgi.exe

I don't know about the front end stuff of IIS yet, so the terminology is all very "Microsoft" and not Sambar/Apache/etc.

 

by: BestWayPosted on 2009-04-03 at 10:50:58ID: 24062471

Hi

Still doesn't work :(

Jail

 

by: RQuadlingPosted on 2009-04-03 at 14:46:27ID: 24064609

And what do you get to see? I've only just started using IIS7 with PHP. IIS6 is a complete unknown to me.

 

by: routinetPosted on 2009-04-03 at 20:57:39ID: 24065866

When you add PHP to a web site in IIS6, do not add it through the 'ISAPI Filters' tab.  You'll need to create an application root for the site.  For PHP, this should be done from the document root of the web site.  I'm not sure what kind of consequences exist for using a subdirectory instead of the document root.  Right-click the site in IIS6, select 'Properties', switch to the 'Home Directory' tab, and create the application if it has not been done already.  If you'd like to run the site in its own application pool, be sure to create the pool first and it will appear in the "Application Pool" dropdown.  Give the application a name, and set the "Execute Permissions" dropdown to at least "Scripts Only".  Now click the "Configuration" button.

The new dialog, titled "Application Configuration", should start on the "Mappings" tab, which is where you add the PHP extensions to your site.  Check the list in the top box to make sure they do not already exist.  If they do, either edit the existing entry, or delete it and remake it.  When creating the entry, the first textbox, "Executable", should point to the .exe or .dll you intend to use for script processing.  If you want the FastCGI model, point it to php-cgi.exe.  If you want the ISAPI model, point it to php5isapi.dll.  You can set the "Verbs" option to "All verbs" unless you have a reason not to.  At a minimum, you should be allowing the GET, POST, and HEAD verbs.  Since PHP is a script engine, make sure the "Script Engine" box is checked.  Finally, check the "Verify that file exists" box.  This forces IIS to check for 404 and permissions issues before calling the interpreter, thus preventing some rather unfriendly errors such as no HTML headers being sent.

That sets up the site.  Now you need to make sure the proper permissions are in place.  In IIS, go to "Application Pools", and find the pool you used for the site.  Right-click it, and select "Properties".  On the "Identity" tab, you'll either see it using a system account (the top option, which defaults to "NETWORK SERVICE"), or you can make it use a local user account of your choosing.  IMPORTANT: if you choose "Configurable", you MUST provide a password even if you use a system account.  A blank password will not work unless the user's password is really blank.  Generally speaking, the default setup of IIS gives NETWORK SERVICE the proper permissions in the appropriate c:\inetpub directories.  You should only need to change this if you want to isolate how the site runs, or change the directories from which the site pulls resources.  Once you know the user it will be using, go to your document root in Windows Explorer and make sure that user has MINIMUM read/execute permissions on it.  Push inheritance down for the entire directory tree from the document root.  Any directories holding files that must be written by your application will need modify access allowed for the same user.

Finally, you'll need to make sure that PHP is enabled in the Web Service Extensions section of IIS.  In that section, add an entry for "PHP", and make sure all the calling methods you need are listed.  For example, in a shared server environment, I list both php-cgi.exe and php5isapi.dll, since some sites prefer one over the other.  As long as the method you registered with the site is also allowed here, you should be good to go.  If your entries already exist, go into the properties to ensure the individual file is not prohibited.  It can appear as "Allowed" on the main list, while the individual file is not.

Just to be safe, restart.

Assuming you have set IIS to run 32-bit, and your PHP force_redirect option is set properly, you should now be able to see PHP pages from your server.

 

by: BestWayPosted on 2009-04-04 at 20:17:42ID: 24070037

Hi

routinet thanking for the message, and step by step

I have already follow that steps, i have double check that, and all is the same :(

Still get Error 404 de HTTP, running a php test page.

<?php
phpinfo();
?>

Do you thing the problem is the php.ini? Is the only thing that i can remember, since all the other configuration is like that.

PS: I am running now in a 32bit Server

Jail

 

by: routinetPosted on 2009-04-04 at 22:58:09ID: 24070315

That's the strange thing.  If it was just that PHP wasn't working, you would get a 500 error (Internal Server Error), or an application error.  A 404 means it is not finding the page.  That could be permissions, or just something simple like a typo in the name.  Double-check all the permissions.  If you still can't find anything, download http://live.sysinternals.com/procmon.exe and find out what is actually being requested/denied.

 

by: BestWayPosted on 2009-04-05 at 05:55:32ID: 24071333

Hi

In the 32 bit server the problem is resolved. In the php.ini, after I remove the

doc_root = c:\inetpub\wwwroot // for IIS/PWS

The problem was revolved.

Now i am tring to make it work in the 64 bit server. Since i do not want to server(one with webmail, and other with the other sites), i will try in this server.

I have made the same changes, but until now did not work.

My last option is to leave the 32 bit server working.

Jail

 

by: BestWayPosted on 2009-04-06 at 18:20:59ID: 24083300

Hi

In the 64 bit server php is running.

The same problem, remove the doc_root, from the php.ini and all work.

So much time, and the doc_root was the problem :(

Jail

 

by: BestWayPosted on 2009-04-09 at 17:51:21ID: 24112859

Hi

Ok the problem is resolved and i will close this question.

Since anyone give the right answer i will split the points just for your suport.

I think i dont like in this question/answer, is when we suport a user to try to help, and then he just close/delete the question, just because he found the solution, or the problem is resolved with other solution.

I think in most cases the Expert deserve the points, just to put the user in the right track, or just for the support. Not in all the cases, but in most of them.

But that is just me, and my opinion.

Regarding my problem, i just need one little support on an issue.

How can i disable the error_reporting in the php.ini??

I have tried several ways, but none of them work. And then the php page give time out, or

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

My last change was to error_reporting(E_ERROR | E_WARNING | E_PARSE)

And still no work, and some error.

If i comment the  error_reporting, is ok but too i get too many

Strict Standards: Non-static method JLoader::import() should not be called statically

Is there any other way to disable this type of report?

Thank you

Jail

 

by: BestWayPosted on 2009-04-09 at 21:38:49ID: 24113428

Hi

Problem resolved.

error_reporting = E_ALL & ~E_NOTICE

Not error_reporting(E_ALL & ~E_NOTICE)

Thank you both for the support

Jail

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...