Running the Apache Server
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
H:/Apache64/ Open this folder:
H:/Apache64/Apache24Open the highlighted folder:
H:/Apache64/Apache24/bin
H:/Apache64/Apache24/bin/ Right-clickthe highlighted file:
H:/Apache64/Apache24/bin/httpd.exe
H:/Apache64/Apache24/bin/ This file:
H:/Apache64/Apache24/bin/httpd.exeChoose:
Copy
Desktop -> Paste shortcut Right-clickon the
Desktopand chose:
Paste shortcut
Desktop -> httpd.exe - Shortcut The
httpd.exe - Shortcutis then created on the
Desktop
Desktop -> httpd.exe - Shortcut Double-clickthe
httpd.exe - Srortcutto activate the
Apache Server on port 80
Apache Server Terminal is Open The
Apache Server Terminal on port 80it is then open, ready to operate.
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 80must be kept minimized while in use.
Soon we will say how to safely close it.
Open your favorite browser To test whether the
Apache Server on port 80can 'see'
PHP 7 scriptsopen your preferred browser.
localhost Enter the URL:
localhost
localhost This
URL will allow to display the file
H:/WEB/public_html/index.phpwhich 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 .
localhost/info.php Now, enter the
URL:
localhost/info.phpThis
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 80runs
PHP 7scripts perfectly.
For now, you can close your browser.
Taskbar -> Open the Apache Server Terminal Maximize
Apache Server Terminal on port 80then minimized on the
Taskbar
Closing the Apache Server Terminal To close the
Apache Server Terminal on port 80then, maximized.
The traditional way of closing can be used, of course.
System logs To see the automatic logs generated by the system, you must access the folder:
H:/Apache64/logs
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.
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.
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.
It has the following format:
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.