Changes between Version 2 and Version 3 of doc/install/windows/auth-server

Show
Ignore:
Timestamp:
12/15/07 11:58:12 (13 years ago)
Author:
Robin Jones
Comment:

More Updates to XP instructions

Legend:

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

    v2 v3  
    33== THIS GUIDE IS IN PROGRESS == 
    44After a huge effort, I have managed to get WiFidog Auth running on Windows XP. Here is how I did it... 
     5 
     6Note: I cannot get WiFiDog to work with IIS 
    57 
    68== Perquisites == 
     
    119121DirectoryIndex index.html index.php 
    120122}}} 
     123 
     124In your internet browser, Browse to "localhost/install.php" and follow the installation script using the work arounds outlined below: 
     125 
     126NOTE: Wifidog_Cookie.txt will either be placed in C:\tmp. if this doesn't happen, you may receive the Auth Required box, but just click OK... 
     127 
    121128 
    122129 
     
    189196 
    190197{{{ 
    191  
     198/* 
     199* posix_getpwuid() not implemented on Microsoft Windows platforms 
     200*/ 
     201 
     202if (!function_exists('posix_getpwuid')) { 
     203        print "<p><em>Automated Process not currently avalible on windows.</em> please make sure the following directories exist and have WRITE permissions</p>"; 
     204print "<p><table BORDER=\"1\"><tr><td><b>Directory</b></td></tr>\n"; 
     205 
     206        foreach ($dir_array as $dir) { 
     207            print "<tr><td>$dir</td></tr>"; 
     208        } 
     209print "</table>"; 
     210$error = 0; 
     211} 
     212else { 
     213$process_info_user_id = posix_getpwuid(posix_getuid()); 
     214 
     215        if($process_info_user_id){ 
     216            $process_username = $process_info_user_id['name']; 
     217        } 
     218        else { 
     219            //Posix functions aren't available on windows 
     220            $process_username = 'unknown_user'; 
     221        } 
     222        $process_info_group_id = posix_getgrgid(posix_getegid()); 
     223        if($process_info_group_id){ 
     224            $process_group = $process_info_group_id['name']; 
     225        } 
     226        else { 
     227            //Posix functions aren't available on windows 
     228            $process_group = 'unknown_group'; 
     229        } 
     230        $cmd_mkdir = ''; 
     231        $cmd_chown = ''; 
     232        $error = 0; 
     233 
     234        print "<p><em>HTTP daemon UNIX username/group</em>: $process_username/$process_group</p>"; 
     235        #    print "<p><em>HTTPD group</em>: $process_group<BR</p>"; 
     236        print "<p><table BORDER=\"1\"><tr><td><b>Directory</b></td></td><td><b>Owner</b></td><td><b>Writable</b></td></tr>\n"; 
     237 
     238        foreach ($dir_array as $dir) { 
     239            print "<tr><td>$dir</td>"; 
     240            if (!file_exists(WIFIDOG_ABS_FILE_PATH . "$dir")) { 
     241                print "<TD COLSPAN=\"2\" STYLE=\"text-align:center;\">Missing</td></tr>\n"; 
     242                $cmd_mkdir .= WIFIDOG_ABS_FILE_PATH . "$dir "; 
     243                $cmd_chown .= WIFIDOG_ABS_FILE_PATH . "$dir "; 
     244                $error = 1; 
     245                continue; 
     246            } 
     247 
     248            $dir_info = posix_getpwuid(fileowner(WIFIDOG_ABS_FILE_PATH . "$dir")); 
     249            if($dir_info) { 
     250                $dir_owner_username = $dir_info['name']; 
     251            } 
     252            else { 
     253                //Posix functions aren't available on windows 
     254                $dir_owner_username = fileowner(WIFIDOG_ABS_FILE_PATH . "$dir"); 
     255            } 
     256            print "<td>$dir_owner_username</td>"; 
     257 
     258            if (is_writable(WIFIDOG_ABS_FILE_PATH . "$dir")) { 
     259                print "<td>YES</td>"; 
     260            } 
     261            else { 
     262                print "<td>NO</td>"; 
     263                $cmd_chown .= WIFIDOG_ABS_FILE_PATH . "$dir "; 
     264                $error = 1; 
     265            } 
     266            print "</tr>\n"; 
     267        } 
     268        print "</table>\n"; 
     269} 
    192270}}} 
    193271 
     
    210288No Work Around yet, but does not affect workings 
    211289 
    212 '''''WarningSmarty(Secure)'''''[[BR]] 
     290'''''WarningSmarty(Secure)''''' (Or blank screen when browsing to index.php)[[BR]] 
    213291 
    214292In classes\SmartyWifidog.php