Running the Apache Server 


apacheg.png apg

To run Apache Server on port 80, it is a good idea to create a SHORTCUT on your system's DESKTOP.


 H:/ 

Open this folder:

H:/Apache64

ap8.png apb


 H:/Apache64/ 

Open this folder:

H:/Apache64/Apache24

Open the highlighted folder:

H:/Apache64/Apache24/bin

ap9.png apb


 H:/Apache64/Apache24/bin/ 

Right-click

the highlighted file:

H:/Apache64/Apache24/bin/httpd.exe

ap10.png apb


 H:/Apache64/Apache24/bin/ 

This file:

H:/Apache64/Apache24/bin/httpd.exe

Choose:

Copy

ap11.png apb


 Desktop -> Paste shortcut 

Right-click

on the

Desktop

and chose:

Paste shortcut

ap12.png apb


 Desktop -> httpd.exe - Shortcut 

The

httpd.exe - Shortcut

is then created on the

Desktop

ap13.png apb


 Desktop -> httpd.exe - Shortcut 

Double-click

the

httpd.exe - Srortcut

to activate the

Apache Server on port 80

ap14.png apb


 Apache Server Terminal is Open 

The

Apache Server Terminal on port 80

it is then open, ready to operate.

ap15.png apb


 Apache Server Terminal is Open 

The

Apache Server Terminal on port 80

must be kept open while in use.

In order not to disturb the viewing of other applications, it must therefore be kept minimized on the

Taskbar

So minimize it.




Next, we'll show you how to use Apache Server on port 80 to run a PHP 7 scripts.


 Taskbar -> Apache Server Terminal Minimized 

The

Apache Server Terminal on port 80

must be kept minimized while in use.

Soon we will say how to safely close it.

ap16.png apb


 Open your favorite browser 

To test whether the

Apache Server on port 80

can 'see'

PHP 7 scripts

open your preferred browser.

ap17.png apb


 localhost 

Enter the URL:

localhost

ap18.png apb


 localhost 

This URL will allow to display the file

H:/WEB/public_html/index.php

which is intended to show all of its content viewed as public.

The contents of this file will be shown, just after entering the URL followed by ENTER .

ap19.png apb


 localhost/info.php 

Now, enter the URL:

localhost/info.php

ap20.png apb

This URL allows the display of a table with information about PHP 7.


 localhost/info.php 

With the display of this table, it is proven that the

Apache Server on port 80

runs

PHP 7

scripts perfectly.

ap21.png apb

For now, you can close your browser.


 Taskbar -> Open the Apache Server Terminal 

Maximize

Apache Server Terminal on port 80

then minimized on the

Taskbar

ap22.png apb


 Closing the Apache Server Terminal 

To close the

Apache Server Terminal on port 80

then, maximized.

The traditional way of closing can be used, of course.

ap23.png apb


 System logs 

To see the automatic logs generated by the system, you must access the folder:

 H:/Apache64/logs 

ap24.png apb


 H:/Apache64/logs 

 H:/Apache64/logs/access.log 

This file is created the first time the Apache Server on port 80 is started and self-implemented each time it is shut down and then restarted.

ap25.png apb

It has the following format:



. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

::1 - - [29/Jun/2020:09:28:11 -0300] 
            "GET /.../?xf=5 HTTP/1.1" 200 3044
::1 - - [29/Jun/2020:09:28:11 -0300] 
            "GET /.../.../VeraMono.ttf HTTP/1.1" 404 196
::1 - - [29/Jun/2020:09:28:11 -0300] 
            "GET /favicon.ico HTTP/1.1" 200 1652
::1 - - [29/Jun/2020:09:28:47 -0300] 
            "GET /.../?xf=5 HTTP/1.1" 200 3047
::1 - - [29/Jun/2020:09:28:47 -0300] 
            "GET /.../.../VeraMono.ttf HTTP/1.1" 404 196
::1 - - [29/Jun/2020:09:28:47 -0300] 
            "GET /favicon.ico HTTP/1.1" 200 1652

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

 H:/Apache64/logs 

 H:/Apache64/logs/error.log 

This file is created the first time the Apache Server on port 80 is started and self-implemented each time it is shut down and then restarted.

ap26.png apb

It has the following format:



. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

[Mon Jun 29 09:25:27.461900 2020] [mpm_winnt:notice] [pid 12016:tid 624] 
                 AH00455: Apache/2.4.43 (Win64) PHP/7.4.7 configured 
                 -- resuming normal operations
[Mon Jun 29 09:25:27.461900 2020] [mpm_winnt:notice] [pid 12016:tid 624] 
                 AH00456: Apache Lounge VS16 Server built: Mar 31 2020 16:01:02
[Mon Jun 29 09:25:27.461900 2020] [core:notice] [pid 12016:tid 624] 
                 AH00094: Command line: 
                 'H:\\Apache64\\Apache24\\bin\\httpd.exe -d H:/Apache64/Apache24'
[Mon Jun 29 09:25:27.461900 2020] [mpm_winnt:notice] [pid 12016:tid 624] 
                 AH00418: Parent: Created child process 2168
[Mon Jun 29 09:25:27.863192 2020] [mpm_winnt:notice] [pid 2168:tid 640] 
                 AH00354: Child: Starting 64 worker threads.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

 H:/Apache64/logs 

 H:/Apache64/logs/httpd.pid 

This file which is intended to store the Apache Server PID, (Process ID).

This means that it is always created, at the opening of the terminal and eliminated at its closure.

ap27.png apb

It has the following format:



16269



If you wish, you can check these files whenever you want.

To have complete control of what is displayed by each of these files, it is best to observe them with the Apache Server on port 80 out of operation.

Remember that the httpd.pid file is only active when the Apache Server on port 80 is in operation.





In the following, we will instruct you how to install and configure the MySQL Community Server.

Installing the MySQL Server version 8