Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Windows Server 2003 - PHP - Impersonation - What is it and do I need it?

Posted on 2008-10-25
4
Medium Priority
?
660 Views
Last Modified: 2013-12-13
I have a console-based VB.NET program which I am invoking from PHP. However, I believe that because it is being run under the IUSR account, it is only running at about 50% the speed as if it were run from the server's command line.

I've heard that impersonation might be used to run the app, from php, as if it were a user with "higher" access to the CPU.

Is this what I need? If so, how do I do it with PHP?

Thanks
0
Comment
Question by:hamlin11
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Xyptilon2
ID: 22806253
I believe using impersonation only changes the security context in which the PHP scripts are run. Which is useful in virtual host situations. Not modify the priority of the process.

An interesting thing is to check whether you have the same delay with an exe file that does absolutely nothing. Just launch. From there you can determine the time that is required for that.
0
 

Author Comment

by:hamlin11
ID: 22809579
I'd like to run the scripts as a customized user rather than window's IUSR -- is there some way to do this?
0
 
LVL 13

Accepted Solution

by:
Xyptilon2 earned 2000 total points
ID: 22809737
Read this: http://forums.iis.net/p/1042650/1455327.aspx i think it is relevant to your situation. Perhaps this also: http://forums.webhostautomation.com/showthread.php?t=5355

Personally I'm running everything on Linux servers, so i cannot test for you, but goodluck!
0
 

Author Comment

by:hamlin11
ID: 22809754
Thanks for the links - I'll review these tomorrow. Much appreciated.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

772 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