- No there is no need to installing PHP after Xampp. XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and Perl (P).
- Follow the below steps to run your PHP code or project using the XAMPP server. Step 1: Install XAMPP The first step is to install XAMPP onto your computer. It is very easy to install XAMPP. Just visit the official website to download XAMPP.
- For installing PHP, we will insist you to install AMP (Apache, MySQL, PHP) software stacks. It is available for all operating systems. And then we will see how to Install PHP on Windows and how to install PHP using XAMPP. There are lots of AMP options available in the market which are given below.
Purpose. We are in the process of converting over to a Linux-Apache stack after hosting our PHP site on a Windows-IIS stack. Locally, we will need to have an IIS and Apache stack running on our Windows machine for the time being until the conversion process is over. The local machine will continue to be Windows based.
Prerequisite. For full transparency, here are the “important” specs to my current workstation.
- Windows 10
- SQL (development database is not local but in Azure)
- Maintain both IIS and Apache web servers.
- Github Version Control
- PHP 7.1
- Composer Dependency Manager
- Front-end Stack Includes: Grunt & Webpack, NPM
Download the latest PHP version that is compatible with your Windows (x86 or x64) Extract files to a folder named php. Go to your XAMPP installation directory and rename the old php folder (something like php5) Copy the recently extracted php folder to your XAMPP installation folder. Open up the XAMPP Control Panel and configure Apache.
Step 1
Because I’m trying to match our server as best as possible, I’ve opted to install XAMPP 7.1.22 which comes with PHP 7.1. https://www.apachefriends.org/xampp-files/7.0.32/xampp-win32-7.0.32-0-VC14-installer.exe
I’ve went with the default option and unchecked MySQL, Filezilla FTP Server, Mercury Mail Server, Tomcat, and Perl.
Step 2
Now I need it’s time to map the project url to the local IP address. This is done through the host file located in C:WindowsSystem32driversetc. Open it up in Notepad with “Run as Administrator.” An example entry is:
127.0.0.1 mywebsite.local
127.0.0.1 www.mywebsite.local
Step 3
Now it’s time to clone down my repo from Github. This would be done inside C:xampphtdocs Eclipse version java.
Step 4
Next is to add entries in the C:xamppapacheconfextra httpd-vhosts.conf file. Add an example entry like:
<VirtualHost mywebsite.local>
DocumentRoot 'C:xampphtdocsmyproj'
</VirtualHost>
<VirtualHost www.mywebsite.local>
DocumentRoot 'C:xampphtdocsmyproj'
</VirtualHost>
Step 5
Install SQL Server drivers. They can be downloaded at. https://www.microsoft.com/en-us/download/details.aspx?id=57163 Once you download the drivers, extract them and install the one that matches the PHP version that you are using. I am installing PHP 7.1 so I’ll be using the SQLSRV drivers 7.1. Since this is a simple local Windows machine that doesn’t have multiple PHP threads running, I typically install the NTS (non-thread safe) drivers. The drivers goes into: C:xamppphpext
Step 6
Add driver references to PHP and other configurations through PHP.ini which can be access through the XAMPP control panel. A basic configuration I do is below, just make sure the SQLSRV dll(s) matches the filenames you placed in the ext folder in step 5:
extension=php_sqlsrv_71_ts_x86.dll
date.timezone = America/Chicago ;override accordingly
short_open_tag: On ;override accordingly
Step 7
Download the SQL Server ODBC drivers from here https://www.microsoft.com/en-in/download/details.aspx?id=36434 and install them.
Step 8
Testing time. I would create a simple test.php that has
echo phpinfo();
Xampp Install Php
and see if everything is installed correctly. You should see that SQLSRV is mentioned on the page. Start the webserver in XAMPP. At this time, if you have IIS on, you need to turn it off for all sites. This will prevent the two webservers from fighting over port 80.
http://localhost/test.php
Step 9 (Optional SSL Setup)
If you see your website by going to the url you have set (e.g. mywebsite.local), then you’re all set. If you want to setup SSL, in httpd-ssl.conf which you can access from the Control Panel, look for this line:
<VirtualHost _default_:443>
and replace with
<VirtualHost _default_ *:443>
and make sure SSLEngine is on. And make sure the DocumentRoot points to your project’s directory. As for SSLCertificateFile and SSLCertificateKeyFile you may have to specify the absolute path:
SSLCertificateFile 'C:/xampp/apache/conf/ssl.crt/server.crt'
SSLCertificateKeyFile 'C:/xampp/apache/conf/ssl.key/server.key'
XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. It's that easy.
XAMPP for Windows7.3.28, 7.4.18 & 8.0.5
Version Checksum Size 7.3.28 / PHP 7.3.28 What's Included? - md5
- sha1
155 Mb 7.4.18 / PHP 7.4.18 What's Included? - md5
- sha1
156 Mb 8.0.5 / PHP 8.0.5 What's Included? - md5
- sha1
157 Mb Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.3.28, phpMyAdmin 5.1.0, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.65 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.0.1 PortableIncludes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.4.18, phpMyAdmin 5.1.0, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.65 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.0.1 PortableIncludes: Apache 2.4.47, MariaDB 10.4.18, PHP 8.0.5, phpMyAdmin 5.1.0, OpenSSL 1.1.1, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.65 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.0.1 PortableWindows 2008, 2012, Vista, 7, 8 (Important: XP or 2003 not supported)Windows XP or 2003 are not supported. You can download a compatible version of XAMPP for these platforms here.XAMPP for Linux7.3.28, 7.4.18 & 8.0.5
Version Checksum Size 7.3.28 / PHP 7.3.28 What's Included? - md5
- sha1
151 Mb 7.4.18 / PHP 7.4.18 What's Included? - md5
- sha1
154 Mb 8.0.5 / PHP 8.0.5 What's Included? - md5
- sha1
152 Mb Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.3.28 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.4.18 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 8.0.5 & PEAR + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Most all distributions of Linux are supported, including Debian, RedHat, CentOS, Ubuntu, Fedora, Gentoo, Arch, SUSE.XAMPP for OS X7.3.28, 7.4.18, 8.0.5, 7.3.28, 7.4.18 & 8.0.5
Version Checksum Size 7.3.28 / PHP 7.3.28 What's Included? - md5
- sha1
162 Mb 7.4.18 / PHP 7.4.18 What's Included? - md5
- sha1
164 Mb 8.0.5 / PHP 8.0.5 What's Included? - md5
- sha1
162 Mb 7.3.28 / PHP 7.3.28 What's Included? - md5
- sha1
359 Mb 7.4.18 / PHP 7.4.18 What's Included? - md5
- sha1
359 Mb 8.0.5 / PHP 8.0.5 What's Included? - md5
- sha1
358 Mb Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.3.28 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.4.18 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 8.0.5 & PEAR + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.3.28 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 7.4.18 + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4Includes: Apache 2.4.47, MariaDB 10.4.18, PHP 8.0.5 & PEAR + SQLite 2.8.17/3.35.5 + multibyte (mbstring) support, Perl 5.32.1, ProFTPD 1.3.6, phpMyAdmin 5.1.0, OpenSSL 1.1.1k, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.11, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4
Add-ons
Applications
Xampp 64 Bit Windows 10
Install your favorite apps on top of XAMPP. Bitnami provides a free all-in-one tool to install Drupal, Joomla!, WordPress and many other popular open source apps on top of XAMPP.
Xampp Install Php 7.4
OS X native modules have been deprecated. Please use XAMPP-VM for OS X and the Linux version of the add-ons. Check our FAQs for more info.