Install and configure XAMPP on Windows 10

XAMPP is a free open source software did 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, Mac OS X, and Linux.

Apache, MySQL, PHP, and Perl on your computer to create a test environment. XAMPP wants to save you time and frustration.

In this  guide , you’ll learn how to install the XAMPP on your computer running  Windows 10 , how to configure the software, and solve common problems.

Step-by-step guide to install XAMPP:

  1. Download XAMPP from  Apache Friends .

    Download XAMPP for Windows 10

    If you have special version requirements for PHP, then download the version you’re required to install. If you do not have a version requirement, then download the oldest version, it may help you to avoid issues trying to install a PHP based software.

  2. Double-click the file to run the installer.
  3. Click  OK  on the warning to continue.XAMPP warning on Windows
  4. Click  Next .XAMPP setup on Windows 10
  5. XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will want to use most of these components, as it is recommended to leave the default options and click  Next .XAMPP install components
  6. Uncheck the  Learn more about Bitnami for XAMPP  and click  Next .XAMPP installation wizard on Windows 10
  7. Leave the default install location settings or choose another folder to install the software, and click  Next  to begin the installation.XAMPP installation location
  8. During the installation Windows will prompt you to allow certain services to communicate through the firewall. Click Allow access through the firewall for private.XAMPP allow access through Windows Firewall
  9. Click Finish to complete the installation and to start using XAMPP Control Panel.Complete XAMPP installation on Windows 10
  10. Choose your language (English or German), and click Save to complete and open XAMPP Control Panel.XAMPP Control Panel on Windows 10

How to configure XAMPP on Windows 10

The XAMPP Control Panel includes three main sections. In Modules, you will find all the services available. You can run each service by clicking the Start button.

When you start some of the services, including Apache and MySQL, on the right side, you will also see the process ID number and TCP/IP 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.

XAMPP Control Panel

On the right side have a list of buttons to configure various aspects of the control panel, including Config to configure which modules will automatically want to start when you launch XAMPP.

XAMPP Config

Netstart will give you a list of services currently accessing the network, process ID and TCP/IP port information.

XAMPP Netstat

And there are also quick access buttons to open the shell command-line utility, XAMPP install folder, Services, and quick.

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.

Apache won't start on Windows 10 error

The default settings should work for most people using XAMPP to create a testing environment to run a website for personal use or a client. 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 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 settings for MySQL.

How to fix Apache not starting on XAMPP

The XAMPP installation is very straightforward, but on Windows 10 and other versions of the operating system, sometimes there is a problem that will not allow the Apache server to run.

The issues can be attributed to the World Wide Publishing Service that may be installed and running on port 80 on your Windows PC. Port 80 also happens to be the default TCP/IP port that Apaches uses on XAMPP and no two applications can use the same port in the computer.

You have a few ways to fix the problem as shown below:

Uninstall World Wide Web Services

If you don’t have any applications depending on the World Wide Web Services feature, you can uninstall it using the following steps:

    1. Use the Windows key + X keyboard short to open the Power User menu and select Programs and Features.
    2. Click the Turn Windows features on or off link.Turn Windows features on or off
    3. Expand Internet Information Services and uncheck World Wide Web Services. Here, you can also uncheck FTP Server and Web Management Tools, if you don’t depend on those services.
  1. Click OK.Microsoft IIS - World Wide Web Services
  2. Reboot your computer to complete the task.
  3. Open XAMPP Control Panel and click Start on Apache.

Change the default Apache TCP/IP port

Alternatively, you can configure Apache to run on a different TCP/IP port using the following steps:

  1. One the XAMPP Control Panel, click the Admin button on Apache, and click httpd.conf.
  2. Scroll down and find the line: Listen 80.
  3. Change the 80 for another TCP/IP port number. You can try port 81. After the change the line should read: Listen 81.httpd.conf change TCP/IP port number
  4. Save and close the httpd.conf file.
  5. Click the Start button to run the Apache server.

The only caveat with this configuration change 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 thing you could do is to stop World Wide Web Publishing Service (World Wide Web Services) and change its settings to only start the service manually using the following steps:

  1. Open the Start menu, do a search for Services, and press Enter.
  2. Scroll down, find, and double-click World Wide Web Publishing Service.World Wide Web Publishing Service
  3. Click Stop.
  4. Change the startup type to  manual .
  5. Click  Apply .
  6. Click  OK .Stop and set Manual settings for World Wide Web Publishing Service
  7. On 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 if that’s not possible you can change the TPC / IP port number or stop service as necessary.

References – Pureinfotech

Schreibe einen Kommentar