Php – Install Php In Linux and Create Development Environment

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/php-install-php-linux-create-development-environment/
PINTEREST
PINTEREST
INSTAGRAM

PHP Tutorial Topics

  1. Introduction To PHP
  2. Installing PHP To Linux
  3. Installing PHP To Windows
  4. PHP Hello World Project with Eclipse
  5. PHP Syntax
  6. PHP Variables and Types
  7. PHP String Types
  8. PHP Numeric Type (Integer, Float, Double)
  9. PHP Boolean Type
  10. PHP Arrays
  11. PHP Operators
  12. PHP Ternary Operators
  13. PHP Constants
  14. PHP If..Elseif..Else Conditional Statements
  15. PHP Switch..Case Conditional Statements
  16. PHP For and Foreach Loop Statements
  17. PHP While and Do While Statements
  18. PHP Functions
  19. PHP Class and Objects
  20. PHP Date and Time Operations

As stated previous post Php is portable language. Which makes Php supports a lot of different platforms. In this post we will look how to install Php and IDE named Eclipse in Linux operating system like Fedora and Ubuntu. During post we will give both Fedora or yum and Ubuntu apt instructions. Let’s start the installation process.

Fedora, CentOS, RedHat Installation

In this part we assume we have all ready installed Fedora. We will install Php or Php interpreter and Eclipse.

Install Php

We will install Php with the command line package management tool named yum . We will issue following command in order to install Php interpreter and core libraries.

Install Php

Install Php

Install Eclipse

Next step is installing Eclipse we will install Eclipse Php .

Install Eclipse

Install Eclipse

Ubuntu, Debian, Mint Installation

Install Php

We will install Php on ubuntu with the following command.

Install Eclipse

We will install Eclipse on Ubuntu from following  url and unzip files.

LEARN MORE  Default Location of Linux History File ".bash_history"

http://eclipse.org/pdt/

Alternative IDE Nano or Text Editor

Another way to write Php code is using simple operating system provided text editor or third party editor. We will use nano as terminal based editor in this example.

Ubuntu, Debian, Mint

Fedora, CentOS, RedHat

Now create file named index.php with the following command.

and add following lines to the file.

Simply run Php interpreter by providing the code file named like below. We will run php against index.php

PHP Tutorial Topics

  1. Introduction To PHP
  2. Installing PHP To Linux
  3. Installing PHP To Windows
  4. PHP Hello World Project with Eclipse
  5. PHP Syntax
  6. PHP Variables and Types
  7. PHP String Types
  8. PHP Numeric Type (Integer, Float, Double)
  9. PHP Boolean Type
  10. PHP Arrays
  11. PHP Operators
  12. PHP Ternary Operators
  13. PHP Constants
  14. PHP If..Elseif..Else Conditional Statements
  15. PHP Switch..Case Conditional Statements
  16. PHP For and Foreach Loop Statements
  17. PHP While and Do While Statements
  18. PHP Functions
  19. PHP Class and Objects
  20. PHP Date and Time Operations

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/php-install-php-linux-create-development-environment/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

1 Response

  1. 30/07/2017

    […] Installing PHP To Linux […]

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)