How to Install Additional PHP Extensions In XAMPP?

8 minutes read

To install additional PHP extensions in XAMPP, follow these steps:

  1. Locate the "php.ini" file: Navigate to the XAMPP installation directory and find the "php" folder. Inside this folder, look for the "php.ini" file.
  2. Open the "php.ini" file: Use a text editor to open the "php.ini" file. Make sure to run the text editor as an administrator.
  3. Find the extension you want to install: In the "php.ini" file, search for the section labeled "Dynamic Extensions." This section contains a list of extensions available for installation.
  4. Uncomment the extension: To install an extension, remove the semicolon (;) at the beginning of the line corresponding to the extension. This action will uncomment the extension and enable it for use.
  5. Save and close the file: After uncommenting the desired extension, save the changes made to the "php.ini" file, and close the text editor.
  6. Restart Apache server: Open the XAMPP Control Panel and stop/start the Apache server by clicking the "Stop" and then "Start" buttons. Restarting the server is necessary for the changes to take effect.
  7. Verify extension installation: To ensure the extension is installed correctly, create a new PHP file with the following code: Save the file in the XAMPP "htdocs" folder and access it using a web browser. Look for the extension in the PHP information page displayed. If the extension is listed, it means it has been successfully installed.

Keep in mind that installing certain PHP extensions may require additional steps and dependencies. Always refer to the extension's documentation for specific instructions.

Best Cloud Hosting Providers in 2024


Rating is 5 out of 5


  • Ultra-fast Intel Core
  • High Performance and Cheap Cloud Dedicated Servers
  • 1 click install Wordpress
  • Low Price and High Quality
Digital Ocean

Rating is 5 out of 5

Digital Ocean

  • Active Digital Community
  • Simple Control Panel
  • Starting from 5$ per month

Rating is 5 out of 5



Rating is 5 out of 5


What is the XAMPP PHP error log location?

The XAMPP PHP error log is normally located in the following directory:

{XAMPP Installation Directory}/php/logs/php_error_log

In most cases, the XAMPP installation directory will be "C:\xampp" on Windows or "/Applications/XAMPP" on macOS.

How to check the XAMPP version?

To check the XAMPP version, you can follow these steps:

  1. Open the XAMPP Control Panel.
  2. Click on the "Apache" or "MySQL" button to start either Apache or MySQL, respectively.
  3. After starting Apache or MySQL, you should see the version number displayed in the logs section of the control panel.
  4. Alternatively, you can open your web browser and navigate to http://localhost/xampp/ or http://localhost/phpinfo.php.
  5. On the XAMPP homepage, you will find the version information displayed at the top-left corner of the page.

Note: The exact location of the version information may vary slightly depending on the XAMPP version you are using.

How to increase PHP memory limit in XAMPP?

To increase the PHP memory limit in XAMPP, follow these steps:

  1. Locate the "php.ini" file. You can find it in the "php" subfolder within your XAMPP installation directory. For example, the path might be "C:\xampp\php\php.ini" or "/opt/lampp/etc/php.ini" for Windows and Linux respectively.
  2. Open the "php.ini" file in a text editor.
  3. Look for the line that starts with "memory_limit". By default, it will be set to "128M" (128 megabytes).
  4. Change the value after the equals sign to your desired memory limit. For example, set it to "256M" for 256 megabytes of memory.
  5. Save the changes to the "php.ini" file and close it.
  6. Restart the Apache server in XAMPP. You can do this by opening the XAMPP control panel and clicking on the "Stop" button next to "Apache". Then click on the "Start" button to restart it.

After restarting Apache, the PHP memory limit will be increased to the value you set in the "php.ini" file.

How to start XAMPP Control Panel?

To start the XAMPP Control Panel, follow these steps:

  1. First, ensure that XAMPP is properly installed on your computer. If not, you can download and install it from the Apache Friends website (
  2. Once installed, go to the installation directory of XAMPP on your computer. By default, it is usually located in "C:\xampp" on Windows or "/Applications/XAMPP/" on macOS.
  3. Look for a file named "xampp-control.exe" on Windows or "manager-osx" on macOS. Double-click on that file to launch the XAMPP Control Panel.
  4. If you are using Windows, a User Account Control (UAC) prompt may appear. Click on "Yes" to allow the program to make changes to your computer.
  5. The XAMPP Control Panel will open with a list of modules on the left side, such as Apache, MySQL, FileZilla, etc. Each module may have a "Start" button next to it.
  6. To start a module, click on the "Start" button next to that module. Once started, the text next to the module will change to "Running".
  7. You can also stop or restart a module by clicking on the respective buttons next to it.
  8. Additionally, you can check the "Svc" checkbox next to a module to install it as a Windows service. This will ensure the module starts automatically when your computer starts.
  9. Finally, you can access the web interfaces of the modules (such as phpMyAdmin for MySQL) by clicking on the respective "Admin" button next to a module.

That's it! You have now successfully started the XAMPP Control Panel and can manage the different modules for your local web development environment.

How to set up XAMPP on a network?

To set up XAMPP on a network, follow these steps:

  1. Download XAMPP: Go to the Apache Friends website ( and download the latest version of XAMPP for your operating system.
  2. Install XAMPP: Run the downloaded setup file and follow the installation wizard to install XAMPP on your computer. Choose a directory location for installation and select the components you want to install (typically Apache, MySQL, PHP, and phpMyAdmin).
  3. Configure XAMPP: After installation, open the XAMPP Control Panel. Click on the "Config" button next to Apache and select "httpd.conf" to edit the Apache configuration file. a. Find the line starting with "Listen" and replace the default IP address "" with the local IP address of your computer (e.g., "") or "" to listen on all available IP addresses. b. Save the changes and close the configuration file.
  4. Test Apache: Start Apache by clicking the "Start" button next to it in the XAMPP Control Panel. Open a web browser on the same computer and enter "localhost" or the local IP address of the computer running XAMPP (e.g., "") in the address bar. You should see the default XAMPP welcome page if Apache is running correctly.
  5. Allow access from network devices: If you want to access XAMPP from other devices on the network, you need to allow access through the firewall. a. Open the Windows Firewall settings. b. Click on "Allow an app or feature through Windows Defender Firewall." c. Scroll down to find "httpd.exe" and "mysql.exe" in the list of apps and make sure both are checked for "Private" and/or "Public" network types. d. Click "OK" to save the changes.
  6. Access XAMPP from other devices: On other devices on the same network, open a web browser and enter the IP address of the computer running XAMPP (e.g., "") in the address bar. You should now be able to access the XAMPP web server.

Note: It's important to secure your XAMPP installation before making it accessible on a network, as leaving it open can pose security risks. Ensure you set up passwords for MySQL and phpMyAdmin, and consider configuring access controls or using a virtual host for your applications.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

To create a simple PHP file and run it in XAMPP, follow these steps:Install XAMPP: Download and install XAMPP from the Apache Friends website ( Choose the appropriate version for your operating system. Start XAMPP: Lau...
To add Python to XAMPP, follow these steps:Download and install XAMPP from the official Apache Friends website.Download and install Python from the official Python website.Open the XAMPP installation folder (usually located in C:\xampp).Locate the "xampp-c...
Starting the XAMPP control panel is a simple process. After installing XAMPP on your computer, follow these steps:Open the XAMPP installation folder on your computer. The default installation location is usually "C:\xampp" on Windows or "/Applicati...