4233 views|0 replies

1w

Posts

25

Resources
The OP
 

New uses for old phones (4) - Install PHP in Termux [Copy link]

Termux is like a text-based Linux, where you can install various software. You can install software just like Debian/Ubuntu, using the apt command, and the usage is the same, such as:

Probably to distinguish it, Termux also provides another command for installing software pkg:

You can use pkg list-all to view the current software packages in the system. Because there are many software packages, we can also use wildcards to filter, such as:

After finding the required software, you can use " phg install software name " to install it. For example, for subsequent functions, we need to install php in Termux. Currently, php has two versions, v7/v8. We need to install php7 because the Kedao Cloud used does not support php8 well, so only php7 can be used. The installation method is:

pkg install php7

For simplicity, it is enough to install only PHP7 here, using the server function that comes with PHP. If you need to install other programs, such as MySQL, Apache, NodeJS, etc., the method is similar.

Some netizens may not be familiar with Linux commands and don't want to spend too much time studying them. In this case, you can install mc (midnight commander), which is a file management software similar to norton commander/total commander. It can manage files through a double panel in a text interface, and realize common functions such as file copying, moving, deleting, compressing, decompressing, viewing, editing, and modifying properties. It can be said that after using mc, you can use most of the common Linux commands even without learning.

pkg install mc

The software operation interface is as follows:

This post is from DIY/Open Source Hardware
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
The Surrender of Bandits at Birdcage Mountain

Hu Ge's new work http://www.6rooms.com/nlsdwatch.php?v=2755 is really funny. Hu Ge almost went bankrupt to make this fil ...

Homemade STEVAL-IPM05F 3Sh board: FOC motor control 400V/8A non-sensing/sensing Hall/sensing encoder and other reference programs...

This post was last edited by music_586 on 2019-4-4 19:06 This content was originally created by EEWORLD forum user musi ...

Wuhan plague, the possibility of third, fourth, fifth and sixth generation infection cases

I heard that it has already appeared in the third and fourth generations. Does this mean that it has been transmitted se ...

CAN IAP Example

This content is originally created by EEWORLD forum user Xueshan Feihu11 . If you want to reprint or use it for comm ...

GPIO pin multiplexing in C6455

In addition, when using GPIO, you also need to consider the pin reuse of the corresponding chip. Taking 6455 as an examp ...

31 "Millions of Miles" Raspberry Pi Car——Ubuntu MATE System Installation

Next, I was going to start learning ROS, but it was particularly difficult to install it on the Raspberry Pi operating ...

[Sipeed LicheeRV 86 Panel Review] Developing RISCV Bare Metal Programming Using the Emerging Programming Language Rust

This post was last edited by mars4zhu on 2022-4-20 16:29 Developing RISCV bare metal programming using the emerging pro ...

【Tuya BK7231N】Unboxing Experience

Tuya IoT provides a series of simple and fast development platforms, providing a simple and easy development method for ...

CUK circuit combined with SEPIC circuit

Dear seniors: It feels like domestic power supply manufacturers are springing up like mushrooms after rain, but most of ...

There are really more and more digital people, and it is hard to tell the real from the fake

Some of Meituan’s live broadcasts now are all digital people, and they will also answer your questions. If you don’t l ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list