We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Manual installation of PHP

puneetdudeja
puneetdudeja asked
on
Medium Priority
423 Views
Last Modified: 2012-08-14
I have read the instructions in the PHP manual to set up php manually.
There are many problems:

First when i download the zip file, the extracted contents does not contain php5isapi.dll file which needs to be added in the ISAPI extension filters.

Second  I am stuck up in the following line in manual:

PHP may be installed as a CGI binary, or with the ISAPI module. In either case, you need to start the Microsoft Management Console (may appear as 'Internet Services Manager', either in your Windows NT 4.0 Option Pack branch or the Control Panel=>Administrative Tools under Windows 2000/XP). Then right click on your Web server node (this will most probably appear as 'Default Web Server'), and select 'Properties'.

I think I need to right click IIS and then Properties. Am I right? or something else?

Last when I click on HomeDirectory and then click on Configuration and then click on Add to Add/Edit Application Extension Mapping and then select the php5isapi.dll file and fill up the extension as .php,
Then the OK button is disabled and I cannot proceed.

Please help.
Comment
Watch Question

Commented:
The other issue you will face is gettiong MySQL working...

I reccomend this guide ... http://www.artfulsoftware.com/php_mysql_win.html

Commented:
Oh.. only one error in that guide... php.ini wants to be copied into C:\Windows - REMEMBER THAT!!!!! - if installing php manually.

Author

Commented:
BrianMM: You are wrong. We can put php.ini file anywhere as said by the following line in the manual:
PHP searches for php.ini in the locations described in The configuration file section. Read the link <The Configuration File> in the manual.

Author

Commented:
BrianMM: And I am not talking about other issues. First I want these issues to get solved.
CERTIFIED EXPERT

Commented:
The simplest way to quickly and suiccessfully install PHP is to use either WAMP or XAMP

http://www.apachefriends.org/en/xampp.html

or

http://www.wampserver.com/en/download.php

In general, accept the defaults and it takes about 2 minutes.
CERTIFIED EXPERT

Commented:
I should point out (since you mention IIS) that after installing Apache via either of these two, if you move Apache to listen on port 81 then IIS can still use port 80

Commented:
@bportlock he is'nt lookign for that, he's wanting to tell IIS to use php... so he's (probably) done the rest.

@puneetdudeja, if you read through the link i posted anyway, you will find it has step-by-step guide on IIS 4, 5, 6 and 7.. so I know your answer is in there as I am using IIS and PHP installed with the aid of this.

Any problems finding what you need in the guide, give a shout.
CERTIFIED EXPERT

Commented:
"...he's wanting to tell IIS to use php"

OK - I misunderstood the post. Thanks.

Author

Commented:
Nobody is reading the problems I have written.
Ok, atleast please help me solve the following issue:

When I right click on DefaultWebSite and then on Properties and then
click on "HomeDirectory Tab" and then click on "Configuration Button" and then click on "Add" to Add/Edit Application Extension Mapping and then select the php5isapi.dll file and fill up the extension as .php,
Then the OK button is disabled and I cannot proceed.
gr8gonzoConsultant
CERTIFIED EXPERT

Commented:
1. What version of Windows / IIS are you running?

2. Can you take a screenshot of the "Add/Edit Application Extension Mapping" popup where you're seeing the problem?

Normally, the OK button is enabled as long as there is something in the Executable field, so if it's not enabling at all, then there's something else missing.

Also, are you on any sort of network domain that might have group policies enabled, and are you logging in as an administrator on that computer?
Consultant
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
gr8gonzo:

I have Windows XP SP2 and IIS 5.1 and I am installing PHP 5.3.0
Also I am not logging as an administrator and also on a network domain but don't know whether group policies are enabled.
gr8gonzoConsultant
CERTIFIED EXPERT

Commented:
In that case, there's a chance that the hack I mentioned might work. I believe it applied to IIS on XP machines.

Author

Commented:
I am at home right now. I will try that hack tomorrow and come back if I have any problem. Thanks for your help.

Author

Commented:
gr8gonzo:

Your hack has worked for me absolutely fine.
But I have other problems if you could please help me.

They are saying in the manual that the PHP ZIP package for php 5.3.0 you download contains the following files which are required for installing:

php5isapi.dll
php.ini-dist
php.ini-recommended

But I don't have these files in the zip package I download.
Instead I have these:
php5nsapi.dll
php.ini-development
php.ini-production

Can I download these the previous files separately from net? Will it work?

Author

Commented:
I have downloaded php5isapi.dll separately and have used php.ini-development as php.ini and performed the other steps in the manual.

I stopped the IIS by using:
net stop iisadmin

But when I start the IIS again by using:
net start w3svc

I get an error which is shown in the attached screenshot:
Screenshot.JPG
gr8gonzoConsultant
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
g8gonzo:

Yes, You are right.
Php 5.2.x package is complete on www.php.net, but 5.3.x is not, its missing the files listed in the manual.

Php 5.2.x is successfully installed on my PC.

Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.