Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install php in linux deploy

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to install php in linux deploy". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Linux deploy installation of php: 1, install "add-apt-repository"; 2, add third-party sources; 3, through "apt-get install php7.4 php7.4-fpm php7.4-mysql..." Just install php.

The operating environment of this paper: Windows7 system, PHP7.1, Dell G3.

How does linux deploy install php?

[Linux Deploy] install PHP environment

After installing the Dotnet environment in the previous article, I think of many useful open source systems in PHP, so install the PHP environment in the Linux of the mobile phone. In fact, this step is basically the same as the ordinary Linux, which can be installed by referring to the articles of other bloggers.

Install this command add-apt-repository first

Apt-get install software-properties-common

Add a third-party source:

Add-apt-repository ppa:ondrej/phpapt-get update

Install php:

Apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstringservice php7.4-fpm startphp-v

After installing the PHP environment, install a Nginx or Apache WEB server and your phone can be used as a 24-hour server.

This is the end of "how linux deploy installs php". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report