OK.... I give up!!!

  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

How do I install PHP on Windows Server 2003 with IIS? I have read more pages than I care to... All of them state this and that but none state step 1 do this, step 2 do that. I have tried both manual and windows installer which is what I would prefer. None of them speak to the latest version of PHP. So... I take it that someone has to be born a braniac regarding PHP to do this?

Where can I find step by step instructions of how to install PHP on a Windows 2003 IIS 6 machine??

Cheers!!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • George L.
  • Bronze Member
  • Bronze Member
  • George L.
  • Posts: 2209
  • Loc: Malaysia

Post 3+ Months Ago

Try search WIMP.
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa

Post 3+ Months Ago

or WAMP ...
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

um.... well that didn't work!

mysqld.exe - Application Error
The instruction at "0x006b8853" referenced memory at "0x00c20000". The memory could not be "read"

Click on OK to terminate the program
Click on CANCEL to debug the program



Per my original post... where can one find step by step instructions to install PHP on Windows 2003 Server / IIS6?
  • righteous_trespasser
  • Scuffle
  • Genius
  • User avatar
  • Posts: 6230
  • Loc: South-Africa
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

These steps do not work. I have tried them 4 times. Infact, the post with those steps is what prompted me to post this thread 2 weeks ago when they didn't work then with PHP 5.2.6. I have tried again now several times with 5.2.8 and same thing! Nothing!

My IIS server is configured correctly and responds correctly with http://localhost. I created a phpinfo.php file and placed it in |Inetpub\wwwroot. After installing PHP 5.2.8 using the Windows Installer and selecting IIS CGI I get nothing when doing http://localhost/phpinfo.php

The steps on the page you mention state that PHP will install to C:\PHP which is not correct. The installer packages (both I mention here) install to C:\Program Files\PHP. I have tried installing to that folder and also changing the path to C:\PHP. Same thing... nothing!

Doesn't PHP extension have to be added to in IIS or something?

Where can I find step by step instructions to install PHP, MYSql on a Windows 2003 Server running IIS6?
  • Prime
  • Professor
  • Professor
  • User avatar
  • Posts: 935
  • Loc: Liverpool

Post 3+ Months Ago

it maybe helpful if you can elaborate on exactly what issues you had with the tutorial R_T listed instead of just repeating yourself on every single post...

Constructive feedback can be a 2-way street... :roll:


edit// you updated your previous post whilst I composed this one ... :D
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

Um... I did give useful information... Read the post

And I keep asking for step by step instructions as none have been provided... or I wouldn't be asking.. Make sense?

One post says "try search Wimp". One post says "or Wamp". I expained that I tried Wamp once I searched for it and it doesn't work either!

I have read more pages concerning this than I care to. None of them are consistant. None of them pertain to the latest greatest bits either.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

http://www.iisadmin.co.uk/?p=5

Tell me if that helps.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

So, the article you list is still not what I am asking. The article pertaining to installing PHP on IIS6.0 however is exactly what I have been talking about.

"I found that there was a lack of really good documentation available if you wanted to use IIS 6.0 as your web server. I also found quite a bit of contradictory information regarding the installation of PHP and MySQL on Windows 2003".

If you noticed in that article it lists the version of PHP is 5.1.4. The most current version of PHP is 5.2.8. An thus why my question. There are more pages on the web pertaining to install it this way or install it that way. Use the Windows Installer, don't use the Windows Installer etc etc. However, each and every one of them is for a much older version than current.

Also, the article you list indicates to try the ISAPI version. Well.. the latest version of PHP includes an IIS ISAPI version. That doesn't work either...

I am truly amazed at how difficult it is not only trying to install this but also trying to get any current information.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

You can change the install directory to something other than Program Files. In fact with php you are better not to have it in a directory with a space in it like "Program Files". I would suggest altering the install directory to the root of c: And yes you have to add the php mime type to IIS if you do the install manually, but if I recall the installer does that for you.

Admittedly my tutorial is a bit outdated. I haven't had a pressing need to update to the newest version. When I do, I'll rewrite and update that tutorial. However for the most part, I think all the points are still there. My version is 5.1.4.4. I have some time off over the holidays. If I get the chance I'll try to set up a "start from scratch" install with current versions and do screen shots this time or video tute.

