HOW TO PHP XAMPP INSTALL IN LOCALHOST FULL TUTORIAL STEP BY STEP IN HINDI/URDU
here's a step-by-step guide on how to install XAMPP, which is a popular software package that includes Apache, MySQL, PHP, and Perl, making it a convenient solution for setting up a local web server environment:
Download XAMPP: Visit the official XAMPP website (https://www.apachefriends.org/index.html) and download the latest version of XAMPP compatible with your operating system (Windows, macOS, or Linux).
Run the Installer: Once the download is complete, locate the downloaded file and run the installer. Follow the on-screen instructions to proceed with the installation.
Select Components: During the installation process, you'll be prompted to select the components you want to install. By default, Apache, MySQL, PHP, and phpMyAdmin are selected. You can keep these default selections or customize them according to your needs.
Choose Installation Directory: Choose the directory where you want to install XAMPP. The default directory is usually "C:\xampp" on Windows and "/Applications/XAMPP" on macOS.
Complete the Installation: After selecting the components and installation directory, proceed with the installation process. Once the installation is complete, you'll see a confirmation message.
Start XAMPP Control Panel: After installation, launch the XAMPP Control Panel. On Windows, you can find it in the Start menu under "XAMPP" or navigate to the installation directory and run "xampp-control.exe". On macOS, you can find it in the "Applications" folder.
Start Apache and MySQL: In the XAMPP Control Panel, start the Apache and MySQL services by clicking on the "Start" buttons next to them. If prompted by your operating system's firewall, allow access for Apache and MySQL.
Verify Installation: Open your web browser and navigate to http://localhost/. If XAMPP is installed correctly, you should see the XAMPP dashboard, indicating that Apache and MySQL are running.
Test PHP: To test PHP, create a new file named "test.php" in the "htdocs" directory within your XAMPP installation directory (e.g., "C:\xampp\htdocs" on Windows or "/Applications/XAMPP/htdocs" on macOS). Add the following PHP code to the file:
#php
#phpcourse
#phptutorials
#php