- [Narrator] To install Apache MySQL in PHP on Windows,you can choose from a number of differentAM Stack bundles, but for the most customizableenvironment, you might want to install individualcomponents that come directly from the software vendors.I'll start this chapter by showing you howto download and install Apache for Windows.You won't go to the Apache Foundation for this software,instead, I'll use a bundle from the Apache Loungewebsite at apachelounge.com.
Even though the Apache Foundation manages theHTTP server, it doesn't provide a fully compiledinstaller for Windows, so insteadI recommend this distribution.The steps I'm going to demonstrate work forWindows 7 SP-1 and later.If you're running an older version of Windows,check the instructions on the Apache Lounge websiteto make sure you're getting the right versionsof all of the required software packages.Before you install Apache, you'll need to makesure you have the VC-14 redistributableinstalled from Microsoft, which is associatedwith Visual Studio 15.
To find out whether you already have that installed,go to your control panel and selectUninstall a program.Click the name column to put everything inalphabetical order, then scroll down to theMicrosoft section, and look for Visual C++2015 Redistributable version 14.You only need the version for your particularcopy of Windows, I'm working on 64-bit Windows,so I make sure that I have x64 available.
If you are planning to install Apache, PHP and MySQL on Windows 10 machine, then you can do so by choosing any of the two options given below: You can use any ready-to-use packages like: WampServer, XAMPP etc. You can make your own fully functional WAMP server (Manual Installation). In this video tutorial you will learn how to download and install Apache Tomcat Server on Windows 10 Computer. We have installed Tomcat 8 on the Windows 10 computer. Check more tutorials at. There are a number of different AMP stack bundles available for Windows installation. Installing individual components creates the most customizable and flexible environments. Learn how to download and install the Apache software for Windows in this video by extracting the Apache files to the local hard disk and then running the HTTPD application as a command line application.
Apr 04, 2016 In this tutorial, you’ll learn how you can make your own WAMP server by installing Apache, PHP and MySQL server manually on Windows 10. Learn to install Apache, PHP and MYSQL on Windows 10 Machine step by step. Install Apache on Windows 1. Understanding the AMP Stack. Install Separate Components on Windows. Install Separate Components on macOS. Install LAMP on Ubuntu Linux. Get Started with WampServer on Windows. Get Started with MAMP on macOS. Common Tasks and Troubleshooting. In this Apache Flink installation on windows tutorial, we will learn how to install Apache Flink on Windows. Apache Flink can be run on Windows as well as Linux. Here in this blog, we will see how to install Apache Flink on Windows on single node cluster mode and how can we run wordcount program.
Now, if you don't find that, you can go to Google,and search for it by typing C++Redistributable 2015, and that shouldtake you to the link, and from here you candownload and install the proper software package.Once you've installed that component,you're ready to install Apache.Go to the downloads page, and then choosethe version of Apache for your copy of Windows.Either Win64 or Win32.I've already downloaded the .zip file forWin64 to my desktop, and I'll show it right here.
The contents of the .zip file include a readme file,another file that you don't need, and then thisdirectory named Apache24.To extract this, I'm just going to drag it outto my desktop; you could instead right clickand select extract all to here.Once the files have been extracted,rename that directory from Apache24 to simply Apache.I'm going to cut the folder to the clipboard,then I'll navigate to my C drive,and paste the directory into place.
So now the path is C:Apache.Before I start up Apache for the first time,I have to make some configuration changesto match the name of the directory I just created.Under the Apache directory, I'll go to theconf subdirectory, and I'll look for this filenamed httpd.conf, that file extensionmight be hidden on Windows by default,but you can open up the properties windowby pressing Alt + Enter and see whatthe file extension is right here.
Open the file extension in a text editor.I'm using TextPad, but you can use anytext editor you like.Now, I want to search for all references to Apache 24.There are a number of places in this configurationfile that have references to this location.So I'm going to do a search and replace.I'll look for Apache24, and replace it with just Apache.Notice I'm using a forward slash and not a back slash,and that's going to be true throughoutthe configuration files.
I'll click replace all, and then I'll close this file,and that change is now done.Next, I'm going to search for a value called ServerName.This value is set by default to www.example.com:80,and it's commented out with a hash character.I'll remove the comment character,and then I'm going to change this to the actualDNS name, which is localhost, the reserved namefor my own personal computer.
I'll save my changes and exit the file.Now I'm ready to run the server.I'll go to a command prompt.First, I'll navigate to the Apache directory,and then from there to the bin subdirectory.This bin subdirectory contains a number of executables,all with the standard .exe file extension.I'm interested in the one that starts with httpd.That's the server application.To start up the server, I'll simply type httpd.
Notice that the command doesn't finish.That's expected.As long as the command is still running,your server will be alive.You might also see a firewall dialog pop up.If so, accept it to allow communicationwith the Apache server.Now to test the server, I'll go to a new browser window,and I'll type in localhost, and I should get backthe response, 'It works!' And that's becauseof the HTML file that's in the documents folderunderneath the Apache directory.
I'll right click and look at the page source,and I'll see that this is a very simple bit of text.An HTML tag, a body, and an h1 tag and the text, 'It works!'When running on Apache on Windows, your defaultweb documents directory is named htdocs,and it's under the Apache install directory.So I'll go back to that directory,to htdocs, and here's the index.htmlfile that I just saw in the browser,and I'll open it with TextPad and showthat it's exactly the same text.
When you're done with your Apache session,go back to your command prompt and pressCTRL + C, and that will interruptthe application and shut it down.Alternatively, you can just close the command window,and then, when you come back to the browser andtry to refresh, you should see that the sitecan't be reached, because the server has beenshut down, and is no longer receiving requests.To fire up the server again, go to a new command promptand start up the httpd application and you'll beready to work again with the Apache server.
XAMPP is a free open source software that provides an easy way for web designers and developers to install the necessary components to run PHP based software like WordPress, Drupal, Joomla, and others on Windows 10, macOS, and Linux.
If you’re a web developer or a person trying to get into blogging, XAMPP will save time and frustration having to manually install and configure Apache, MySQL, PHP, and Perl on your computer to create a test environment.
In this guide, you’ll learn the instructions to install XAMPP on your computer running Windows 10 as well as the steps to configure the solution, and fix common problems after the setup.
How to install XAMPP on Windows 10
Use these steps to download and install XAMPP on Windows 10:
- Open the Apache Friends website.
- Click the XAMPP for Windows button to save the file on your desktop.Quick note: If you have special version requirements for PHP, then download the version you’re required to install. If you don’t have a version requirement, then download the oldest version, as it may help you to avoid issues trying to install a PHP based software. In addition, these instructions have been tested to work for XAMPP version 7.3.8 and earlier versions, but you can also use them to install later versions.
- Double-click the downloaded file to launch the installer.
- Click the OK button.
- Click the Next button.
- XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be using most of these components, as such it’s recommended to leave the default options.
- Click the Next button.
- Use the default install location, or choose another folder to install the software in the “Select a folder” field.
- Click the Next button.
- Clear the Learn more about Bitnami for XAMPP option.
- Click the Next button.
- Click the Allow access button to allow the app through the firewall (if applicable).
- Click the Finish button.
- Choose your language (English or German).
- Click the Save button.
Once you complete the steps, the XAMPP Control Panel will launch, and you can begin the web server environment configuration.
How to configure XAMPP on Windows 10
The XAMPP Control Panel includes three main sections. In the Modules section, you’ll find all the web services available. You can start each service by clicking the Start button.
When you start some of the services, including Apache and MySQL, on the right side, you’ll also see the process ID (PID) number and TCP/IP port (Port) numbers each service is using. For example, by default Apache uses TCP/IP port 80 and 443, while MySQL uses TCP/IP port 3306.
You can also click the Admin button to get access to the administration dashboard for each service and verify that everything is working correctly.
On the right side there’s a list of buttons to configure various aspects of the control panel, including the Config button to configure which modules will automatically start when you launch XAMPP.
Clicking the Netstart button will give you a list of services currently accessing the network, including TCP/IP address and port, and process ID information.
In addition, from the control panel, there are also quick access buttons to open the shell command-line utility, XAMPP installation folder, services, and close the app.
Lastly, you get the logs section, where you can get a glance of what happens every time you start a module or change a setting. This is also the first place to look at when something isn’t working.
The default settings should work for most people using XAMPP to create a testing environment to run a website. However, depending on your setup configuration, you may need to change the TCP/IP port number for the Apache server, the database upload size, or set the password for phpMyAdmin.
To change these settings, you’ll need to use the Config button for the corresponding service. For example, you’ll need to open the httpd.conf file to change the settings on the Apache server, and the my.ini file to change the MySQL settings.
How to fix Apache not starting on XAMPP
The XAMPP installation is very straightforward, but Windows 10 sometimes may not allow the Apache server to run. Usually, it’s because the World Wide Publishing Service is running on port 80 on your computer, which also happens to be the default TCP/IP port that Apaches uses on XAMPP, and two applications can’t use the same port.
If you run into this issue, there are a couple of ways to get around it. You can uninstall the publishing service, or you can change the default port on Apache.
Uninstall World Wide Web Services
If you don’t have any app depending on the World Wide Web Services feature, you can uninstall it using these steps:
- Open Start.
- Search for Control Panel, and click the top result to open the experience.
- Click on Programs.
- Click the Programs and Features option.
- Click the Turn Windows features on or off link.
- Expand Internet Information Services and clear the World Wide Web Services option.
- Click the OK button.
- Restart your computer.
- Start the XAMPP Control Panel.
- Click the Start button on Apache.
After you complete the steps, Apache should be able to run in port 80 on your device.
Change the default Apache TCP/IP port
Alternatively, you can configure Apache to run on a different TCP/IP port using these steps:
![Apache Apache](/uploads/1/2/4/8/124853513/179464411.jpg)
- Open XAMPP Control Panel.
- Click the Admin button on Apache.
- Click the httpd.conf option.
- Scroll down and find the line: Listen 80.
- Change the 80 for another TCP/IP port number. For example, you can try port 81. (After the change the line should read: Listen 81.)
- Save and close the httpd.conf file.
- Click the Start button on Apache.
Once you complete the steps, the Apache server should run without issues on the new TCP/IP port you specified.
The only caveat with this configuration is that you’ll need to append TCP/IP port number on the address every time you want to connect to your website. For example, to access the Apache server on the web browser, you will need to type: “localhost:81/dashboard” instead of “localhost/dashboard.”
Manually stop World Wide Web Publishing Service
Another way to fix the port problems issues is to stop the service and change its settings to only start the service manually using these steps:
- Open Start.
- Search for Services, and click the top result to open the experience.
- Double-click the World Wide Web Publishing Service service.
- Click the Stop button.
- Change the startup type to Manual.
- Click the Apply button.
- Click the OK button.
- Open the XAMPP Control Panel.
- Click the Start button to run the Apache server.
The best way to get Apache working again is by uninstalling the World Wide Web Publishing Service, but when that’s not possible you can alternatively change the TCP/IP port number or stop service as necessary.
How to increase phpMyAdmin upload size on XAMPP
Another common problem with XAMPP is the default database upload limit. For example, many times developers will make a copy of a website for troubleshooting purposes or work in site without disrupting the live website. However, people using WordPress or another content management software will quickly find out that they can’t upload a database because it exceeds the maximum upload size permitted, which by default is 2,048KiB.
Use these steps to increase the database upload limit on phpMyAdmin using these steps:
- Open XAMPP Control Panel.
- Click the Explorer button.
- Open the php folder.
- Open the php.ini file with any text editor.
- Change the value for
upload_max_filesize
andpost_max_size
to the size you want. For example:post_max_size=20M
andupload_max_filesize=20M
to import database files of up to 20MB. - Click the Stop button for MySQL and Apache .
- Click the Start button to restart Apache and MySQL.
Once you complete the steps, you should now be able to import large database files on phpMyAdmin.
How to change phpMyAdmin password on XAMPP
By default, phpMyAdmin (MySQL) uses “root” as username without password, which means that if you’re installing a WordPress site, when asked you only need to enter root as the username and leave the password field empty.
Use these steps to change the phpMyAdmin password on XAMPP:
- Open XAMPP Control Panel.
- Click the Admin button for MySQL.
- Click on the User accounts tab.
- Click the Edit privileges link for the username root, but the one with hostname localhost.
- Click the Change password button.
- Specify the new password.
- Click the Go button.
After you complete the steps, if you try to login to phpMyAdmin, you will get an access denied message: “Cannot connect: invalid settings.”
Fixing phpMyAdmin access denied message
Use these steps to change the configuration settings in the config.inc.php file to fix the sign in problem:
- Open XAMPP Control Panel.
- Click the Explorer button.
- In the XAMPP folder, open the phpMyAdmin folder.
- Open the config.inc.php file with any text editor.
- Under “Authentication type and info,” and update the following lines:
- On
$cfg['Servers'][$i]['auth_type'] = 'config';
replaceconfig
forcookie
. - On
$cfg['Servers'][$i]['AllowNoPassword'] = true;
replacetrue
forfalse
.
- Save and close the file.
Once you complete the steps, you should be able to login to phpMyAdmin dashboard.
Now XAMPP is configured and ready to use with any supported PHP-based software.
Update August 13, 2019: This guide was originally published in March 2016, and it was revised in August 2019 to make sure the information still works with the latest version of XAMPP.
Weekly Digest: Windows 10 20H1, Windows Terminal, tech tips![Apache download for windows 10 Apache download for windows 10](/uploads/1/2/4/8/124853513/104634583.jpg)