Showing posts with label Developer. Show all posts

XAMPP Local Server Installation

Apache, PHP and MySQL software must be installed in order to set up and open a programming-based website, such as WordPress or OpenCart, on your personal computer. In this article, you will learn how to install these software on a computer with a Windows operating system. You can manually install each of these software separately. But there are different combined installation packages that we can use to make it faster and easier. With these package installations, a single installation is made. When you install it, these softwares we need are set to work in compatible with each other and they are ready to use.

How to Install XAMPP Local Server Pictorial Lecture

How to Install XAMPP Local Server?

To install a local web server on your computer, you can choose from two package installations:

A-) EasyPHP
B-) XAMPP

A-) How to Install XAMPP?


XAMPP is one of the leading local server installation packages. The scope of the software it includes is wide and its versions are kept up to date. It may be a good choice to choose XAMPP for this.

Now let's explain the steps of installing the XAMPP local server on our computer in detail.

» Estimated time: 5 minutes
» Prerequisites:
PC with Windows operating system (7, 8, 10 or newer)
Internet connection
700 MB of free disk space

1-) Download XAMPP

1-1-) Download the XAMPP setup file from the address below.
https://www.apachefriends.org/download.html
Download XAMPP Setup Setup File
The executable file named 'xampp-windows-x64-7.4.10-0-VC15-installer.exe' will be saved on your computer.

The current package of XAMPP includes the following software and versions:
• Apache 2.4.51
• MariaDB 10.4.21
• PHP 8.0.12
• OpenSSL 1.1.1

The latest PHP version usually only has the 'Secure' feature. You would have made a better choice instead by using the PHP version that is both 'Stable' and 'Secure'. For example, while the most recent version released is 8.0, this version only qualifies as 'Secure'. However, in the same time period, 7.4 is both 'Stable' and 'Secure' as its vulnerabilities were found and closed as a result of its more widespread use, and it is recommended to use this version.

2-) XAMPP Installation

2-1-) Run the downloaded file and start the installation.
Running XAMPP Setup Setup
Proceed with the "Next" button on each new installation screen.
2-2-) Select which components to install while the components in the package. Apache, PHP, MySQL and options must be ticked. It is recommended to select all.
XAMPP Installation Screen
2-3-) Select the directory where the installation will be made.
Selecting XAMPP Installation Folder
2-4-) Choose which language XAMPP's control panel will be in. This selection does not affect the site you will set up. You can select the language "English".
XAMPP Installation Choosing Language
2-5-) Uncheck the checkbox to not open the information page.
XAMPP Installation Information Page
2-6-) The installation files will start to be copied. Wait until it completes.
XAMPP Installation File Copy
2-7-) Click the "Finish" button to finish the installation.
XAMPP Installation Completion

3-) Running XAMPP local server

3-1-) Run XAMPP. You will see the orange 'x' icon in the lower right system area. Open the XAMPP main window.
XAMPP Main Window
You can click the 'Quit' button in the main window to close the program at any time.
3-2-) Run the local web server and database server by clicking the 'Start' buttons shown in yellow frame to the right of 'Apache' and 'MySQL'.
XAMPP Setup Apache Php Autostart
When the servers start working, the background color of their names will be green. When you click the 'stop' buttons the server stops.
You can have the servers running automatically every time XAMPP starts. To do this, click the 'Config' button at the top right of the main window. Select the 'Apache' and 'MySQL' boxes under 'Auto start of modules' in the window that will open. Save the settings with the 'Save' button.
3-3-) Open 'http://127.0.0.1/' ( or 'http://localhost/' ) in your browser. You will see a welcome page prepared by XAMPP.
XAMPP Local Server Welcome Page
XAMPP Local Server Home Folder
Let's assume that the directory you selected while installing is 'C:\xampp'. The local web server interprets the files in the 'C:\xampp\htdocs' directory and displays them in the browser. You will save the files of the new sites you will create in this directory. When you open the local server in the browser, the file 'index.php' in the root directory will automatically run and point the browser to 'http://127.0.0.1/dashboard/' ( or 'http://localhost/dashboard/' ). The welcome message you see in the browser comes from the file 'index.html' in the 'C:\xampp\htdocs\dashboard' directory. You can then rename the 'index.php' file in the root directory with 'hello.php'. Thus, when you open the 'http://127.0.0.1/' (or 'http://localhost/' ) address, you can see the directories and files under the 'C:\xampp\htdocs' directory listed in your browser.
3-4-) Open the 'phpMyAdmin' link marked with a yellow arrow at the top right of the welcome page picture. The phpMyAdmin page will open. With phpMyAdmin, you can manage database through your browser. You can create, edit and delete database, table, tablespace, data record, run database query. If you want, add this address to your browser's shortcuts.
XAMPP phpMyAdmin MySQL

