Server Tips

Opencart .php on IIS 7.5 Permission Denied

The Problem We ran into an interesting issue while playing with Opencart on IIS 7.5. The issue was around a common third party module being used called Magic Zoom Plus. The error showed it’s self with the loading of some junk text at the beginning of many pages when loading. The text looked like this: Warning: file_put_contents(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): failed to open stream: Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 171Warning: unlink(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 172Warning: rename(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus .css~backup,C:\inetpub\wwwroot\www.domain.com\admin\controller\module\ magictoolbox/magiczoomplus.css): Access is denied. (code: 5) in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 173Warning: file_put_contents(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): failed to open stream: Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 171Warning: unlink(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 172Warning: rename(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/ magiczoomplus.css~backup,C:\inetpub\wwwroot\www.domain.com\admin\controller\module \magictoolbox/magiczoomplus.css): Access is denied. (code: 5) in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 173Warning: file_put_contents(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): failed to open stream: Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 171Warning: unlink(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus.css): Permission denied in C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox\module.php on line 172Warning: rename(C:\inetpub\wwwroot\www.domain.com\admin\controller\module\magictoolbox/magiczoomplus .css~backup,C:\inetpub\wwwroot\www.domain.com\admin\controller\module\ magictoolbox/magiczoomplus.css): Access is denied. (code: 5)… Read More »Opencart .php on IIS 7.5 Permission Denied

SmarterMail Autodiscover setup configuration

Setup of SmarterMail Autodiscover configuration A simple understanding of autodiscover is that it is the configuration necessary to allow advanced email programs like macmail and outlook to configure themselves with only an email address and password. No more telling clients all the server settings necessary to get them all setup. At least that is the theory. Exchange server has supported it for some time, but configuration under a multi domain setup is a total pain in the butt. Typical off MS to dream something up, then balls it up in the implementation. SmarterMail does a much better job of it. Configuration is virtually non existent, it basically just works. http://portal.smartertools.com/KB/a2415/set-up-auto-discovery-with-smartermail.aspx But their article is a little skimp for the non server admins.. so this is a step through course. Assuming that you are using Microsoft DNS server for your DNS hosting (and I realise that most probably don’t but it… Read More »SmarterMail Autodiscover setup configuration

Opencart – HTTP Error 500.50 – URL Rewrite Module Error 0x80070005 Handler StaticFile

Problem 500 – Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.   While working with Opencart shopping cart on an IIS server, we encountered this while browsing to a static image file that was uploaded as a website logo file. Solution The problem turned out to be related to IIS permissions. The folder structure hosting the website needed: IIS_IUSRS(<servername>\IIS_IUSRS) – modify to include Modify permissions. As per this article: http://www.interactivewebs.com/blog/index.php/websites/creating-a-new-opencart-deployment-on-a-windows-server-iis/ Once we fixed that the problems all were solved.

AD FS certificate rollover CRM 2011

You find that you can’t logon to your CRM 2011 IFD deployment that you have configured around 12 months earlier. In the browser you may see: HTTP Error 401 – Unauthorized: Access is denied <html><body><p> An error has occurred. <br/><br/> Try this action again. If the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organization&#39;s Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support. </p></body></html>   Looking at the server log may show: SERVER Log Error show: 1309 Event code: 3005 Event message: An unhandled exception has occurred. Event time: 9/07/2012 12:09:59 PM Event time (UTC): 9/07/2012 2:09:59 AM Event ID: 50c7c9d7c3ba4b839bca7c72b9edf410 Event sequence: 51779 Event occurrence: 11 Event detail code: 0   Application information:     Application domain: /LM/W3SVC/2/ROOT-1-129862684501956875     Trust level: Full     Application Virtual Path: /     Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\     Machine name: VSERVER08   Process information:     Process… Read More »AD FS certificate rollover CRM 2011

ERROR The terminal server has exceeded the maximum number of allowed connections. RDP Solution

Using RDP from windows to access a remote server of Windows 2003. The problem sometimes appears that you cannot connect with an error reported as: ERROR The terminal server has exceeded the maximum number of allowed connections   The Problem The cause of this is that you have remote sessions that have not exited correctly. Either the connection to the server was lost, or the user simply clicked the close X at the top of the session. AND You have your settings in Terminal Server set to hold dropped or inactive sessions either for a period of time or forever.   To Solution At the Start Button on the computer where you would normally run Remote Desktop Connection from. Click Start Run Type in “mstsc.exe –admin” Then enter the connection details that you would normally use, and away you go.

Creating a New OpenCart Deployment on a Windows Server IIS

We are going to cover the deployment of an OpenCart (open source shopping cart) on a Windows 2003 Server, 2008 Server. We are assuming that the server is setup to run IIS websites, and that you have some general idea about running websites in general on IIS. If this is not the case and you are learning from scratch. Better to learn on Linux server. Assuming you want to get OpenCart running on IIS.   Step 1 – Web Platform Installer Install the Microsoft Web Platform Installer on the server from this link. http://www.microsoft.com/web/downloads/platform.aspx In Windows 2003 you need to: Go to the directory on your server: C:\php Find the file: php.ini Edit the file in a text browser, finding the following lines: extension=php_curl.dll extension=php_gd2.dll extension=php_mysql.dll And remove the ; before each line: Then save the file. Start a Command Prompt “cmd” and type “iisreset” This enabled MySQL, GD, and… Read More »Creating a New OpenCart Deployment on a Windows Server IIS

Read more about steps you can take to resolve this problem (error number 0x80072EE7) yourself–solved.

We were receiving this error constantly when trying to run either the Microsoft Update service or Windows update service. Read more about steps you can take to resolve this problem (error number 0x80072EE7) yourself. Solution (fix) As you would expect, there is no help from Microsoft here. We found that the DNS server for the internet connection on this machine was pointing to a local server of ours. We changed this to the Google free DNS service: IP 8.8.8.8 IP 8.8.5.5 And ran the update process again. We found that it worked right away. The likely cause relates to the DNS server we host being unable to look up something Microsoft correctly. We will fix that by updating the way that the server references Microsoft resources. But for now, it is handy to know that the error above was related to a DNS problem.

Exchange Server 2010 Outlook Autodiscovery Tricks

I have been trying to work out for some time, a really easy way for AutoDiscovery services in outlook to be directed to the correct address allowing for easy user configuration of services. Without going into all the details, I have tried all the methods described in (yet another) Microsoft Whitepaper. http://technet.microsoft.com/en-us/library/bb332063(EXCHG.80).aspx Had some level of success but while working through this stuff I discovered by mistake a little discussed method. A new feature is available that enables Outlook 2007 and later to use DNS Service Location (SRV) records to locate the Exchange Autodiscover service. Discussed here: http://support.microsoft.com/?kbid=940881 To Hell with the the WhitePaper, this works fantastically well. It is everything that I need it to be.

Migrate from IIS 7.0 to IIS 7.5 in a new Windows 2008 R2 Server

Moving from one IIS 7.0 server to IIS 7.5 is relatively easy and there are a number of tools that can assist you. Probably the best is the Web Deploy tool mentioned here: http://www.iis.net/download/WebDeploy This tool can allow you to package up and migrate the entire web sites, including configuration and database files etc. Because our IIS 7 server is almost dead, it prevented us from configuring the tool. The install files see .Net 2.0 as required, and although it was installed we were unable to get the server to see it as installed. Anyway we tried all sorts of things, and finally gave up. (Good opportunity to rag on Microsoft, but we will leave that alone). So now we find a need to migrate without the good tools. Migration We shared the IIS root folder on the source server. Then pulled all the folders containing websites across from that… Read More »Migrate from IIS 7.0 to IIS 7.5 in a new Windows 2008 R2 Server

Your session in Microsoft Dynamics CRM is about to expire. CRM 2011 2013 Extend Session Time

Sick of seeing the message “Your session in Microsoft Dynamics CRM is about to expire. To continue working, you must sin in again.” and would like to extend the session time so as not to bother you as often? This is quite easy with an IFD setup of CRM 2011. We have an IFD configuration and setup that we use to test settings and some of our CRM Portal – Linking to DotNetNuke on. Taking the server as configured as described here: http://www.interactivewebs.com/blog/index.php/server-tips/microsoft-crm-2011-how-to-configure-ifd-hosted-setup/ We ended up with an ADFS Relying Party Trust that is named “CRM IFD Relaying Party” This is the name we must use in the Windows PowerShell program to make the necessary changes. To Extend the Auto Logout of IFD CRM 2011 or 2013 1. Start Windows PowerShell 2. Copy and Paste the following command into PowerShell and hit enter (you can right click to paste): (Not… Read More »Your session in Microsoft Dynamics CRM is about to expire. CRM 2011 2013 Extend Session Time

CRM 2011 XRM Performance Problem IIS Dynamic Compression

Microsoft CRM 2011 allows XRM services that use application/soap+xml content type. When you install Microsoft CRM 2011 in an IFD / hosted environment, it is smart enough to automatically configure IIS gzip compression on the website. What it does not do, is configure the C:\Windows\System32\Inetsrv\Config\applicationHost.config file to compress XRM calls out of the CRM database. In a test we were performing for an update to our Microsoft CRM 2011 Portal technology, we found that retrieving a list of around 20,000 items returned a 19 MB data package without gzip dynamic compression. Not huge but pretty big! What amazed us was that after enabling dynamic compression on the XRM data, this reduced from 19 MB to 890 KB, a huge performance improvement! We also noticed that the Microsoft Hosted CRM 2011 service already has this compression enabled, so we figured if it is good enough for them, then we should give… Read More »CRM 2011 XRM Performance Problem IIS Dynamic Compression

Turn off Microsoft CRM 2011 5000 limit on data retrieval via SDK

[gard] With CRM 4.0 and Microsoft CRM 2011 there is a default limit for the number items that can be retrieved when making various types of web service calls into the CRM. Typically this limit is set to 5000 but with some types of calls it will return 7000. In any case, the process to remove the limit and set it to 20,000 is very easy. On the server running CRM Click Start, click Run, type regedit in the Open box, and then click OK. Locate and then select the following registry subkey:HKEY_LOCAL_MACHINE\Software\Microsoft\MSCRM On the Edit menu, point to New, and then click DWORD Value. Type TurnOffFetchThrottling, and then press ENTER. Right-click TurnOffFetchThrottling, and then click Modify. Type a number other than 0 in the Value data box, and then click OK. Note Step 6 lets you retrieve the number of records specified in the Count attribute of your fetch… Read More »Turn off Microsoft CRM 2011 5000 limit on data retrieval via SDK

CRM 2011 Email Router Problems–She’s a Fickle Bitch

CRM 2011 Email Router Problems–She’s a Fickle Bitch Since we published an extensive set of step by step instructions on how to setup CRM 2011 as an Internet Facing Deployment IFD. We have continued on to find a few issues with the Email Router Tool that are probably worth sharing. The Tool Does Not Connect to Exchange 2010 like the CRM 4.0 tool. We had a previous test environment that included CRM 4.0 and the well patched Email Router Tool. It was talking nicely to Exchange Server 2010 using the Exchange Web Service URL: https://server.domain.com/EWS/Exchange.asmx In our instance the HTTPS was configured with an service signed certificate that was a trusted provider. In other words. We purchase an expensive certificate and used that for testing a real world deployment. No self signed junk. That all hummed nicely, but we find that in CRM 2011, the Email Router Incoming Settings, using… Read More »CRM 2011 Email Router Problems–She’s a Fickle Bitch