PHP for Beginners - How to install PHP?


            So far in this series of PHP article we have learnt about when and where should we use PHP. 

Now let’s have a look at how to run the PHP scripting language.

How to install PHP?

          Manual installation of a Web server and PHP requires in-depth configuration knowledge but the XAMPP suite of Web development tools, created by Apache, makes it easy to run PHP.
Installing XAMPP on Windows only requires running an installer package without the need to upload everything to an online Web server. This PHP Tutorial gives you an idea of XAMPP and how it is used for executing the PHP programs.

What is XAMPP?
       It is a free and open source cross-platform web server solution stack package developed by Apache that consists of the Apache HTTP Server, MySQL database, and interpreters for scripts written in the PHP and Perl programming languages. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB & MySQL (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing and deployment purposes.
Step 1: Download the exe file using above link

Step 2: Right click on the .exe file. then click Run as administrator.
Now XAMPP setup wizard will open. Now click on the ‘Next’ Button to proceed.




Next, you need to check the components which you want to install and can uncheck or leave as it is which you don’t want to install

Now you need to choose the folder where you want to install the XAMPP. You can choose the default location or you can choose any location of your choice and choose the ‘Next’ button to move ahead.

Now will see a window showing you information about Bitnami. Simply click on the ‘Next’ button to move further.

Now you’ll see another window with a message “Setup is now ready to begin installing XAMPP on your computer” like shown below. You just have to hit the ‘Next’ button to proceed.

Now just be patient and wait for the installation to complete.
Installation Complete
           Once the installation is completed, you will be asked whether you would like to start the control panel now or not, displaying the message “Do you want to start the control panel now?” Check the box and click on the ‘Finish’ button and see if the XAMPP is working fine.

           As soon as you will click on the Finish button in the final step of install XAMPP process, you will be asked to select the preferred language between English and German. You choose English Language. After that click on the ‘Save’ button to confirm your selected language.

Thats all..

         If the entire process of XAMPP installation went correctly, then the control panel would open smoothly. Now click on the ‘Start’ button corresponding to Apache and MySQL.

Next we will see about Wamp Server..

PHP using WAMP Server
If you’re working on a project for the production environment and have a PC running the Windows OS then you should opt for WAMP server because it was built with security in mind. You can use this method to run PHP scripts you may have obtained from somewhere and need to run with little or no knowledge of PHP. You can execute your scripts through a web server where the output is a web browser.

Let’s have a look at the steps involved in using WAMP Server:
1.    Install the Server Software
2.    Set up the Server
3.    Save PHP Scripts
4.    Run PHP Scripts
5.    TroubleshootSave PHP Scripts
6.    Run PHP Scripts
7.    Troubleshoot
Now let’s move ahead with our PHP Tutorial and find out the suitable IDE for PHP.
PHP IDE

             In order to remain competitive and productive, writing good code in minimum time is an essential skill that every software developer must possess. As the number and style of writing code increases and new programming languages emerge frequently, it is important that the software developers must opt for the right IDE to achieve the objectives.
An Integrated Development Environment or IDE is a self-contained package that allow you to write, compile, execute and debug code in the same place.
So let’s have a look at some of the best IDE’s for PHP:
  • PHPStorm
  • Netbeans
  • Aptana Studio
  • Eclipse
  • Visual Studio (with Xamarin)
  • ZendStudio

        So far in this series of PHP Tutorial we have learnt about how to install PHP. next tutorial we will see about the how to to use those environments with examples.

Happy Learning !!!...
****************************************************************************************************************************************************
Foll


Comments

Popular posts from this blog

Muthukumaran Singaravelu

Foundations of Programming -Introduction to data and data types