Changes between Initial Version and Version 1 of doc/install/windows/auth-server

Show
Ignore:
Timestamp:
12/14/07 12:17:49 (13 years ago)
Author:
Robin Jones
Comment:

Installing Auth on Windows XP

Legend:

Unmodified
Added
Removed
Modified
  • doc/install/windows/auth-server

    v1 v1  
     1= Installing WiFiDog on Windows XP = 
     2 
     3== THIS GUIDE IS IN PROGRESS == 
     4After a huge effort, I have managed to get WiFidog Auth running on Windows XP. Here is how I did it... 
     5 
     6== Perquisites == 
     7 
     8 * postgresql-8.2.5-1.zip from http://www.postgresql.org/ftp/binary/v8.2.5/win32/ 
     9 * PHP 5.2.5 from http://uk3.php.net/get/php-5.2.5-win32-installer.msi/from/a/mirror 
     10 * apache_2.2.6-win32-x86-openssl-0.9.8e.msi  from http://mirrors.dedipower.com/ftp.apache.org/httpd/binaries/win32/ 
     11 * Version 2.6.18 of smarty from http://smarty.php.net/download.php 
     12 * Latest version of the WiFidog Trunk (download the zip file) from http://dev.wifidog.org/browser/trunk 
     13 
     14== Installation == 
     15 
     16=== Installing Postgres === 
     17 
     18Run the msi and select all default options, creating users and passwords when prompted.[[BR]] 
     19 
     20 
     21=== Installing Apache === 
     22 
     23Run the msi and select all defaults. 
     24 
     25 
     26=== Installing PHP === 
     27 
     28Run the msi when prompted select “Apache 2.2.x Module”[[BR]] 
     29 
     30Make sure ONLY the following Extensions are selected for installation[[BR]] 
     31 
     32 
     33=== Installing WiFiDog === 
     34 
     35Extract Wifidog to “C:\wwwroot\” (create the folder if it doesn't exist)[[BR]] 
     36 
     37Extract Smarty using a utility such as 7ZIP to “c:\wwwroot\wifidog-auth\wifidog\lib\” 
     38 
     39== Configuration == 
     40goto Start > All Programs > Apache > httpd.conf 
     41 
     42find the line  
     43 
     44{{{ 
     45documentroot = "C:\Program Files\Apache\htdocs" 
     46}}} 
     47And replace it with 
     48{{{ 
     49"document root = C:\wwwroot\wifidog-auth\wifidog" 
     50}}} 
     51 
     52 
     53== Work Arounds == 
     54'''''Install script freezes at Permissions page:'''''[[BR]] 
     55 
     56Replace the following code in install.php (note this may change if install.php is updated)  
     57{{{ 
     58  
     59385         $process_info_user_id = posix_getpwuid(posix_getuid());  
     60386   
     61387         if($process_info_user_id){  
     62388             $process_username = $process_info_user_id['name'];  
     63389         }  
     64390         else {  
     65391             //Posix functions aren't available on windows  
     66392             $process_username = 'unknown_user';  
     67393         }  
     68394         $process_info_group_id = posix_getgrgid(posix_getegid());  
     69395         if($process_info_group_id){  
     70396             $process_group = $process_info_group_id['name'];  
     71397         }  
     72398         else {  
     73399             //Posix functions aren't available on windows  
     74400             $process_group = 'unknown_group';  
     75401         }  
     76402         $cmd_mkdir = '';  
     77403         $cmd_chown = '';  
     78404         $error = 0;  
     79405   
     80406         print "<p><em>HTTP daemon UNIX username/group</em>: $process_username/$process_group</p>";  
     81407         #    print "<p><em>HTTPD group</em>: $process_group<BR</p>";  
     82408         print "<p><table BORDER=\"1\"><tr><td><b>Directory</b></td></td><td><b>Owner</b></td><td><b>Writable</b></td></tr>\n";  
     83409   
     84410         foreach ($dir_array as $dir) {  
     85411             print "<tr><td>$dir</td>";  
     86412             if (!file_exists(WIFIDOG_ABS_FILE_PATH . "$dir")) {  
     87413                 print "<TD COLSPAN=\"2\" STYLE=\"text-align:center;\">Missing</td></tr>\n";  
     88414                 $cmd_mkdir .= WIFIDOG_ABS_FILE_PATH . "$dir ";  
     89415                 $cmd_chown .= WIFIDOG_ABS_FILE_PATH . "$dir ";  
     90416                 $error = 1;  
     91417                 continue;  
     92418             }  
     93419   
     94420             $dir_info = posix_getpwuid(fileowner(WIFIDOG_ABS_FILE_PATH . "$dir"));  
     95421             if($dir_info) {  
     96422                 $dir_owner_username = $dir_info['name'];  
     97423             }  
     98424             else {  
     99425                 //Posix functions aren't available on windows  
     100426                 $dir_owner_username = fileowner(WIFIDOG_ABS_FILE_PATH . "$dir");  
     101427             }  
     102428             print "<td>$dir_owner_username</td>";  
     103429   
     104430             if (is_writable(WIFIDOG_ABS_FILE_PATH . "$dir")) {  
     105431                 print "<td>YES</td>";  
     106432             }  
     107433             else {  
     108434                 print "<td>NO</td>";  
     109435                 $cmd_chown .= WIFIDOG_ABS_FILE_PATH . "$dir ";  
     110436                 $error = 1;  
     111437             }  
     112438             print "</tr>\n";  
     113439         }  
     114440         print "</table>\n";  
     115 
     116}}} 
     117 
     118with: 
     119 
     120{{{ 
     121 
     122}}} 
     123 
     124 
     125'''''Mandatory PHP extentions are missing:'''''[[BR]] 
     126 
     127 * Make sure the right extensions have been installed by going to Start > All Programs > PHP > PHP.ini and check that the missing extensions are referenced.  
     128 
     129 * create a file called phpinfo.php in C:\wwwroot\ and add the following code:  
     130{{{ 
     131<? 
     132phpinfo() 
     133?> 
     134}}} 
     135then run the file to make sure PHP is configured correctly 
     136 
     137 
     138'''''Warning: locale English-UnitedStates.ISO...'''''[[BR]] 
     139 
     140No Work Around yet 
     141 
     142'''''WarningSmarty(Secure)'''''[[BR]] 
     143 
     144In classes\SmartyWifidog.php 
     145Find the line  
     146{{{ 
     147136         $this->security = true;  
     148}}}  
     149and change it to  
     150{{{ 
     151136         $this->security = false;  
     152}}}