Initial Information The environment that we will use throughout this tutorial is
Windows™ 10
Preparing the Environment I
To prepare our environment, to perform all of our proposed exercises, let's say that the drive chosen for this is drive C, D, F, H or another available drive letter.
In this tutorial we will generally use drive H.
ATTENTION
The activities proposed in the following pages of this tutorial are intended to describe the individual installation of each of the Server components.
Whenever necessary, we will indicate the port and version of the used components.
We will use the term GENERIC DISK or DISK H, to designate the HD used.
After choosing which disk to use, we started preparing the environment by creating the following folder at the root of it:
H:/WEB
This will be the folder designed to store all public and private contents, so it will be our future working environment.
H:/
Initially, create a folder at the root of the
GENERIC DISK H:
H:/WEB
H:/WEB
Create the following subfolders:
H:/WEB/adds
H:/WEB/img
H:/WEB/includes
H:/WEB/public_html
H:/WEB/SSL
H:/WEB/temp
H:/WEB/tmp
H:/WEB
Such subfolders will be intended for particular uses:
H:/WEB/adds
Private Environment
1. For general file storage.
H:/WEB/img
Private Environment
2. For storing image files in general.
H:/WEB/includes
Private Environment
3. Files that will be used as includes and require.
H:/WEB/public_html
Public Environment
4. Intended for files to be shown to the public.
H:/WEB/SSL
Private Environment
5. Designed to store security, SSL and similar files.
We will study SSL, (OpenSSL), in a specific chapter in this tutorial.
H:/WEB/temp
Private Environment
6. For storage of files which will be used temporarily and which can be deleted after use.
We will use this folder constantly during this tutorial.
H:/WEB/tmp
Private Environment
7. It is intended to store temporary files created by the system.
Sessions and the like.
Verifying that the environment is ready
These are necessary procedures to check if the environment:
Windows™
is properly prepared for the installation of the system:
Apache Server port 80
or
Apache Server port 81
and
PHP 7
or
PHP 8
and
MySQL Community Server
First VerificationIn the start menu click on:
Windows System
Second VerificationThen click on:
Control Panel
Third VerificationWhen the
Control Panel
opens, click on
Uninstall a program
Fourth VerificationTake it easy...
...you won't uninstall anything, just do a scan.
If
Microsoft Visual C ++ 2015-2019 Redistributable (x64)and
Microsoft Visual C ++ 2015-2019 Redistributable (x86)are installed in your environment, very well, you can close the Windows command then opened, because the verification is finished.
If both are not installed in your environment, you will be able to download them and then proceed with the installations.
In order to do this, we provide the link below:
The website for downloading these distributions is owned by
Microsoft™.
To install the two
VC16 just use the usual procedure.
Once installed the
Microsoft Visual C++ Redistributable, you can repeat the check for simple verification, nothing more.
Preparing the Environment II
These files are essential for testing and effectiveness of the set:
Apache Serverand
PHPand
MySQL Community ServerClick on the link below to download a compressed file containing the basic files intended for this purpose.
WEB-temp.zip
This file should initially be unzipped in the folder:
H:/WEB/publc_html/the files:
H:/WEB/publc_html/favicon.icoand
H:/WEB/publc_html/index.phpand
H:/WEB/publc_html/info.php
H:/WEB/public_html
This is the current configuration for this folder.
These files:
index.php
and
info.php
are basic and can be replaced with more complex versions.
These files, for the time being, are enough to test the functioning of the
Apache Server port 80
or
Apache Server port 81
and
PHP 7
or
PHP 8
This folder must pay special attention, as it will store all files shown to the public, our programming environment.
index.php
This file has the following format:
<!-- index.php -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>index php</title>
</head>
<?php
echo "Works ";
?>
<body>
</body>
</html>
info.php
This file has the following format:
<?php
// info.php
phpinfo();
?>
favicon.ico
The favicon.ico file presents itself as a "cosmetic file" , not influencing the execution of any code.
If you want to keep it, you can then create your own favicon.ico.
At this point, we have the basics to proceed to the next step that deals with the installation of the
PHP,
Apache Server and
MySQL Community Server system.
As we said before, we will call all elements of this system, simply:
Server.
The procedures for installing this
Server system will be seen below.
Downloading Components of Server