User:Kingboyk/Sandbox

Install ImageMagick Install fastCGI Install PHP5 with mysql, mysqli, gd extensions (maybe should have installed PEAR? - need mail and net_smtp if wiki is to send email!) Add C:\PHP to your path. From the Start menu, right click My Computer and select Properties. From the Advanced tab click the Environment Variables button. Under System Variable find Path and click Edit. At the end of what is already present in Variable Value add a semicolon and then C:\PHP.

Make sure GD is enabled in php.ini

[To create a script map for FastCGI handler on IIS 6.0 follow these steps:

1. Launch inetmgr.exe. 2. Double click the machine icon for the local computer. 3. Right click on "Web Sites" and pick "Properties." 4. Click the tab labeled "Home Directory." 5. Click the "Configuration…" button. 6. Click the "Add…" button. 7. Browse to %WINDIR%\system32\inetsrv\ to select fcgiext.dll as the Executable.

Note: If you are setting this up on 64bit platform in WOW mode, then you must use fcgiext.dll located in %WINDIR%\SysWOW64\inetsrv

8. Enter .php as the Extension 9. Enter Verbs as GET,HEAD,POST 10 Ensure that "Script Engine" and "Verify that file exists" are checked.

%windir%\system32\inetsrv\fcgiext.ini should have the php block] --- 64 bit approach didn't work on our 64 bit Srv2003

IUSR_ “Modify” rights to both folders “upload_tmp_dir="C:\PHP\uploadtemp"” found.
 * 1) In explorer create folders C:\PHP\sessiondata and C:\PHP\uploadtemp
 * 2) Select both folders, right click, and choose properties. On the Security tab grant user
 * 1) In Notepad open C:\PHP\php.ini
 * 2) Find the line “;cgi.force_redirect = 1” and uncomment it, change the value of “1” to “0”
 * 3) Find the line “upload_tmp_dir="C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\upload"” and change to
 * 1) Change the next line to read: “session.save_path="C:\php\sessiondata"”
 * 2) ** Search PHP.INI for other instances of session.save_path and upload_tmp_dir. Comment them out, if

Install MySQL

permissions process). -- gave me trouble, so make it world writable to be sure
 * 1) Extract MediaWiki from its downloaded file and place the entire folder in C:\Inetpub\wwwroot\mediawiki
 * 2) Right click on this folder. Add IUSR_ to the permissions list with "Read & Execute"
 * 1) Open IIS Manager
 * 2) Stop the Default Website
 * 3) Right click on “Web Sites” and choose New, Website
 * 4) Call it “MediaWiki”
 * 5) Select the path “C:\Inetpub\wwwroot\mediawiki”
 * 6) Allow the permissions Read and Execute
 * 7) Right click on MediaWiki and choose Properties
 * 8) On the Documents tab add “index.php” as the default content page and move to the top of the list
 * 9) Save settings and exit IIS Manager
 * 10) Enable write permissions on the C:\Inetpub\wwwroot\mediawiki\config folder (at least during the setup

Install the asapi rewriter 1.2.12*c* (d didn't work) into a readable folder (must not be within the IIS document tree), and add it as an ASAPI filter either for all of IIS or the specific wiki site(s) (in IIS Manager). Make sure the log folder is writable by server. Restart site after installing the rewriter PROBLEM - rdfrom links aren't working; attempting to find out if a rewrite issue or a MW issue

Install Mediawiki into /w/ folder, and call up config page in browser wikiadmin@fleetobserver.co.uk

Configure localsettings. Make sure pretty URLs are on: $wgArticlePath = '/wiki/$1'; $wgScriptPath= '/w';
 * 1) shorturl support

Staff wiki, with Win Auth: $wgScriptPath      = '/s'; $wgScriptExtension = ".php";

$wgArticlePath = '/staff/$1';
 * 1) shorturl support

If making multiple wikis, copy or symlink the mediawiki files, copy the wiki database, set up single user table ($wgSharedDB) and remove the user table from the other wikis; use php logic to share config

robots.txt redirect from / to /wiki/Main_Page: 

condiguration extensions

It *might* be possible to have Windows Auth/Active Directory authenticate for the wiki too, but I havent done that