Solved

Invalid access to memory location.

Posted on 2011-09-28
3
750 Views
Last Modified: 2012-08-14
Hi everyone,

I have 2 web applications running on a server,
1. Frontend application which draws the php extension from C:\php434\sapi\php4isapi.dll (uses version 4.3.4)
2  Backend application c:\php432\sapi\phpisapi.dll. (uses version 4.3.2)

In IIS, I have added web service extensions for both phpisapi.dll and set to Allowed.
The Frontend application works fine but the backend application gives the error "Invalid access to memory location."

Both have different php.ini file locations:
1.  Frontend C:\php434\php.ini
2.  Backend C:\windows\php.ini

I am confused as to why the backend is having this error. Appreciate any advice. Thank you.

0
Comment
Question by:cq27
  • 2
3 Comments
 
LVL 25

Expert Comment

by:kevp75
ID: 36814293
what I would recommend is upgrading both to the latest PHP build (which is up to version 5)

and then make sure the ISAPI filter section of IIS admin for the .php extension is pointing to the correct isapi.dll for it.
0
 

Accepted Solution

by:
cq27 earned 0 total points
ID: 36814942
Hi everyone,

I found the answer to this question I posed after testing out a few rounds.

Both versions of PHP were using ISAPI and as such, they were sharing the same memory allocation, which caused a clash and crashed both applications.

The solution was to enter into IIS and separate the two under different application pools. This allowed each version to manage their own memory allocations and thus no further conflicts.
0
 

Author Closing Comment

by:cq27
ID: 36908410
I found out the reason on my own after consulting various associates.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now