Posts filed under ‘Programming’

WordPress IIS7 IUSR File Permissions on Windows 2003

Been having some issues with WordPress on IIS7 windows 2003 for a while now and think I finally got it solved, thought I’d post the info here for others to see, as I had a hard time finding this info myself anywhere else, not even the WordPress website.

This is what I found after a lot of playing around, if you see any issues with this or have any feedback please let me know below.

On the wp-content folder I applied the following permissions.

C:\inetpub\wwwroot\wordpress\wp-content
– IUSR with following permissions

  • Traverse folder / execute file
  • List folder / read data
  • Read attributes
  • Read extended attributes
  • Create files / write data
  • Create folders / append data
  • Write attributes
  • Write extended attributes
  • Delete subfolders and files
  • Delete
  • Read permissions

I also have the following groups and users on there

  • IIS_IUSRS
  • Trustedinstaller
  • SYSTEM
  • Administrators
  • Users
  • CREATOR OWNER

Here are the steps I followed

  • Right click wp-content
  • Properties
  • Security tab
  • Advanced button
  • Change permissions button
  • Add button
  • Advanced button
  • Find now button
  • Locate IUSR and double click
  • OK button
  • Check box Allow Full control
  • Uncheck the boxes; Full control, Take ownership, Change permissions
  • Click OK button
  • Check box “Replace all child object permissions with inheritable permissions from this object”
  • Click OK button
  • Click Yes when asked if you want to continue
  • Click OK button
  • Click OK button

I’m not making anything in the root writable, like wp-config etc. I change that manually or as a one off.

Advertisements

April 6, 2011 at 12:59 am 1 comment

CF9.0.1 CFLOCATION onRequestEnd problems…

Quick heads up! This has caused me serious headache.

The way onRequestEnd works in ColdFusion 9.0.1 has changed, it now executes the onRequestend method in the application.cfc after a redirect… This can seriously mess up some code like it did mine.

February 21, 2011 at 5:10 am Leave a comment

Show PHP errors

By default PHP does not show you the errors or debugging, you need to enable this in the config or add the following code to your page to display the PHP errors.

<?php
error_reporting(E_ALL);
ini_set(‘display_errors’, ‘1’);
?>

January 26, 2011 at 4:11 am Leave a comment

cfhttp I/O Exception: peer not authenticated Error

cfhttp I/O Exception: peer not authenticated Error

Continue Reading January 19, 2011 at 7:50 am 1 comment

Replace tab in MS SQL

Replacing a tab with something else in MS SQL is easy peasy, following is the code

update [table name]
set [column name] = REPLACE( [column name], CHAR(9), ' ')

July 14, 2010 at 4:53 am Leave a comment

YouTube Video infront of other content – CSS Z-Index

If you have YouTube videos that appear infront of your other website content and giving it a lower z-index does not seem to do the trick then try adding the wmode parameter to the embedded movie.

<object width='425' height='344'> 
    <param name='movie' value='http://www.youtube.com/v/Wj_JNwNbETA&hl=en&fs=1'> 
    <param name='type' value='application/x-shockwave-flash'> 
    <param name='allowfullscreen' value='true'> 
    <param name='allowscriptaccess' value='always'> 
    <param name="wmode" value="opaque" />
    <embed width='425' height='344'
            src='http://www.youtube.com/v/Wj_JNwNbETA&hl=en&fs=1'
            type='application/x-shockwave-flash'
            allowfullscreen='true'
            allowscriptaccess='always'
            wmode="opaque"
    ></embed> 
    </object>
 

June 19, 2010 at 7:57 am 16 comments

EWay ColdFusion Component CFC – Payment Gateway

I’ve invested some time a while ago in creating a ColdFusion Component to integrate with Eway Payment Gateway. I’m not using them anymore and giving the Component away in return for a text link. If you want a copy of the component just leave a comment with the URL where I can find a link to any page of the following sites:

http://www.executiveresults.com.au
http://www.clickfind.com.au
pacificfox.com
http://www.thetoughspot.com.au
http://www.glovesboxing.com.au
http://www.cavemantraining.com.au

Following is bit of the CFC

<cfcomponent 
 displayname="Eway" 
 hint="Eway" 
 output="false" 
 author="Taco Fleur (taco.fleur@clickfind.com.au)" 
 version="1">

 <!--- Set instance variables --->
 <!---
 // http://www.eway.com.au/Support/Developer/PaymentsRebill.aspx
 --->
 <cfscript>
 this.constant.LIVE_GATEWAY_URI = "https://www.eway.com.au/gateway/rebill/manageRebill.asmx";
 this.constant.TEST_GATEWAY_URI = "https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx";
 this.constant.GATEWAY = "TEST";                 // TEST or LIVE
 this.constant.LIVE_EWAY_CUSTOMER_ID = "";     // required, customer id assigned to you by eWay
 this.constant.TEST_EWAY_CUSTOMER_ID = "";
 
 variables.instance.userIdentity = 0;
 variables.instance.customerFirstName = "";             // required
 variables.instance.customerLastName = "";             // required
 variables.instance.ewayTotalAmount = 0;             // total amount in cents for the transaction, eg $1.00 = 100, maximum length 12
 // the test Total Amount should end in 00 or 08 to get a successful response (e.g. $10.00 or $10.08) - all other amounts will return a failed response
 variables.instance.ewayCustomerInvoiceRef = 0;         // reference to your own invoice system for the purchase
 variables.instance.rebillCCName = "";                 // required, customer's credit card number
 variables.instance.rebillCCNumber = "";             // required, customer's credit card number
 variables.instance.rebillCCExpMonth = "";             // required, expiry month of customer's credit card
 variables.instance.rebillCCExpYear = "";             // required, expiry year of customer's credit card. Format must be either (yy or yyyy) eg. 06 or 2006.
 variables.instance.rebillInitAmt = 0;                 // required, initial payment amount of the reBILL event. Enter 0 if initial payment is not required.
 variables.instance.rebillInitDate = lsDateFormat( now(), "dd/mm/yyyy" ); // required, date of the initial payment of the reBILL event. Enter today's date if no initial payment is required. Format dd/mm/yyyy.
 variables.instance.rebillRecurAmt = 0;                 // required, recurring payment amount of the reBILL. The value must be greater than 0.
 variables.instance.rebillStartDate = lsDateFormat( now(), "dd/mm/yyyy" ); // required, date of the first recurring payment. Format must of  dd/mm/yyyy
 variables.instance.rebillInterval = 1;                 // required, size of the interval between recurring payments (used in conjunction with RebillIntervalType). The value must be 1 to 31 only.
 variables.instance.rebillIntervalType = "Months";     // required, type of Interval. (1 = Days, 2 = Weeks, 3 = Months, 4 = Years). The value must be only 1 or 2 or 3 or 4. eg. Payments every 3 weeks, enter 3 in the RebillInterval field, and 2 in the RebillIntervalType field. 
 variables.instance.rebillEndDate = lsDateFormat( dateAdd( "y", 10, now() ), "dd/mm/yyyy" ); // required, date that recurring payments are to stop. Format must of  dd/mm/yyyy. This date must be after RebillStartDate.
 variables.instance.requestXML = xmlNew();
 variables.instance.responseXML = xmlNew();
 </cfscript>

…………..

You’ll get the component in return for a simple text link, the link needs to stay up for at least a year, once I send the component I’ll trust you’ll do the honorable thing 🙂

June 12, 2010 at 12:52 am Leave a comment

Older Posts


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 19 other followers

Archives

Top Rated

Top Clicks

  • None

Blog Stats

  • 169,278 hits

%d bloggers like this: