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/_Archive/MMDT1021/apache/ |
Upload File : |
<? // ApacheConfigure.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. $thisFile=__FILE__; $thisLine=__LINE__; include('application.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Course/courseInfo.phpinc'); $title = "Configure Apache"; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageHeader.phpinc'); $thisFile=__FILE__; $thisLine=__LINE__; include('Login/authenticate.phpinc'); $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title; $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionHeader.phpinc'); ?> Apache menu: <a href="ApacheInstall.php">Part 1: Apache Install</a> <a href="Apache_Service.php">Part 2: Configure the Apache Service</a> <a href="ApacheControl.php">Part 3: Setup Apache Control</a> <span class="currentpage">Part 4: Configure Apache </span> <br /><br /> Configure Apache: (part 4 of 4) <ol class="instruction"> <li>First we are going to create a folder to hold all your web pages. <br />Open up the MMDT1021 folder and create a new folder called <b>htdocs</b> (<u>F</u>ile Ne<u>w</u> <u>F</u>older or right-click Ne<u>w</u> <u>F</u>older). <br /><img src="ca_01.jpg" /> </li> <li>Open up the htdocs folder and create another folder called <b>Lab01</b>. You will use this folder later to hold your first lab assignment. <br /><img src="ca_02.jpg" /> </li> <li>Now we have to change the Apache configuration to use the htdocs folder. This is not an Apache class so I have a pre-built configuration file. <br />Right-click on one of the links here: <br />If you created your MMDT1021 folder on the D: drive right-click on the link here <a href="D/httpd.conf">D: httpd.conf</a>. <br />If you created your MMDT1021 folder on the C: drive right-click on the link here <a href="C/httpd.conf">C: httpd.conf</a>. <br />Select <b>Save Target As...</b> if using Internet Explorer (IE) or <b>Save Lin<u>k</u> As...</b> if using Firefox (FF). <br /><img src="SaveTargetAs.jpg" align="top" /> <img src="SaveLinkAs.jpg" align="top" /> <li>Select the <b>D:\Apache2.2\conf</b> or <b>C:\Apache2.2\conf</b> folder (depending on where you installed Apache) and click <b>Save</b>. <br /><img src="ca_03.jpg" /> </li> <li>Click <b>Yes</b> to over-write the file. <br /><img src="ca_04.jpg" /> </li> <li>Go back to the WebServices.bat window and hit <b>A</b> again to restart Apache. <br /><img src="ac_07.jpg" /> <br />Don't close the WebServices.bat window, we are going to use it again later. </li> <li>Bring back up the browser and again refresh the page (F5, <u>View</u> <u>R</u>efresh, or <u>View</u> <u>R</u>eload). <br />You should get a page similar to the one below. <br /><img src="ca_05.jpg" /> <br />Apache is serving up an index of what is in the D:\MMDT1021\htdocs folder (remember the Lab01 folder you created in step 2 - that's what is showing here). <br />You can close the browser, we are done with it. </li> <li>Go back to the WebServices.bat window and hit <b>A</b> to stop Apache and <b>X</b> to exit WebServices.bat.. </li> </ol> That's it for configuring Apache. Setup for MMDT1021 is complete. You can close this window and the Setup Guide window as well. <? $thisFile = __FILE__; $thisLine=__LINE__; include('common/sectionFooter.phpinc'); $thisFile = __FILE__; $thisLine=__LINE__; include('common/pageFooter.phpinc'); ?>