GoDaddy

From Koset Surakomol

Jump to: navigation, search

Q: Has anyone found a way to implement a wiki with MediaWiki on Godaddy Linux hosting with a clean URL? I am attempting to use version 1.9.1.

Note, I am aware of the php5 problem on GoDaddy. The file extension of php5 is required to use php v.5. Using php will invoke php v.4.

I have done extensive research and have not been able to achieve anything but a blank page. This configuration works for me on my own dedicated box on MediaWiki 1.7.1.

Any help is greatly appreciated. contact.koset@gmail.com

.htaccess

pre Options FollowSymLinks RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

RewriteRule ^/wiki$ / [L] /pre

LocalSettings.php

pre $wgScriptPath = ; $wgScript = $wgScriptPath/index.php; $wgRedirectScript = $wgScriptPath/redirect.php; $wgArticlePath = $wgScriptPath/$1; /pre

PHP 5

In order to take advantage of php v.5, you have to use the file extension .php5. Just plain .php invokes php v.4. Blech. These apache .htaccess directives override that. Sheesh, why should users of the new and current software have to bend over backwards? pre AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 /pre See this note from GoDaddy, note that the .htaccess cache is only cleared once an hour! No wonder changes don't seem to take effect.

Personal tools