How to Install and Setup Apache2.4 Web Server and PHP 8 on Windows 11 | Apache 2.4 | PHP 8.1

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back to my channel in this tutorial we are going to learn how to install and set up apache web server and php 8 on windows 11 if you are new to this channel subscribe this channel to get more tutorials let's get started by downloading apache web server from this website apache launch from here download apache 2.4 for windows 64-bit operating system download this zip archive file click here to download i already have downloaded it on my machine and also download php for windows operating system from this url from here download php thread safe zip archive file i already have downloaded it on my machine okay after a successful download navigate to download folder and then extract this archive file okay now navigate to this extracted file from here copy apache 24 directory and paste into local disk c at first i am going to install apache web server so follow this installation instruction now i am going to run apache web server as a service so copy this command and then open command prompt as administrator okay now navigate to the apache directory by cd and then navigate to bin sub directory okay now write this command and you can change the service name my case apache 2 4 okay now hit enter if you get this error v current time 140.dll was not formed we can fix this problem by installing microsoft visual studio c plus plus redistributable okay download this libraries from here click here to download i already have downloaded it on my machine navigate to download folder and then install this executable file okay now remember that php version 8 and letter support the microsoft visual c plus plus the distributables for visual studio 2019 or later okay okay now install apache web server apache uf server installed as service successfully on windows 11 okay now verify the installation here open service app check that apache web server is running if it is not running start the service from here okay now access the localhost so write localhost on url of a web browser if you see this that means approach uf server installed successfully okay now i am going to install php on windows 11. rename php extracted folder and copy this folder and paste into local disk c or anywhere on your computer and then navigate to php and copy the path okay and then search here for the system environment variable to install php for all users go to the system variable section and then click on path now click on edit add new path here okay paste this path here now click on ok ok and okay now verify the installation open new command prompt and type this command here php hyphen v for version that's it php 8.1.9 cli installed successfully on windows 11 okay now i am going to configure php with apache web server now navigate to apache web server and then configuration directory now open httpd configuration file with any text editor and then go to bottom of this file okay here right this lines okay here add the php8 module path so navigate to php directory and then search here php8 apache dot dll copy the full path and then paste here okay and also add here the php i89 directory here modify this slash backslash to forward slash okay now save this file let's create a simple php script and run on apache web server so open notepad or any text editor now write a simple php script here that will print a message php 8 and apache web server okay now save this file and name it index dot php okay now navigate to local disk c and then apache and then navigate to htdocs subdirectory okay here you can create a new folder my case my site and now save this file into my site now verify it on web browser right here slash my site hit enter if you get this error you need to restart the apache web server so stop the service close this command prompt now we open service app and start apache web server i am going to start the apache web server from [Music] command prompt now write this command here http d dot exe hit enter we need to modify the http dot configuration file so open this file and modify and just write php module and then save this file okay now start the apache web server open service app start apache web server okay now verify on web browser now run the php script my site that's it php script is running on apache web server if you like this video like comment and share thank you so much for watching this video
Info
Channel: TechWebDocs
Views: 28,905
Rating: undefined out of 5
Keywords: How to Install and Setup Apache2.4 Web Server and PHP 8 on Windows 11 | Apache 2.4 | PHP 8.1, techwebdocs, How to Install and Setup Apache2.4 Web Server and PHP 8, Apache2.4, PHP 8, Windows 11, How to Install and Setup Apache 2.4, Apache 2.4, php, apache 2, apache server, apache2 web server windows 11, php 8, mysql, learn php, php on windows 11, php 8 tutorial, apache2 configuration, apache web server tutorial windows, apache web server, php 8 apache, install php 8 windows
Id: 3EAj9tsXLFU
Channel Id: undefined
Length: 12min 47sec (767 seconds)
Published: Tue Aug 23 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.