OK.... I give up!!!

  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 12:02 pm

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...
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 22nd, 2008, 12:02 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2008, 12:09 pm

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.)
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 12:40 pm

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
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 12:43 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2008, 1:55 pm

At the moment not certain what else to suggest
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 2:33 pm

sweet...

Is there any other way to test whether PHP is installed correctly?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2008, 2:41 pm

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?
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 2:48 pm

YES
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2008, 3:01 pm

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 3:07 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2008, 3:22 pm

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 3:38 pm

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
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 22nd, 2008, 7:16 pm

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 23rd, 2008, 8:03 am

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.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • tonymuffin
  • Novice
  • Novice
  • No Avatar
  • Joined: Dec 21, 2008
  • Posts: 26
  • Status: Offline

Post December 23rd, 2008, 9:19 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 23rd, 2008, 9:19 am

Post Information

  • Total Posts in this topic: 42 posts
  • Users browsing this forum: No registered users and 241 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.