Exec returns 127. how to solve this problem?

Source: Internet
Author: User
Exec returns the 127 exec ($ command, & amp; $ output, & amp; $ result); echo $ result; die (); result returns the 127 & nbsp; what is the concept of "& nbsp;" not found in the command? how can this problem be solved? ------ Solution -------------------- is an external program executed? Similar to other languages! ------ Solution -- exec returns 127
Exec ($ command, & $ output, & $ result );
Echo $ result; die ();

Result returns 127
Command not found
What is this concept and how to solve it?

------ Solution --------------------
Is it an external program? Similar to other languages!

------ Solution --------------------
What is the backdoor program?
------ Solution --------------------
The third parameter of the exec function is the command execution status. if 127 is returned, it indicates that the path for executing the command is incorrect or you do not have the permission.

The following is an explanation of the 127 error document.

"Remember to use the full path (IE '/usr/local/bin/foo' instead of 'Foo') when using passthru, otherwise you'll get an exit code of 127 (command not found ).
Remember, you'll also get this error if your file does not have executable permission ."

"If you have chrooted apache and php, you will also want to put/bin/sh into the chrooted environment. otherwise, the exec () or passthru () will not function properly, and will produce error code 127, file 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.