linux php环境安装_PHP –在Linux中安装PHP并创建开发环境

作者:神秘网友 发布时间:2020-10-15 19:27:20

linux php环境安装_PHP –在Linux中安装PHP并创建开发环境

linux php环境安装_PHP –在Linux中安装PHP并创建开发环境 linux php环境安装_PHP –在Linux中安装PHP并创建开发环境

linux php环境安装

[rps-include post=6522]

[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.

如前所述,Php是可移植语言。 这使得Php支持许多不同的平台。 在本文中,我们将研究如何在Linux操作系统(如Fedora和Ubuntu)中安装名为Eclipse的Php和IDE。 在发布期间,我们将同时提供Fedora或yum和Ubuntu apt说明。 让我们开始安装过程。

Fedora,CentOS,RedHat安装 (Fedora, CentOS, RedHat Installation)

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

在这一部分中,我们假设我们已经准备好安装Fedora。 我们将安装Php或Php解释器和Eclipse。

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.

我们将使用名为yum的命令行软件包管理工具安装Php。 我们将发出以下命令以安装Php解释器和核心库。

$ sudo yum install php
linux php环境安装_PHP –在Linux中安装PHP并创建开发环境
Install Php

Next step is installing Eclipse we will install Eclipse Php .

下一步是安装Eclipse,我们将安装Eclipse Php。

$ sudo yum install eclipse-pdt.noarch -y
linux php环境安装_PHP –在Linux中安装PHP并创建开发环境
Install Eclipse

Ubuntu,Debian,Mint安装 (Ubuntu, Debian, Mint Installation)

We will install Php on ubuntu with the following command.


$ apt install php

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


替代IDE Nano或文本编辑器 (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.

编写Php代码的另一种方法是使用简单的操作系统提供的文本编辑器或第三方编辑器。 在此示例中,我们将使用nano作为基于终端的编辑器。

$ apt install nano
$ yum install nano

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


$ nano index.php

and add following lines to the file.



echo "Hello World";


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

只需提供如下所示的代码文件即可运行Php解释器。 我们将针对index.php运行php

$ php index.php

[rps-include post=6522]

[rps-include post = 6522]

LEARN MORE  Best Linux Hex Editors 了解更多最佳Linux Hex编辑器 linux php环境安装_PHP –在Linux中安装PHP并创建开发环境


linux php环境安装

linux php环境安装_PHP –在Linux中安装PHP并创建开发环境相关教程

  1. 字符串变量类型_Php –字符串变量类型

    字符串变量类型_Php –字符串变量类型 字符串变量类型 [rps-include post=6522] [rps-include post = 6522] Php have variable type string to store text,char or string values. String type generally used to store values like name, surname, explanati

  2. fedora安装kde_如何在Fedora,CentOS,RedHat上安装KDE桌面环境

    fedora安装kde_如何在Fedora,CentOS,RedHat上安装KDE桌面环境? fedora安装kde Linux have long history which starts with Unix operating system. Linux used a lot of aspect of the Unix operating system. One of those aspect was Graphical User int

  3. Linux操作系统的常用命令.二

    Linux操作系统的常用命令.二 在图形界面要在终端里运行,打开终端有两种方法如下图所示。 ?xml:namespace prefix = o ns = urn:schemas-microsoft-com:office:office / 1. 点击应用程序下的系统工具里有个终端。 2. 在桌面上右击鼠标点击打开终端。 如果想在

  4. linux ps 命令_Linux ps命令教程

    linux ps 命令_Linux ps命令教程 linux ps 命令 Processes are one of the main parts of the operations systems. All user side even kernel side operations are executed with the process. The process generally created, run, and killed. This life c

  5. php班级管理系统_php –班级

    php班级管理系统_php –班级 php班级管理系统 [rps-include post=6522] [rps-include post = 6522] Php programming language supports most of the Object Oriented Programming concepts. Object Oriented Programming provides a lot of useful features t

  6. php date 函数_PHP date()和time()函数教程

    php date 函数_PHP date()和time()函数教程 php date 函数 Php provides a very enhanced date and time functions. There are a lot of different use cases for date and time functions. We will try to look at most of them in this tutorial. PHP提

  7. dd命令备份linux系统_Linux dd命令备份示例

    dd命令备份linux系统_Linux dd命令备份示例 dd命令备份linux系统 Backup is important part of the Linux system administration. Without backups a system is not safe and also the system administrator position too ?? . There are different ways to t

  8. 三元运算符 php_php –三元运算符

    三元运算符 php_php –三元运算符 三元运算符 php We have previously examined the if-elseif-else conditional statements. We know that these statements provide branching ability according to the conditions. While using these statements in singl