Things to check for / trouble shooting.
1. Check your environment variables to make sure the path to php was updated correctly during install.
2. Try rebooting after install. Even though I don't recall there's anything in the install instructions that say you have to, I always found it necessary.
3. If you've installed it in Program Files try installing it to c:\PHP instead.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

tonymuffin wrote:
So, the article you list is still not what I am asking. The article pertaining to installing PHP on IIS6.0 however is exactly what I have been talking about.

So, the article I gave doesn't help?

[EDIT:] The PHP version then was old but no matter, you can download the latest PHP... the steps to download it however would still practically be the same.

About ISAPI... how does that piece of information ruin your install?

Another step-by-step article if you are still lost and confused:

http://peterguy.com/php/install_IIS6.html
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

I have followed your instructions I believe to the letter.

I have installed in C:\PHP and I believe from what I could gather from your instructions added the folder to the path. However, I cannot be sure it is correct as that part in the instructions is vague. When performing http://localhost/phpinfo.php I get THE WEBPAGE CANNOT BE FOUND.

Not sure would you mean by "check my environment variables".

I did not change any settings in Scriptmaps as I am running IIS website and also a Sharepoint site from this box. And from what I could gather from your instructions it sounds like I would break those. However, again it's vague.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

Bogey wrote:
tonymuffin wrote:
So, the article you list is still not what I am asking. The article pertaining to installing PHP on IIS6.0 however is exactly what I have been talking about.

So, the article I gave doesn't help?

[EDIT:] The PHP version then was old but no matter, you can download the latest PHP... the steps to download it however would still practically be the same.

About ISAPI... how does that piece of information ruin your install?

Another step-by-step article if you are still lost and confused:

http://peterguy.com/php/install_IIS6.html



I didn't say that it ruins the install... I state that I have tried multiple installs and it does not install.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

ATNO/TW wrote:
You can change the install directory to something other than Program Files. In fact with php you are better not to have it in a directory with a space in it like "Program Files". I would suggest altering the install directory to the root of c: And yes you have to add the php mime type to IIS if you do the install manually, but if I recall the installer does that for you.

Admittedly my tutorial is a bit outdated. I haven't had a pressing need to update to the newest version. When I do, I'll rewrite and update that tutorial. However for the most part, I think all the points are still there. My version is 5.1.4.4. I have some time off over the holidays. If I get the chance I'll try to set up a "start from scratch" install with current versions and do screen shots this time or video tute.

Things to check for / trouble shooting.
1. Check your environment variables to make sure the path to php was updated correctly during install.
2. Try rebooting after install. Even though I don't recall there's anything in the install instructions that say you have to, I always found it necessary.
3. If you've installed it in Program Files try installing it to c:\PHP instead.


The installer does not ad the mime type
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

Bogey wrote:
tonymuffin wrote:
So, the article you list is still not what I am asking. The article pertaining to installing PHP on IIS6.0 however is exactly what I have been talking about.

So, the article I gave doesn't help?

[EDIT:] The PHP version then was old but no matter, you can download the latest PHP... the steps to download it however would still practically be the same.

About ISAPI... how does that piece of information ruin your install?

Another step-by-step article if you are still lost and confused:

http://peterguy.com/php/install_IIS6.html



I actually already tried these steps 2 weeks ago, http://peterguy.com/php/install_IIS6.html. These were the first steps I found. They don't work either. What's also interesting here is how different these steps are as well...
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I had already typed what was below the dotted line before I saw you updated this post. To add the application mapping read this page and follow the directions
http://www.iis-aid.com/articles/how_to_ ... page=0%2C2

That is page 3 of installing php on IIS in five easy steps. You might want to review the other four pages / steps and see if there is anything I overlooked in my tute. I wrote that awhile back and really haven't done much to review it for issues with current versions.


------------------------------------------
Well your install might be OK. If you are getting an error "webpage cannot be found" sounds more to me like it's just not finding phpinfo.php

