Solved

Manual installation of PHP

Posted on 2009-07-09
18
398 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.
0
Comment
Question by:puneetdudeja
  • 8
  • 4
  • 3
  • +1
18 Comments
 
LVL 11

Expert Comment

by:BrianMM
ID: 24812138
The other issue you will face is gettiong MySQL working...

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

Expert Comment

by:BrianMM
ID: 24812165
Oh.. only one error in that guide... php.ini wants to be copied into C:\Windows - REMEMBER THAT!!!!! - if installing php manually.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24812230
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.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24812271
BrianMM: And I am not talking about other issues. First I want these issues to get solved.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 24812312
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.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 24812329
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
0
 
LVL 11

Expert Comment

by:BrianMM
ID: 24812425
@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.
0
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 24812451
"...he's wanting to tell IIS to use php"

OK - I misunderstood the post. Thanks.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24812673
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.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 34

Expert Comment

by:gr8gonzo
ID: 24813126
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?
0
 
LVL 34

Accepted Solution

by:
gr8gonzo earned 500 total points
ID: 24813139
Also, this is a really old hack so it probably won't work, but after you select the executable, try clicking inside the Executable textbox itself and see if the OK button enables at that point.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24814606
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.
0
 
LVL 34

Expert Comment

by:gr8gonzo
ID: 24815092
In that case, there's a chance that the hack I mentioned might work. I believe it applied to IIS on XP machines.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24815227
I am at home right now. I will try that hack tomorrow and come back if I have any problem. Thanks for your help.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24820531
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?
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24820642
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
0
 
LVL 34

Assisted Solution

by:gr8gonzo
gr8gonzo earned 500 total points
ID: 24827232
It's usually not a good idea to try to download pieces of PHP and use them together with an existing installation. You can never be sure how the other piece was compiled.

I'm not quite sure how much 5.3.0 has changed, but for now, I'm just using PHP 5.2.x - it should come complete with the php5isapi.dll file. Delete (or archive) the 5.3.x version you have and download 5.2.x and use that instead.
0
 
LVL 2

Author Comment

by:puneetdudeja
ID: 24828884
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
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now