TUTORIAL: How to install PHP and MySQL on IIS

  • compaqras
  • Newbie
  • Newbie
  • No Avatar
  • Joined: 18 Apr 2006
  • Posts: 8
  • Status: Offline

Post February 4th, 2007, 8:53 pm

i follow the steps but when i type link of some php file, it give option to download instead to run the script. any clue, why is that.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 4th, 2007, 8:53 pm

  • Zackeriney
  • Graduate
  • Graduate
  • No Avatar
  • Joined: 06 Jul 2005
  • Posts: 128
  • Status: Offline

Post February 8th, 2007, 5:34 am

brillaint ill try this later cheers
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 8th, 2007, 8:21 am

compaqras wrote:
i follow the steps but when i type link of some php file, it give option to download instead to run the script. any clue, why is that.


You have to register the php extension in IIS. Instructions are provided in this link
http://www.microsoft.com/technet/archiv ... x?mfr=true
  • Zackeriney
  • Graduate
  • Graduate
  • No Avatar
  • Joined: 06 Jul 2005
  • Posts: 128
  • Status: Offline

Post February 8th, 2007, 10:37 am

i get

phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation


mysql.dll exists in the ext dir and i have uncommented it in php.ini, everything else is working i think but thats not :S
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 8th, 2007, 10:42 am

Reboot your computer or restart the MySql service.
  • Zackeriney
  • Graduate
  • Graduate
  • No Avatar
  • Joined: 06 Jul 2005
  • Posts: 128
  • Status: Offline

Post February 9th, 2007, 12:27 pm

Nice guide, everything else works but i get

phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 9th, 2007, 12:37 pm

What version of MySql and PHP are you installing?
  • Zackeriney
  • Graduate
  • Graduate
  • No Avatar
  • Joined: 06 Jul 2005
  • Posts: 128
  • Status: Offline

Post February 12th, 2007, 7:28 am

Iv uninstalled it all now am going to start from fresh. i dont really need that to work just trying to get java to work. i have 5 java files that were sent to me and i cant get them to work on tomcat. also when i go to http://x.x.x.x:8080 i get the router admin login when im on the local network so it is really annoying to rest. if ido localhost:8080 or 192.168.0.2:8080 it will work :s it always used to work just doing my external ip, but dosnt now on my new pc.

i am installing the latest of both whichever versions that is.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 12th, 2007, 7:37 am

For php 5 the following should be uncommented in the extensions list

extension=php_mysql.dll
extension=php_mbstring.dll

(note there is a difference between mysql.dll and php_mysql.dll

Make sure the path to the extensions directory is correct and make sure php_mysql.dll and php_mbstring.dll exist in the extensions directory.
  • Zackeriney
  • Graduate
  • Graduate
  • No Avatar
  • Joined: 06 Jul 2005
  • Posts: 128
  • Status: Offline

Post February 12th, 2007, 7:55 am

cheers will try later because one of my websites hasnt got hosint at the moment

where is the extensions folder? i couldnt find it last time so just left it
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post February 12th, 2007, 8:12 am

You need to download the php 5.2.1 Windows Binaries from the download page and unzip it to the PHP folder. (it contains the extensions folder and the extensions. The Windows install file does not include them - they need to be added separately)

http://www.php.net/downloads.php
  • xxkmanxx
  • Born
  • Born
  • No Avatar
  • Joined: 12 Feb 2007
  • Posts: 1
  • Status: Offline

Post March 5th, 2007, 12:42 pm

is there any tutorial on how to install PHP and MySQL on the new IIS 7.0 on Windows Vista?

thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 19508
  • Loc: Pittsburgh PA
  • Status: Offline

Post April 12th, 2007, 5:50 am

Not here at OZZU, no. And unfortunately I don't have IIS 7.0 or Vista yet to mess around with it.
  • brentv911
  • Born
  • Born
  • No Avatar
  • Joined: 11 May 2007
  • Posts: 1
  • Loc: Clinton, IA
  • Status: Offline

Post May 11th, 2007, 8:30 am

I'm not well versed in any of this.. I'm trying to install and learn PHP but i'm using Windows Server 2003. I followed the instructions on installing PHP but for some reason when I create the test file and place it in the wwwroot folder, it doesn't work.

Any ideas?
  • iceberg11
  • Born
  • Born
  • No Avatar
  • Joined: 25 May 2007
  • Posts: 1
  • Status: Offline

Post May 25th, 2007, 11:53 am

Zackeriney wrote:
i get

phpMyAdmin - Error
Cannot load mysql extension. Please check your PHP configuration. - Documentation


mysql.dll exists in the ext dir and i have uncommented it in php.ini, everything else is working i think but thats not :S


I get the same thing, php_mysql.dll is unquoted, everything was done, i get the test to work, the setup.php to show, but index.php show that message. I check my extension folder, it was set corrected for C:/php/ext so I don't know what else I'm doing wrong. Please help


Nevermind, solved it by moving php.ini to windows directory. Argghhhhhh...wasted alot of my time.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 25th, 2007, 11:53 am

Post Information

  • Total Posts in this topic: 142 posts
  • Moderators: joebert, katana
  • Users browsing this forum: epoy and 83 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
 
 

© Unmelted Enterprises 1998-2008. Driven by phpBB © 2001-2008 phpBB Group.

 
 
 
 

Need a pre-made web design for your website?

Check out our templates here: Ozzu Templates


400+ FREE Website Templates. Download Now!