PHP Environment Setup

If you want to start your web development in php you have to first setup your PHP environment. Follow the bellow mentioned steps to install your php development environment in Windows or your Ubuntu Linux machines using WAMP of XAMPP packages

To start setting up the php environment you need the following thing first:

  • Download WAMP/XAMPP if you are using windows machine
  • Download XAMPP for Linux.
  • You can even download PHP, Apache and MySQL separately

 

Installing WAMP in Windows:  

  • Double click the downloaded file and follow the instructions.
  • After successful installation find “www” folder (usually in C:\wamp\www).

 

Testing:

  • Open your browser and type “localhost” in the address bar and hit enter

How to install wamp in windows

If you find the above page loaded. It means you have successfully installed wamp.

 

Install XAMPP in Windows:

  • Double click the downloaded file and follow the instructions.
  • After successful installation find “xampp” folder (usually in C:\Program Files\xampp).

 

Testing:

  • Open your browser and type “localhost” in the address bar and hit enter

How to install xampp in windows

If you find the above page loaded. It means you have successfully installed xampp.

 

Install XAMPP in Linux(Ubuntu):

  • locate the downloaded file, like – xampp-linux-x64-5.5.24-0-installer.run
  • open terminal (ctrl+alt+t).
  • Make the .run file executable by typing -  sudo chmod +x xampp-linux-x64-5.5.24-0-installer.run
  • Enter the super admin password.
  • After that type sudo ./xampp-linux-x64-5.5.24-0-installer.run
  • Follow the instruction is in the graphical installation interface.
  • After successful installation find lampp (usually /opt/lampp)

 

Testing:

  • Open your browser and type “localhost” in the address bar and hit enter

How to install xampp in ubuntu linux

If you find the above page loaded. It means you have successfully installed xampp.

Check Page Rank