windows-server-2008

Stopping cookies being set from a domain (aka “cookieless domain”) to increase site performance

天涯浪子 提交于 2019-11-27 10:21:33
问题 I was reading in Google's documentation about improving site speed. One of their recommendations is serving static content (images, css, js, etc.) from a "cookieless domain": Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. You can decrease request latency by serving static resources from a domain that doesn't serve cookies. Google then says that the best way to do this is to buy a new domain and

Add writing permission to PHP on IIS 7

一世执手 提交于 2019-11-27 09:59:47
问题 I need a PHP script to have writing permission in a directory. PHP 5.3 is running as FastCGI under IIS 7 with windows server 2008 as OP. On my php error logs, I got "permission denied" when the script attempts to write a file. How can I sort this out? I tried to give all right to IIS_IUSR and to IUSR_myservername (with a right click on my folder) but it didn't work. Any help would be very appreciate, Regards, Julien 回答1: I have the same setup and I have to give write permission to: IUSR IIS

Need to execute *.exe in server from ASP.net

混江龙づ霸主 提交于 2019-11-27 08:53:46
My current situation is that I need to execute an exe(which creates a local .txt file) in remote server with IIS hosting an ASP.net/C# API. I created a local user(say userA) as admin to run the web service in the remote server but the .txt file was not created. I already checked and granted necessary folder permissions to userA and added the user in various groups. The funny thing is that if i am logged in as userA in the remote system, the exe gets executed as expected. If i log out then it fails. Server is Win server 2008 with IIS 7. Any help would be appreciated thanks. UPDATE: I've solved

create local user account

限于喜欢 提交于 2019-11-27 08:43:42
i have this code to create a local windows user public static bool CreateLocalWindowsAccount(string username, string password, string displayName, string description, bool canChangePwd, bool pwdExpires) { try { PrincipalContext context = new PrincipalContext(ContextType.Machine); UserPrincipal user = new UserPrincipal(context); user.SetPassword(password); user.DisplayName = displayName; user.Name = username; user.Description = description; user.UserCannotChangePassword = canChangePwd; user.PasswordNeverExpires = pwdExpires; user.Save(); //now add user to "Users" group so it displays in Control

How can we overwrite EXE files while users are running them? [closed]

落花浮王杯 提交于 2019-11-27 08:08:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Background: Our companies internal user's run our .Net programs on 10-20 windows terminal servers. The executables are all stored on a central file server running windows 2003. Some of the terminal servers are running windows 2003 and some are running 2008. Issues: When we release a new version of one of our

Specifying the running directory for Scheduled Tasks using schtasks.exe

流过昼夜 提交于 2019-11-27 07:57:55
I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the executable was located. On 2008 Environment.CurrentDirectory (C#) reports that it's running in C:\Windows\System32. How do I set the running directory? I'm using schtasks.exe for command-line deployment. UPD : Through the interface, it seems to be the "Start in (optional)" field on the action edit screen. UPD : Looks like using the XML file may help, but I'm looking to do without it. I recently came across the same issue. The way

IIS7 Impersonation doesn't work to access TFS repository

╄→гoц情女王★ 提交于 2019-11-27 06:14:26
问题 I'm trying to build an ASP.NET page that adds a work item in TFS. I have enabled impersonation and Windows authentication: <authentication mode="Windows" /> <identity impersonate="true" password="" userName="" /> <customErrors mode="Off" /> In the page, I access TFS and try to add a work item: TfsTeamProjectCollection prjCollection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("xxx")); WorkItemStore store = prjCollection.GetService<WorkItemStore>(); ... However, it only

How to start git daemon on Windows

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 05:33:33
问题 How do I start the git daemon on Windows in order to allow it to begin serving requests? Seems like msysgit is supposed to install it as a Windows Service or something but I don't see one. 回答1: Git for Windows 1.7.4 includes support for git daemon on windows which was missing in previous versions. To export your repository you will need to create a file called git-daemon-export-ok in the .git directory or include the --export-all command line option. In a git repository run: git daemon -

Windows service app.config location

◇◆丶佛笑我妖孽 提交于 2019-11-27 05:19:25
问题 I have installed a C# Windows Service on Windows Server 2008. I installed it with InstallUtil. The service reads some data from the app.config file and it is doing it fine. Can you tell me where this file is located after installing the service? I have been looking for hours but can't find it. 回答1: You can verify the exact location of the installed Windows Service by following the steps below: Bring up the list of Windows Services by clicking the "Services" icon under the "Administrative

I've been hacked. Evil aspx file uploaded called AspxSpy. They're still trying. Help me trap them‼

故事扮演 提交于 2019-11-27 04:43:41
I'm also putting up the contents of the .aspx file that was uploaded. When I try to access it, I get prompted for a password, looking at the code, there's a harcoded password but it looks like some MD5 encryption is going on and I can't get in to look at what is behind the password protection on this hackers page. Can someone help with getting past the password protection? Their file was called wjose.aspx and the I've pasted the code into jsbin for easy viewing: http://jsbin.com/uhoye3/edit#html I've already got a server/host based version of the question on serverfault.com asking for steps to