« Previous Next »

Thread: Problem setting up and configuring php on IIS 6.0

Last post 12-01-2008 8:25 PM by brashquido. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 12-01-2008, 6:53 AM

    • jusmeig
    • Not Ranked
    • Joined on 10-25-2006, 9:08 AM
    • Posts 6

    Problem setting up and configuring php on IIS 6.0

    Hi guys,

    I need to setup php and mysql on a windows 2003 server, but have run into problems. Here is what I did:

    Downloaded and installed the latest version of php (ran the installer). Was able to view a site and echo "Hello World".

    Downloaded and installed mysql, all went well.

    Tried to connect to the mysql server from my php file and got error that the function did not exist. Here is where the problems started! When installing php I choose all extensions, however it appears that the mysql functions are not loaded?

    I tried an IISRESET and now all I get is:"PHP has encountered an Access Violation at 01BFB74E"

    I dont know what to try next. Uninstalling and re-installing php made no difference ;(

    Please help!

    Justin..........

    My site: http://www.justinmeighan.com
  • 12-01-2008, 7:33 AM In reply to

    Re: Problem setting up and configuring php on IIS 6.0

    jusmeig:
    Tried to connect to the mysql server from my php file and got error that the function did not exist

    Have you looked at php.ini file? What was the exact error?

    jusmeig:

    I tried an IISRESET and now all I get is:"PHP has encountered an Access Violation at 01BFB74E"



    Does this happen when you browse to sample php page as well?

    ~ Ganesh

  • 12-01-2008, 9:18 AM In reply to

    • jusmeig
    • Not Ranked
    • Joined on 10-25-2006, 9:08 AM
    • Posts 6

    Re: Problem setting up and configuring php on IIS 6.0

    Hi Ganesh,

    This is the error: PHP has encountered an Access Violation at 01BFB74E

    This happens on every php page I try to load?
    Im trying to revert to an older install of PHP, but I cant seem to get the older versions working either......arghhh!!!

    Justin..........

    My site: http://www.justinmeighan.com
  • 12-01-2008, 11:46 AM In reply to

    • jusmeig
    • Not Ranked
    • Joined on 10-25-2006, 9:08 AM
    • Posts 6

    Re: Problem setting up and configuring php on IIS 6.0

    UPDATE: Managed to fix this by manually installing PHP 5. Followed this:

    http://www.wikihow.com/Install-PHP-5-for-IIS-6

    Justin..........

    My site: http://www.justinmeighan.com
  • 12-01-2008, 8:25 PM In reply to

    Re: Problem setting up and configuring php on IIS 6.0

    Hi Justin,

    Glad you got that sorted! Just one word of warning with that tutorial though. I personally would not recommend following step 6 or especially the first bit of step 12 where it tells you to start copying PHP files to your Windows system directory. From an administration point of view it is messy to mix you PHP files in with your Windows system files, and from a maintainence point of view it can cause file conflict issues later on down the track when it comes time to upgrade PHP (unless you keep precise track of where you copy every single PHP file that is).

    I'd recommend you follow the second part of step 12 where it tells you to add your PHP install directory to your PATH variable (as instructed in steps 12.1 and 12.2). Then follow the steps in 12.3 and 12.4 to edit the registry to specify the path to your php.ini file. You could also use the PHPRC environment variable for this, but using the registry allows you more flexibility in terms of running multiple versions of PHP on the same server. Obviously all these instructions are only valid if you are configuring PHP to use ISAPI on IIS, not FastCGI.  

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (5 items)
Microsoft Communities