How to install php in ubuntu

(*-*)浩
Release: 2023-02-25 19:48:01
Original
2542 people have browsed it

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
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!