Jump to content

danparchman

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Utah, USA

danparchman's Achievements

Starter

Starter (1/6)

2

Reputation

  1. I have been the webmaster for my company's websites for over seven years using the eZ Publish (www.ez.no) CMS but now my Marketing Department wants a responsive site, which eZ Publish v4 does not do. v5 is supposed to be responsive but they want an arm and a leg for it so I am now looking for a different, more modern solution. I like the looks of Processwire and am trying it out using a Windows IIS 7 web server (a requirement by the IT department where I work. ) Thanks to everyone who has posted here, especially nikola and jamestflynn. Here's an update for those using later software versions: To successfully install Processwire v2.6.1-Master on a Windows IIS 7 Web Server with: PHP v5.6.9 MySql v5.7 Copy the following XML into a file called web.config at the ProcessWire root directory (Most of this file is from user nikola's post from June 19, 2011 with a couple of sections deleted): -------- begin snip ---------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <directoryBrowse enabled="false" /> <rewrite> <rules> <rule name="Handle request for missing favicon.ico" stopProcessing="true"> <match url="favicon\.ico" /> <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="The requested file favicon.ico was not found" statusDescription="The requested file favicon.ico was not found" /> </rule> <rule name="Handle request for missing robots.txt" stopProcessing="true"> <match url="robots\.txt" /> <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="The requested file robots.txt was not found" statusDescription="The requested file robots.txt was not found" /> </rule> <rule name="Access Restrictions: Keep web users out of directories"> <match url="(^|/)\." ignoreCase="false" /> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> <rule name="Access Restrictions: Protect ProcessWire system files" stopProcessing="true"> <match url="^.*$" ignoreCase="false" /> <conditions logicalGrouping="MatchAny"> <add input="{URL}" pattern="(^|/)site/assets/(cache|logs|backups|sessions|config|install)($|/.*$)" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site/install($|/.*$)" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site/config\.php$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)(wire|site)/templates-admin($|/|/.*\.(php|html?|tpl|inc))$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site/templates($|/|/.*\.(php|html?|tpl|inc))$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site/assets($|/|/.*\.php)$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)wire/(core|modules)/.*\.(php|inc|tpl|module)$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site/modules/.*\.(php|inc|tpl|module)$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)(COPYRIGHT|INSTALL|README|htaccess)\.txt$" ignoreCase="false" /> <add input="{URL}" pattern="(^|/)site-default/" ignoreCase="false" /> </conditions> <action type="CustomResponse" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" /> </rule> <rule name="ProcessWire Rewrite" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{URL}" pattern="^/~?[-_.a-zA-Z0-9/]*$" ignoreCase="false" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" pattern="(favicon\.ico|robots\.txt)" ignoreCase="false" negate="true" /> <add input="{URL}" pattern="\.(gif|jpg|png|ico)$" negate="true" /> </conditions> <action type="Rewrite" url="index.php?it={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> <defaultDocument> <files> <add value="index.php" /> </files> </defaultDocument> </system.webServer> </configuration> -------- end snip ---------------------------------------------------------------- As mentioned in several of the posts above, be sure to have the IIS URL Rewrite Module 2.0 installed. Also, before starting the installation you will need to replace some values in the .sql database installation commands located in the various site-*/install/install.sql files. In the definition of the "modules" and "pages" tables and in the insertions for the "modules" table replace the default and inserted values for the "created" field, which is a timestamp data type field. The values supplied are all '0000-00-00 00:00:00' which is outside the allowed range for a timestamp type field in this version of MySQL (see https://dev.mysql.com/doc/refman/5.0/en/datetime.html). Replace these zero values with a value within the Unix Epoch, like '1970-01-01 00:00:01'. Begin the installation and ignore the warning about "Unable to determine if Apache mod_rewrite (required by ProcessWire) is installed." Of course it can't be found because we aren't running Apache. Have fun!
×
×
  • Create New...