+ Post New Thread
Results 1 to 13 of 13
Windows Server 2000/2003 Thread, Installing PHP onto Windows 2003 in Technical; Hi, This is driving me insane! I have the task of installing PHP on a Windows 2003 Server with IIS. ...
  1. #1
    01hanstu's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    148
    Thank Post
    17
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Installing PHP onto Windows 2003

    Hi,
    This is driving me insane! I have the task of installing PHP on a Windows 2003 Server with IIS. I have read quite a few tutorials and just keep getting the same result.

    The error i keep getting is "Fatal error: Call to undefined function mysql_connect()"

    I just cannot get PHP / MySql & IIS to work.

    Does anyone know a tutorial that will work?

    Regards
    - Stu

  2. #2

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    That means that the php you have installed doesn't have the phpmysql modules installed.

    See the PHP5 section under Windows here PHP: Installation - Manual

  3. #3

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,786
    Thank Post
    572
    Thanked 2,154 Times in 982 Posts
    Blog Entries
    23
    Rep Power
    626
    Are you using a PHP\MySQL (WAMP) package or just installing them as individual components?

  4. #4

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Quote Originally Posted by Dos_Box View Post
    Are you using a PHP\MySQL (WAMP) package or just installing them as individual components?
    He'll be doing it separately, as he's using IIS.

  5. #5
    01hanstu's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    148
    Thank Post
    17
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Hi,
    Thanks for the reply. I am installing everything individually.
    Regards,

  6. #6

    Join Date
    Aug 2010
    Location
    Earth
    Posts
    14
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Did you install PHP via the zip package? If so, there should be a file called php_mysql.dll in the /ext directory. Make sure it is there, and if it isn't, I'd download the zip package and get the file from there.

    Next open up your php.ini file and look for this line:

    Code:
    ;extension=php_mysql.dll
    And remove the semicolon from the front:

    Code:
    extension=php_mysql.dll

  7. #7

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Also, I think you need to restart the web service for the above to take effect.

  8. #8
    01hanstu's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    148
    Thank Post
    17
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks again for the replies. I have done all of that. I have enable mysql extension.

    I always restart the service after making changes.

    Thanks
    - Stuart

  9. #9
    01hanstu's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    148
    Thank Post
    17
    Thanked 1 Time in 1 Post
    Rep Power
    0
    May have found the issue, but im just getting more confused! I set the ext direcectory to C:\php\ext in the php ini file. when i load up my phpinfo page it says the directory is C:\php5???
    Any ideas
    - Stuart

  10. #10

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,528
    Thank Post
    513
    Thanked 2,406 Times in 1,862 Posts
    Blog Entries
    24
    Rep Power
    822
    Quote Originally Posted by 01hanstu View Post
    May have found the issue, but im just getting more confused! I set the ext direcectory to C:\php\ext in the php ini file. when i load up my phpinfo page it says the directory is C:\php5???
    Any ideas
    - Stuart
    That makes me think that either the IIS service hasn't been restarted or you've made a typo in your php.ini? Where's your php.ini file stored?

  11. #11


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,709
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Stu. Have you done everything listed in this tutorial?

    http://sysadmingeek.com/articles/how...s-server-2003/

  12. #12
    01hanstu's Avatar
    Join Date
    Sep 2007
    Location
    Manchester
    Posts
    148
    Thank Post
    17
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Arthur,
    Firstly appologies with the delay in getting back to you. I have not set it up using CGI, i set it up using ISAPI.
    Is CGI needed for Windows Server 2003? I set it up on an XP workstation and it worked perfectly.
    Finally my PHP.ini file is in 'C:\Windows\'

    Regards,
    - Stuart

  13. #13


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,709
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Quote Originally Posted by 01hanstu View Post
    Arthur,
    Firstly appologies with the delay in getting back to you. I have not set it up using CGI, I set it up using ISAPI. Is CGI needed for Windows Server 2003?
    Starting with PHP v5.3, FastCGI is the recommended interface on Windows since ISAPI is no longer supported. However, if the ISAPI module is working perfectly for you then there is no reason to switch just yet. Don't even bother with CGI as it is a lot slower than FastCGI.

    When installing PHP on Windows, I normally use the IIS Aid PHP installer since this sets everything up for you, so saves a bit of time.

    Did you manage to get MySQL working in the end?
    Last edited by Arthur; 4th September 2010 at 06:49 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Installing Moodle - Windows 2003 x64
    By MattGibson in forum Virtual Learning Platforms
    Replies: 12
    Last Post: 21st July 2010, 04:24 PM
  2. Replies: 3
    Last Post: 7th October 2009, 03:07 PM
  3. Replies: 7
    Last Post: 16th September 2009, 09:52 AM
  4. PHP to work with IIS 6 in 64bit Windows Server 2003
    By MattGibson in forum Windows Server 2000/2003
    Replies: 8
    Last Post: 31st July 2009, 11:50 AM
  5. "How To" Guide for installing moodle on Windows 2003
    By darknova in forum Virtual Learning Platforms
    Replies: 6
    Last Post: 6th May 2008, 01:25 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •