Add XAMPP In mac

    • Download xampp with php 7 or any other version you like from XAMPP
    • Install Xampp and make sure localhost/ works
    • install sequel pro or any sql IDE to check the mysql (with host : and any given name)
    • Use PhpStorm or Netbeans or from terminal and clone the project
    • modify the following modification in /Applications/XAMPP/xamppfiles/etc/extra/httpd.conf

find “Require all denied” and comment it is as :

#Require all denied

add “Allow from all” after it; then it should be like :

<Directory />
	AllowOverride none
	#Require all denied
	Allow from All
    • uncomment #Include etc/extra/httpd-vhosts.conf
  • add to /etc/hosts
    •  add the following in /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf depends on your project location
<VirtualHost *:80>
	DocumentRoot "/Users/USER_NAME/PATH_TO_CODE"
	<Directory "/Users/USER_NAME/PATH_TO_CODE"
		Options Indexes FollowSymLinks
		AllowOverride All
		Order allow,deny
		Allow from all


Leave a Reply

Your email address will not be published. Required fields are marked *