When you complete the step-by-step explanation of the above XAMPP installation, you can run the pages programmed with PHP language on your own computer and perform query operations by establishing a database connection.
Share:

EasyPHP Local Server Installation

For a software-based website such as WordPress or Joomla to run on your own computer, Apache, PHP and MySQL software must be installed first. This page will explain how to install these software on a computer with a Windows operating system. You can install each of these software one by one. But there are several combined installation packages that you can use to get things done easily with less time consuming. These package installations make all the necessary software work in harmony with each other at the end of a single installation process, they make their settings and present them to you ready to use.

How to Setup EasyPHP Local Server Pictorial Lecture

How to Setup a Local Server?

To install a local web server on your computer, you can choose from two package installations:

A-) EasyPHP
B-) XAMPP

A-) How to Install EasyPHP?


EasyPHP is a package local server installation with less installation size ( ~60 MB ) compared to its counterparts. The software it contains may be several versions earlier. It allows you to keep multiple PHP versions ready and choose one of them. If you are a power user, you can manually add the current PHP version if you want. After installation, missing Windows dll file may give errors. To solve this problem, you need to find and install Windows patches that complete the missing dll files.

EasyPHP Devserver 17 includes the following software and versions:
• Apache 2.4.25
• MySQL 5.7.17
• PHP 5.6.30
• PHP 7.1.3

» Estimated time: 5 minutes
» Prerequisites:
PC with Windows operating system (7, 8, 10 or newer)
Internet connection
600 MB of free disk space

1-) EasyPHP Download

1-1-) Download the setup file from the page below.
https://www.easyphp.org/download.php
Download EasyPHP Setup Setup File
EasyPHP Installation Exe File
The executable file named 'EasyPHP-Devserver-17.0-setup.exe' will be saved on your computer.

2-) EasyPHP Installation

2-1-) Run the setup file. Choose which directory on your disk the installation will be made and proceed to the next step with the 'Next' button.
Choosing EasyPHP Installation Folder Location
2-2-) If you wish, click the option to create a shortcut on the desktop and proceed.
EasyPHP Setup Screen
2-3-) Click the 'Install' button on the screen showing summary parameters.
Running EasyPHP Setup Setup
The copying of the installation files will begin.
EasyPHP Installation DLL copy
2-4-) After the process is completed, you will have completed the installation by clicking the 'Finish' button.
EasyPHP Installation

3-) Running EasyPHP local server

3-1-) Run EasyPHP. You will see the black 'e' icon in the lower right system area.
EasyPHP Installation start
When you right-click the icon, the EasyPHP menu appears. You can select the 'Exit' item in this menu to close the program at any time.
3-2-) You can start and stop the Web server and database server with the options under 'Servers' in the EasyPHP menu. Run 'Start / Restart All Servers' to run both.
3-3-) Select 'Open Dashboard'. After clicking, your browser will start and the EasyPHP web interface will open.
EasyPHP Installation usage
You can also start, stop and restart servers with the buttons marked with red arrows in the picture.
PHP 5.6.30 version is running as you can see in the picture below with a yellow line. We mentioned that you can optionally switch between different PHP versions with EasyPHP. If there is more than one version option, you can set the server to work with as follows:
3-4-) lick the gear wheel button shown in the yellow frame. In the 'PHP version' line in the window that opens, you will see the installed versions in the options that drop down. Choose the version you want. It is recommended to set the port number to 80. If the port number is 1111, the root address of the local web server will be 'http://127.0.0.1:1111/' ( or http://localhost:1111/ ). If you set the port number to 80, simply type 'http://127.0.0.1/' ( or http://localhost/ ) in the address bar of your browser to access your web server. After making the settings changes, restart the server with 'restart'.
EasyPHP Installation add php version
3-5-) In the list under the 'Working Directories' heading, there are directories determined on your disk. The web server interprets and executes the files in this directory. As can be seen in the 'Portable Directory' line marked with a blue frame in the picture, the 'C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www' directory is selected. When you visit the 'http://127.0.0.1/' address in your browser, the local web server lists this directory and/or reads files such as html, php under this directory and displays it to you as a page.
EasyPHP Installation workspace
3-6-) When you click the 'open' button marked with a red arrow to the right of the 'MySQL Administration PhpMyAdmin 4.7.0' line under the 'Modules' heading, the PhpMyAdmin window opens.
EasyPHP Installation MySQL
EasyPHP Installation PhpMyAdmin
With phpMyAdmin, you can manage database through your browser. You can create and delete database, table, tablespace, data record, run database query.

When you complete the step-by-step explanation of the EasyPHP installation above, you can run pages programmed in PHP on your own computer and perform query operations by establishing a database connection.
Share:

Subscribe to: Posts (Atom)