I would double check your file name because in my tutorial I instructed to name the file info.php not phpinfo.php (the name doesn't matter at all - just make sure you are looking for it how you named it.) If you followed my tutorial and named it info.php you should be looking for http://localhost/info.php


All that file should contain would be this:
Code: [ Select ]
<?php phpinfo(); ?>


For info on checking your environment variables check this link http://vlaurie.com/computers2/Articles/environment.htm

I've never used Sharepoint and don't know much about it. However, if you have made Sharepoint your default website, then you should save info.php into your Sharepoint website folder rather than wwwroot (like I said I'm not certain how sharepoint works. I have Zero experience with it.)
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

The file I created is phpinfo.php. URL is to http://localhost/phpinfo.php. The error is "webpage cannot be found".

Sharepoint is not my DEFAULT website. phpinfo.php is saved in the folder of my DEFAULT website.

How do I confirm that C:\PHP is in my path and what exactly should it look like?
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

ATNO/TW wrote:
I had already typed what was below the dotted line before I saw you updated this post. To add the application mapping read this page and follow the directions
http://www.iis-aid.com/articles/how_to_ ... page=0%2C2

That is page 3 of installing php on IIS in five easy steps. You might want to review the other four pages / steps and see if there is anything I overlooked in my tute. I wrote that awhile back and really haven't done much to review it for issues with current versions.


------------------------------------------
Well your install might be OK. If you are getting an error "webpage cannot be found" sounds more to me like it's just not finding phpinfo.php

I would double check your file name because in my tutorial I instructed to name the file info.php not phpinfo.php (the name doesn't matter at all - just make sure you are looking for it how you named it.) If you followed my tutorial and named it info.php you should be looking for http://localhost/info.php


All that file should contain would be this:
Code: [ Select ]
<?php phpinfo(); ?>


For info on checking your environment variables check this link http://vlaurie.com/computers2/Articles/environment.htm

I've never used Sharepoint and don't know much about it. However, if you have made Sharepoint your default website, then you should save info.php into your Sharepoint website folder rather than wwwroot (like I said I'm not certain how sharepoint works. I have Zero experience with it.)


I already looked at this page 2 weeks ago, http://www.iis-aid.com/articles/how_to_ ... page=0%2C2
My configuration is setup like this. This doesn't work.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

At the moment not certain what else to suggest
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

sweet...

Is there any other way to test whether PHP is installed correctly?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

other than pulling up any php file not that I know of. If you made a small HTML file (can contain anything) and call it info.html and put it in the same place you put info.php does the HTML file work?
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

YES
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

What did you use for your application mapping? Mine is mapped to c:\PHP\php-cgi.exe with verbs set to "all"

In your Web Service extensions verify that php is there and it's status is allow.

If it is not you need to add it and the required file should be c:\PHP\php5isapi.dll

Obviously in both cases this assumes your php install is in c:\PHP and php5isapi.dll and php-cgi.exe both exist in that path.

btw - don't feel bad about having difficulties with this. I had to figure all this crap the first time on my own with way less help or tutorials than you have. I've never had one go 100% perfect the first time.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

php5isapi.dll

PHP is in the web servie extensions and statis is allow

Um... php5isapi.dll and php-cgi.exe both need to be in the path?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

yes. At least they are for mine. However for application mapping I did not map it using the all websites folder like shown in that link. I only mapped it for the default website. And that is mapped to php-cgi.exe

And the dll is for the web extension. And yes they both need to be in the respective path.

That's all I'll be able to answer tonight. Leaving work and won't be on again until tomorrow.

But I've had mine configured like this since I wrote that tutorial and it works perfectly. Hope that helps.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

Wish it did help....

As I stated in this thread already, I have read more pages on how to do this than I care to at this point. I cannot believe how different all these installations are and how there is no one step by step set to do this. Besides maddening... this is truly amazing!
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

Ok...finally getting somewhere!

Looking at different sites and instructions (particularly this one again, http://www.iisadmin.co.uk/?p=5
) I finally got PHP installed with a successful return from http://localhost/phpinfo.php.

I then installed MySQL per a different set of instructions and after copying the php.ini to C:\windows I was finally able to see MySQL show up when making a call to http://localhost.phpinfo.php.

However, in the instructions from http://www.iisadmin.co.uk/?p=5 where it states to create and call a dbtest.php which I created, (http://localhost/dbtest.php) I once again get "webpage cannot be found".

So... even though I am further, I am guessing I am still dead in the water?

My plans have been over my holiday vacation to get all of this setup on my servers so that I could host a blog for myself and one for my wife. Hopefully someone will be able to assist here...
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I don't know why you keep getting "page not found errors". If your file is in the right place, and I'm sure it is, you shouldn't be getting a 404 error, you should be getting a mysql error.

As far as getting mysql to work, make sure the following three extensions are uncommented in php.ini
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll

Also make sure all three of those .dll files are in your extensions folder and in php.ini make sure the extensions path is correct.

For a connect test try this:
Code: [ Select ]
<?php
$username = "username";
$password = "password";
$hostname = "localhost";   
$dbh = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to MySQL");
print "Connected to MySQL<br>";
$selected = mysql_select_db("mysql",$dbh)
    or die("Could not select root_mhf");
   
$result = mysql_query("SELECT user, password FROM user");
while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
print "User:".$row{'user'}." Password:".$row{'password'}."
    <br>";
}
 
mysql_close($dbh);
?>
 
  1. <?php
  2. $username = "username";
  3. $password = "password";
  4. $hostname = "localhost";   
  5. $dbh = mysql_connect($hostname, $username, $password)
  6.     or die("Unable to connect to MySQL");
  7. print "Connected to MySQL<br>";
  8. $selected = mysql_select_db("mysql",$dbh)
  9.     or die("Could not select root_mhf");
  10.    
  11. $result = mysql_query("SELECT user, password FROM user");
  12. while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
  13. print "User:".$row{'user'}." Password:".$row{'password'}."
  14.     <br>";
  15. }
  16.  
  17. mysql_close($dbh);
  18. ?>
  19.  


That should connect to MySql and select the mysql database that is built in, query the users table and print a list of usernames and passwords if the connection is successful. If it isn't successful it should error.

As a side note for when you do get MySQL working, I would not recommend using wordpress. I spent 3 days trying to install it, and posted several messages at their support forums. I got no support help, could not get it to install on Windows and gave up. I used b2evolution instead and had it installed and running in less than 5 minutes after reading the install instructions.

One thing I have found is Windows does not like the new password encryption. I've always had to use old password, and because several applications like phpMyAdmin are really fussy, I actually ended up disabling grant tables altogether.

One other thing. After making any changes to php.ini or after adding users or changing permissions or anything to mySQL I've found it works best to not only stop and restart the mysql service, but also IIS and web services.
  • tonymuffin
  • Novice
  • Novice
  • tonymuffin
  • Posts: 26

Post 3+ Months Ago

The file is in the right place.

http://localhost/phpinfo.php does return what is expected as I mentioned and obviously would not if it was not in the correct location.

The new file I created from your code is exactly the same as the other test file I created yesterday and again it returns, "the website cannot display the page'. It is located in the same directory as phpinfo.php.

The 3 extensions are indeed listed in the php.ini.

The extenion path in the php.ini is indeed correct and points to C:\PHP\ext.

Not recommend using WordPress? Wow... that's what this whole things was trying to accomplish.

I have no idea what "grant tables" are. I am new to all of this myself.

So, let me ask a couple other questions here:

1. Why are we doing all of this in the DEFAULT website? That's not where I want the blog to be in the first place. I want the blog to be something like, http://blog.mydomainname.com, not in the DEFAULT website.

2. Perhaps this is all not working because I am attempting to set this up as a test and learn how to do it on one of my spare servers. While this spare server is connected to the internet and indeed has IIS running, it does not have a dedicated IP address. I figure this really should not make any difference as http://localhost works and all. But perhaps that is an issue. This server is a backup of one of my other "live" IIS servers and I wanted to test the installation of PHP, MySQL and WordPress on it first prior to tackling the actual live server. I took a snapshot of the live server this morning and perhaps I should try with that. Again, per the first question above, I will be wanting this blog to be http://blog.mydomainname.com. I already have the DNS setup and pointing to this and the temporary index page is live. I am guessing this should be how it is done correct?

3. Not that I am an expert on Word Press or for that matter even blogging (I have never done it) however, I was under the impression that Word Press was the end all application to create blogs. This is not the case? Perhaps it works better or work better doing all of this including Word Press with Apache?

4. Now, saying the 'Apache' word... Would it be easier and better to set all of this up using Apache? I am not familiar with Apache but am aware that it also can run on a Windows box which is also running IIS. However, the question seems to be that IIS needs to be shut down when installing Apache as it will steall port 80. Then bring IIS back up and give it a different port number. Is it not possible to install Apache to a different port number?

Again.. I am truly amazed with all the forums and threads out here regarding PHP, MySQL, Word Press etc, etc... that there is no definitive installation guide as I have stated a number of times. This means that everyone is flying by the seat of their pants which is a little scarry and also would then indicate that security with regards to these applications is probably iffy as well.

Ponderous...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 42 posts
  • Users browsing this forum: No registered users and 85 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.