Home  >  Article  >  Backend Development  >  How to install php in ubuntu

How to install php in ubuntu

(*-*)浩
(*-*)浩Original
2019-10-08 11:06:322681browse

PHP is a general-purpose open source scripting language. It is widely applicable to WEB development and can be used to build a free WEB application with Apache and MySQL in Linux system. Let’s take a look at how to install PHP software in ubuntu system.

How to install php in ubuntu

First install apache2 and MySQL (recommended learning: PHP video tutorial)

How to install php in ubuntu

Open the Ubuntu terminal window (ctrl alt t) and enter the following instructions to start installing PHP7

#sudo apt-get install php7

How to install php in ubuntu

Enter Y to continue the installation, and download and install after a period of time.

After the installation is complete, enter: sudo php -v to check whether PHP is installed successfully.

The following interface appears, indicating that the PHP installation is complete

How to install php in ubuntu

The above is the detailed content of How to install php in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn