Home » PHP/MySQL » PHP Encountered Access Violation at [memory address]


PHP Encountered Access Violation at [some random memory address]

Many of the guys who asked me about this problem faced it when trying to run PHPMyAdmin or other applications which access database, after setting up a local PHP environment on their machine under IIS.

Try these fixes.

Add your PHP path (the location of PHP files in your machine) to the PATH variable under the Windows Environment Variables. This is accessible by opening System Properties->Advanced->Environment Variables. You can see “PATH” in the Variable column under the “System variables” section. Click on Path and click on Edit.

In the Variable Value field, you will see something like this.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bin

Don’t delete anything from it. Just insert a semicolon at the end and add the location of your PHP files, so that it should now look something like this.

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\TortoiseSVN\bi;C:\Inetpub\PHP5

Also copy “libmysql.dll” file from the PHP directory in to “Windows\System32″ folder.

The above methods should work in most of the cases, but if you still see the error message, you would probably need to upgrade to a stable version of PHP.

Leave a Reply

Page optimized by WP Minify WordPress Plugin