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 :127.0.0.1 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
</Directory>
    • uncomment #Include etc/extra/httpd-vhosts.conf
  • add 127.0.0.1 cp.teensafe.dev 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"
	ServerName cp.teensafe.dev
	ServerAlias cp.teensafe.dev
	<Directory "/Users/USER_NAME/PATH_TO_CODE"
		Options Indexes FollowSymLinks
		AllowOverride All
		Order allow,deny
		Allow from all
	</Directory>
</VirtualHost>

 

Leave a Reply

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