沙盒:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
无编辑摘要
第7行: 第7行:
PHP is available in Ubuntu Linux. Unlike python and perl, which are installed in the base system, PHP must be added.  
PHP is available in Ubuntu Linux. Unlike python and perl, which are installed in the base system, PHP must be added.  


# To install PHP and the Apache PHP module you can enter the following command at a terminal prompt: <br/><code style="background-color:lightgray">sudo apt install php libapache2-mod-php
To install PHP and the Apache PHP module you can enter the following command at a terminal prompt:  
</code>
 
<pre>
sudo apt install php libapache2-mod-php
</pre>

2016年6月12日 (日) 09:33的版本

PHP is a general-purpose scripting language suited for Web development. PHP scripts can be embedded into HTML. This section explains how to install and configure PHP in an Ubuntu System with Apache2 and MySQL.

This section assumes you have installed and configured Apache2 Web Server and MySQL Database Server. You can refer to the Apache2 and MySQL sections in this document to install and configure Apache2 and MySQL respectively.

Installation

PHP is available in Ubuntu Linux. Unlike python and perl, which are installed in the base system, PHP must be added.

To install PHP and the Apache PHP module you can enter the following command at a terminal prompt:

sudo apt install php libapache2-mod-php