Re: PHP has encountered an Access Violation at ***

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Slack-Moehrle wrote:
Hi All,

Win 2003, PHP 5.2.12 and IIS 6.

I have PHP configured as ISSAPI and it is serving PHP pages. When I try a page that requires MySQL I am getting just:

PHP has encountered an Access Violation at (and a RANDOM number)

It means you didn't follow the instructions on the PHP site properly:

http://www.php.net/manual/en/install.windows.iis6.php

Specifically you want to ditch ISAPI and use FastCGI. Additionally, when setting up FastCGI in IIS you want to use the NTS build of PHP (Non-Thread-Safe). This is VERY important:

http://www.php.net/get/php-5.2.12-nts-win32-installer.msi/from/a/mirror

Then because you'll be pretty screwed for one of the usual bytecode caches you'll want to use Microsoft's WinCache bytecode cache for PHP FastCGI:

http://www.iis.net/expand/wincacheforphp

After you've done all this, you'll almost certainly find you no longer get this error.

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux