-bash:php:command not found command not found

Source: Internet
Author: User

Can't find the Linux command? (Command not found)

The problem is very simple, if you enter a command at the terminal and the system prompts you to say that the command did not find it, either because you did not install the appropriate package or because of a problem with the path setting. If it is because of the package problem, there is nothing else to say, install the corresponding package is good. In another case, the user's path needs to be set.

-bash:ls:command not found or-bash:ll:command not found
Cause: When setting environment variables, the edit profile is not correctly written, resulting in commands such as LS that are not recognized at the command line.

Solution:
Export Path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

Bash:php:command not found
Solve:
Export path= $PATH:/usr/local/php/bin
Then, Echo $PATH look, and see.
Usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/php/bin
At this time, you can directly in any directory of the system typing Php-i can be executed.

-bash:unzip:command not found

Two solutions to-bash:wget:command not found
Wget will not be installed by default when Linux is minimized in general.
There are two ways to install the following:
1, RPM Installation
RPM Download Source Address: http://mirrors.163.com/centos/6.2/os/x86_64/Packages/
Download wget RPM Package: http://mirrors.163.com/centos/6.2/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm
RPM IVH wget-1.12-1.4.el6.x86_64.rpm installation.
2. Yum Installation
Yum-y Install wget

80 port prompt is already occupied
HTTPd not running, trying to start
(98) Address already in use:AH00072:make_sock:could not bind to address [::]:80
(98) Address already in use:AH00072:make_sock:could don't bind to address 0.0.0.0:80
No listening sockets available, shutting down
Ah00015:unable to open logs

Solve:
# netstat-lnp|grep:80
TCP 0 0::: +:::* LISTEN 2184/httpd
Kill the Service
# killall-9 HTTPD
Restart
#/ETC/INIT.D/HTTPD Start

-bash:php:command not found command not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.