Php – Install Php In Linux and Create Development Environment – POFTUT

Php – Install Php In Linux and Create Development Environment

[rps-include post=6522]

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.

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.

echo '

Ubuntu, Debian, Mint

Fedora, CentOS, RedHat

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

and add following lines to the file.

LEARN MORE  How To Restart CentOS, Fedora, RedHat?

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

[rps-include post=6522]

1 Response

  1. 30/07/2017

    […] Installing PHP To Linux […]

Leave a Reply

Your email address will not be published. Required fields are marked *