Category Archives: PHP

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


PHP installation

if you are working on a server and you know how to do it then this post is not for you. if you are working on a local machine and you are going to install a local server and run your web based program (PHP or Perl) with mysql database, then you are in a right place. we will talk about PHP installation on your local machine.  Reade more