How do I install XAMPP for Mac OS X? To install XAMPP, follow these steps: Open the DMG-Image. Double-click the image to start the installation process. XAMPP is now installed below the /Applications/XAMPP directory. Does XAMPP include MySQL or MariaDB? Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. XAMPP is a free and open-source, cross-platform web server solution stack which is developed by Apache Friends. XAMPP supports most of the operating systems including Windows, MacOS and Ubuntu. It stands for Cross-Platform (X), Apache, MySQL, MariaDB, PHP and Perl which are also the main components of the stack package. XAMPP for Mac OS X is the simplest, most practical and most complete webserver solution for Mac OS X. The distribution includes an Apache 2 web server, integrated with the latest builds of MySQL, PHP (both 4 and 5) and Perl. It comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies.
XAMPP is a free and open-source, cross-platform web server solution stack which is developed by Apache Friends. XAMPP supports most of the operating systems including Windows, MacOS and Ubuntu. It stands for Cross-Platform(X), Apache, MySQL, MariaDB, PHP and Perl which are also the main components of the stack package. In this tutorial, we will install XAMPP on MacOS.
Prerequisites
MacOS
Login as an administrator on terminal
Installation
Installation includes following steps.
1) Download the latest version
In order to install XAMPP on MacOS, we must download the latest version of XAMPP by visiting its official website or by pasting the link https://www.apachefriends.org/xampp-files/7.2.0/xampp-osx-7.2.0-0-installer.dmginto the browser's search bar.
2) Mount the dmg file
The downloaded file exists in disk image format which needs to be mounted to the Volumes directory. For this purpose, following command can be used.
3) Open the Application file
An application file is created inside /Volumes/XAMPP/. This needs to be opened by using following command.
Click on Next button to navigate to the next step.
This step prompts us to select Components which we want to install. We select all the options given and click next
This step simply tells the location where XAMPP will be installed. Click on Next to continue the installation.
Xampp For Mac Os X
4) Unmount the file
We got XAMPP installed on our system, now we need to unmount the installer. Following command can be used for this purpose.
Extra Info
An executable file named XAMPP is located inside /Applications/XAMPP/xamppfiles/ which needs to be executed in order to execute xampp on command line. Various commands can be used with xampp.
The output of the command shows the usage and options with which the command can be used.
Hence, we have installed and get started with XAMPP on our MacOS.
XAMPP – most of the web developer will know what it is! This simple description is for the newbies.
XAMPP is completely free PHP development environment. It contains Apache distribution packed with mysql , PHP and Pearl which is available for most popular OS’s like Windows/Linux/Mac OSX, that makes you to configure and run Apache server in your local machine.
Before downloading the XAMPP, be sure about the PHP version you need. You can download the Latest Version of XAMPP here.
Steps to Install XAMPP in MAC
Download the appropriate DMG file and mount it to your mac by double click on it. Application installer opens and guides you through the installation steps.
Double click on XAMPP icon to start the installation process.
click on Next buttonto continue.
Select the XAMPP components which are all you want to install in your MAC
After clicking the Next button ,XAMPP will install to your Application Folder.
Open the bitnami link in a new window. There you can find free installer for wordpress, Joomla, Moodle, Magento, Drupal, etc… Which tends you to install these things over your XAMPP.
Uncheck the checkbox below the link and click Next button.
XAMPP Installation process will complete after clicking the Finish button.
Yeah thats it ! now your MAC is equipped with XAMPP.
Steps to Start Apache Server in local machine
Its time to start apache server in the local machine!
By simple click in the “Go to Application” button start the apache servers and take you to the local server’s index page in the browser.
Open Application Folder opens the XAMPP folder inside the Application folder.
After clicking on Go to Application button, it redirects you to the browser where you have to pick your language.
After choosing your language, it redirects you to the index page of your local host. You can find some inbuilt tools there.
phpMyadmin -> you can create or manipulate database easily with the help of this tool.
webalizer – > its a web analyser tool.
Manage Servers with XAMPP
You can start, stop, restart or configure your Server under Manage Server tab.
You can monitor the server event through Application Log panel and can easily identify for error or any malfunction happens with in it.
Configure Virtual Host in XAMPP
The virtual host is required whenever you are working in multiple projects and their directories are at different location. Virtual Host allows you to run multiple local sites using single apache server.
You can configure n number of virtual host but it must have unique different name
Steps to configure the Virtual Host in XAMPP
Select the Apache Web Server
Click the Configure button
In the configuration window click on the Open Conf File button
Click yes on the advanced user warning that appears.
Enable Virtual Host
You have to enable the virtual host in this configuration file.
Search for “# Virtual hosts” and uncomment the “Include etc/extra/httpd-vhosts.conf” line by removing ‘#’ before it.
# Virtual hosts Include etc/extra/httpd-vhosts.conf
Change User Group
Find these “User/Group” line and Change the user group name (daemon) to your MAC user name. This prevents the server from making 403 access forbidden error.
Before:
Xampp For Windows 64 Bit
<IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User daemon Group daemon </IfModule>
After
<IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User YourMacUserName Group daemon
</IfModule>
after making this changes save the configuration file and restart the apache servers.
Creating Virtual Host
Now you can see a new file inside “/Applications/XAMPP/xamppfiles/etc/extra” called “httpd-vhosts.conf”
Open and edit : /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf
Add the below lines at the end of the file
# My custom host <VirtualHost *:80> ServerName yourSiteName.local DocumentRoot “/Users/yourusername/path/to/your/site” <Directory “/Users/yourusername/path/to/your/site“> Options All Allow from all AllowOverride All Require all granted </Directory> ErrorLog “logs/mysite.local-error_log” </VirtualHost>
Replace the yourSiteName.local & document root path to the required one.
Creating Host Entry For the Virtual Host
Open the terminal and edit the host file using the command sudo nano /etc/hosts
To create multiple host replicate the code added in /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf file again but with different site name and add the host entry for that also. Restart the Apache server for the changes to take effect.
Download Free Xampp 32 Bit
Yeah it’s all done. Now you can hit the virtual host in the browser.If you have any doubts and clarification regarding this, drop it in the comment section.
Xampp For Macbook
If you like this post, Share it to your friends. Dont forget to Subscribe our Feeds, Follow us on Twitter, Facebook and Pinterest.