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

The method of checking whether php is installed under linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Check the current version of php through the php-v command

Php-v

If you do not have php installed, you will generally be prompted that there is no php command.

(video tutorial recommendation: linux video tutorial)

Second, check whether there is php in the installed package

Taking redhat as an example, you can execute the following command:

Rpm-qa | grep php

As shown in the following figure, php is installed.

Use the list parameter of the pear command to view the installed php support

Pear is an abbreviation for PHP extension and application library ("PHP Extension and Application Repository"). After php is installed, some libraries of pear are automatically installed by default, so whether or not to install php can be determined with the pear command, execute the following command:

Pear list

As shown in the following figure, php is installed.

These are the details of how to check whether php is installed under linux. Please pay attention to other related articles for more information.

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

Servers

Wechat

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

12
Report