It is a very easy to install PHP in windows but also, It is necessary to know that "How to install PHP in Linux as well as MAC. Here, I would like to step by step information to install PHP in both.
Linux/Ubuntu Installation :-
Step 1 : Apache Installation
sudo apt-get update
sudo apt-get install apache2
Step 2: MySQL installation
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Then prompt for current root password and give the password.
Step 3: PHP installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
Step 4: Restart server
sudo service apache2 restart
MAC Installation :-
Go to MAMP website and download MAMP. When downloaded is finished then open it and drag & drop that image file into your Applications folder. Then follow the screens how to launch the MAMP
Click Here to download MAMP..
Linux/Ubuntu Installation :-
Step 1 : Apache Installation
sudo apt-get update
sudo apt-get install apache2
Step 2: MySQL installation
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
Then prompt for current root password and give the password.
Step 3: PHP installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
Step 4: Restart server
sudo service apache2 restart
MAC Installation :-
Go to MAMP website and download MAMP. When downloaded is finished then open it and drag & drop that image file into your Applications folder. Then follow the screens how to launch the MAMP
Click Here to download MAMP..
Screen 1 :-
Screen 2 :-
Screen 3 :-
0 comments:
Post a Comment