What should I do if the command prompt cannot be found when executing the 'php -v' command?

王林
Release: 2023-03-04 11:14:01
Original
7826 people have browsed it

The solution to the problem that the command cannot be found when executing the "php -v" command: First execute the [find ./ -name php] command to find the installation path of php; then execute [export PATH=$PATH:/usr /local/bin/php] command to set environment variables.

What should I do if the command prompt cannot be found when executing the 'php -v' command?

Specific method:

(Recommended tutorial: php graphic tutorial)

Execute first Use the following command to find the installation path of php;

find ./ -name php
Copy after login

What should I do if the command prompt cannot be found when executing the php -v command?

(Learning video recommendation: php video tutorial)

Then execute the following command to set Environment variables are sufficient;

export PATH=$PATH:/www/wdlinux/wdphp/bin/php /usr/local/bin/php
Copy after login

The above is the detailed content of What should I do if the command prompt cannot be found when executing the 'php -v' command?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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