Very bizarre story:
http://www.activemind.com/Mysterious/Topics/OakIsland/
I've put it here so I don't forget to check progress on the digging from time to time.
Update: an anonymous poster pointed me to the site http://www.oakislandtreasure.co.uk/. Check it out, as there are updates to this story!
Drupal Clean URL's with IIS7
Drupal can work with clean URL's (or URL write). The most talked about solution is using Helicon's ISAPI _Rewrite ISAPI add-in, which can be found here (http://www.isapirewrite.com/) if you are interested. But here I want to show you how you can accomplish clean url's using a free alternative by Ionics called IIRF.
Perform the following steps to get clean URL's in Drupal 5.3 in IIS7:
1) Download Ionics Isapi Rewrite Filter
At the moment of writing this is the only quite reliable freeware URL rewriter for IIS. You can get it here:
http://www.codeplex.com/IIRF/Release/ProjectReleases.aspx?ReleaseId=5018
Download the most recent "-bin.zip" version.
2) Install Ionics Isapi Rewrite Filter
- Extract IsapiRewrite4.dll to c:\inetpub\wwwroot (or your www root folder)
- Extract \examples\DrupalRules.ini to c:\inetpub\wwwroot (or your www root folder) as IsapiRewrite4.ini
If you haven't installed Drupal in the webroot, but, like me, in a subfolder, then you have to perform the following updates to DrupalRules.ini. I use http://localhost/drupal, so I had to add
add "/drupal" to almost every RewriteRule. In stead of "/drupal" you can use any folder or level of subfolders that is necessary in your case, e.g. for http://localhost/davy/dozy/tich you have to replace the bold "/drupal" string with "/davy/dozy/tich".
Here are some examples for each of the sections defined in DrupalRules.ini:
RewriteRule ^/misc/(.*)$ /misc/$1 [I,L]
RewriteRule ^/modules/tinymce/(.*)$ /modules/tinymce/$1 [I,L]
RewriteRule ^/cron\.php$ /cron.php [I,L]
RewriteRule /(.*)\?(.*)$ /index.php\?q=$1&$2 [I,L]
RewriteRule ^/(.*)$ /index.php?q=$1 [I,L]
become
RewriteRule ^/drupal/misc/(.*)$ /drupal/misc/$1 [I,L]
RewriteRule ^/drupal/modules/tinymce/(.*)$ /drupal/modules/tinymce/$1 [I,L]
RewriteRule ^/drupal/cron\.php$ /drupal/cron.php [I,L]
RewriteRule /drupal/(.*)\?(.*)$ /drupal/index.php\?q=$1&$2 [I,L]
RewriteRule ^/drupal/(.*)$ /drupal/index.php?q=$1 [I,L]
The following RewriteRule has to be added to the first RewriteRule-section If you also use Gallery2:
RewriteRule ^/gallery2/(.*)$ /gallery2/$1 [I,L]
or if you use http://localhost/drupal
RewriteRule ^/drupal/gallery2/(.*)$ /drupal/gallery2/$1 [I,L]
The RewriteRule function uses regular expressions to transform clean url's back to their non-clean equivalents.
3) Add ISAPI filter to IIS7
- Start IIS.msc
- Select Default Web Site (not your virtual directory or application!)
- Double-click the ISAPI filters icon
- Add...
Filtername: IsapiRewrite4
Executable: C:\inetpub\wwwroot\IsapiRewrite4.dll
4) Set Drupal to use Clean URL's
- Start Drupal in your web browser
- Administer -> Clean URLs
- Click "Test for Clean URL's" (it is somewhat hidden in the paragraph text)
- Select enable
In my case, the enable check box was still greyed out. To set Clean URL's manually:
- Remove write-protection from the c:\inetpub\wwwroot\drupal\sites\default\settings.php file
- Edit the file and add:
# Force Clean urls
$conf['clean_url']=1;
- Set write-protection back.
Hopefully this quick and rudimentary instruction helps you setting up URL rewriting for you Drupal installation.
Perform the following steps to get clean URL's in Drupal 5.3 in IIS7:
1) Download Ionics Isapi Rewrite Filter
At the moment of writing this is the only quite reliable freeware URL rewriter for IIS. You can get it here:
http://www.codeplex.com/IIRF/Release/ProjectReleases.aspx?ReleaseId=5018
Download the most recent "-bin.zip" version.
2) Install Ionics Isapi Rewrite Filter
- Extract IsapiRewrite4.dll to c:\inetpub\wwwroot (or your www root folder)
- Extract \examples\DrupalRules.ini to c:\inetpub\wwwroot (or your www root folder) as IsapiRewrite4.ini
If you haven't installed Drupal in the webroot, but, like me, in a subfolder, then you have to perform the following updates to DrupalRules.ini. I use http://localhost/drupal, so I had to add
add "/drupal" to almost every RewriteRule. In stead of "/drupal" you can use any folder or level of subfolders that is necessary in your case, e.g. for http://localhost/davy/dozy/tich you have to replace the bold "/drupal" string with "/davy/dozy/tich".
Here are some examples for each of the sections defined in DrupalRules.ini:
RewriteRule ^/misc/(.*)$ /misc/$1 [I,L]
RewriteRule ^/modules/tinymce/(.*)$ /modules/tinymce/$1 [I,L]
RewriteRule ^/cron\.php$ /cron.php [I,L]
RewriteRule /(.*)\?(.*)$ /index.php\?q=$1&$2 [I,L]
RewriteRule ^/(.*)$ /index.php?q=$1 [I,L]
become
RewriteRule ^/drupal/misc/(.*)$ /drupal/misc/$1 [I,L]
RewriteRule ^/drupal/modules/tinymce/(.*)$ /drupal/modules/tinymce/$1 [I,L]
RewriteRule ^/drupal/cron\.php$ /drupal/cron.php [I,L]
RewriteRule /drupal/(.*)\?(.*)$ /drupal/index.php\?q=$1&$2 [I,L]
RewriteRule ^/drupal/(.*)$ /drupal/index.php?q=$1 [I,L]
The following RewriteRule has to be added to the first RewriteRule-section If you also use Gallery2:
RewriteRule ^/gallery2/(.*)$ /gallery2/$1 [I,L]
or if you use http://localhost/drupal
RewriteRule ^/drupal/gallery2/(.*)$ /drupal/gallery2/$1 [I,L]
The RewriteRule function uses regular expressions to transform clean url's back to their non-clean equivalents.
3) Add ISAPI filter to IIS7
- Start IIS.msc
- Select Default Web Site (not your virtual directory or application!)
- Double-click the ISAPI filters icon
- Add...
Filtername: IsapiRewrite4
Executable: C:\inetpub\wwwroot\IsapiRewrite4.dll
4) Set Drupal to use Clean URL's
- Start Drupal in your web browser
- Administer -> Clean URLs
- Click "Test for Clean URL's" (it is somewhat hidden in the paragraph text)
- Select enable
In my case, the enable check box was still greyed out. To set Clean URL's manually:
- Remove write-protection from the c:\inetpub\wwwroot\drupal\sites\default\settings.php file
- Edit the file and add:
# Force Clean urls
$conf['clean_url']=1;
- Set write-protection back.
Hopefully this quick and rudimentary instruction helps you setting up URL rewriting for you Drupal installation.
Labels:
Drupal
4 comments:
Liger
I saw a documentary today on National Geographic about the cross-breeding product of a tiger and lion. The hybrid is called a liger. I didn't know that such a beast exists.
You can read more about it here:
http://en.wikipedia.org/wiki/Liger
You can read more about it here:
http://en.wikipedia.org/wiki/Liger
Labels:
Astonishing
No comments:
Fix upload of images in Drupal
Solution to messages like
warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:\progra~1\php\upload_tmp\php525F.tmp' to '' in C:\inetpub\wwwroot\drupal\includes\file.inc on line 244."
when trying to upload images to Drupal 5.3.
Perform or check these steps (I'm using Vista and IIS7):
1) Create temporary upload folder for php
php must have an upload folder to be able to upload files. Create one called upload_tmp under the install root of php. So if php is installed here:
c:\progra~1\php\
then the full path to the upload folder will be:
c:\progra~1\php\upload_tmp
2) Change php.ini
Change the settings to the following values:
file_uploads = On
upload_tmp_dir = "c:\progra~1\php\upload_tmp"
upload_max_filesize = 2M
3) Create temporary preview and upload folder for Drupal
Drupal must also have an upload and preview folder to be able to upload and preview files.
Create the following folders under the drupal root.
files
files\tmp
So if drupal is installed here:
C:\inetpub\wwwroot\drupal\
then the full path to the upload and preview folders will be:
C:\inetpub\wwwroot\drupal\files
C:\inetpub\wwwroot\drupal\files\tmp
In my case it worked without setting permissions on these folders, but if it doesn't, you can try giving the web service user access.
Give user IUSR permission to read/write on these folders:
- Right click folder- Properties -> security -> edit -> add -> advanced -> find now
- Select IUSR, ok
- Select full control, ok, ok
4a) Change drupal settings (upload module)
Activate the upload module:
In Administer -> Site building -> Modules, activate module Upload
4b) Change drupal settings (folders)
In Administer -> Site configuration -> File system, set the following values:
File system path: files
Temporary directory: files/tmp
The temporary directory must be a subfolder of the file system path folder!
Now the upload should work.
warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:\progra~1\php\upload_tmp\php525F.tmp' to '' in C:\inetpub\wwwroot\drupal\includes\file.inc on line 244."
when trying to upload images to Drupal 5.3.
Perform or check these steps (I'm using Vista and IIS7):
1) Create temporary upload folder for php
php must have an upload folder to be able to upload files. Create one called upload_tmp under the install root of php. So if php is installed here:
c:\progra~1\php\
then the full path to the upload folder will be:
c:\progra~1\php\upload_tmp
2) Change php.ini
Change the settings to the following values:
file_uploads = On
upload_tmp_dir = "c:\progra~1\php\upload_tmp"
upload_max_filesize = 2M
3) Create temporary preview and upload folder for Drupal
Drupal must also have an upload and preview folder to be able to upload and preview files.
Create the following folders under the drupal root.
files
files\tmp
So if drupal is installed here:
C:\inetpub\wwwroot\drupal\
then the full path to the upload and preview folders will be:
C:\inetpub\wwwroot\drupal\files
C:\inetpub\wwwroot\drupal\files\tmp
In my case it worked without setting permissions on these folders, but if it doesn't, you can try giving the web service user access.
Give user IUSR permission to read/write on these folders:
- Right click folder- Properties -> security -> edit -> add -> advanced -> find now
- Select IUSR, ok
- Select full control, ok, ok
4a) Change drupal settings (upload module)
Activate the upload module:
In Administer -> Site building -> Modules, activate module Upload
4b) Change drupal settings (folders)
In Administer -> Site configuration -> File system, set the following values:
File system path: files
Temporary directory: files/tmp
The temporary directory must be a subfolder of the file system path folder!
Now the upload should work.
Labels:
Drupal
No comments:
Install Windows Components from command-line
If you want to start the add/remove Windows Components dialog without using the add/remove programs interface, then use the following command:
Sysocmgr.exe /i:sysoc.ini
Labels:
OS
1 comment:
IE7 enable tabbed browsing
You can enable tabbed browsing in Internet Explorer 7 by using a menu command:
Tools -> Internet Options -> Tab: settings -> select Enable Tabbed Browsing.
However, sometimes this is not enough, for example because the domain administrator has "disabled" tabbed browsing using a registry key. You can enable it by putting the next registry entry in a .reg text file (e.g. c:\tabbrowse.reg) and executing it:
If the key value gets restored every time you log in to your system, you could add the execution of registry file to the startup folder:
- create a bat file, e.g. tabbrowse.bat
- add the following line to the bat file: regedit /s c:\tabbrowse.reg
- add the bat file to the startup folder
Tools -> Internet Options -> Tab: settings -> select Enable Tabbed Browsing.
However, sometimes this is not enough, for example because the domain administrator has "disabled" tabbed browsing using a registry key. You can enable it by putting the next registry entry in a .reg text file (e.g. c:\tabbrowse.reg) and executing it:
Windows Registry Editor Version 5.00... or you can set the DWord keyvalue to 0 by hand.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]"ClassicShell"=dword:00000000
If the key value gets restored every time you log in to your system, you could add the execution of registry file to the startup folder:
- create a bat file, e.g. tabbrowse.bat
- add the following line to the bat file: regedit /s c:\tabbrowse.reg
- add the bat file to the startup folder
Labels:
Internet Explorer
1 comment:
Subscribe to:
Posts (Atom)