PHP code exec ("Kill $pid" $op, $returns) cannot kill the process under the Linux virtual machine

Source: Internet
Author: User
PHP code exec ("Kill $pid", $op, $returns) cannot kill a process under a Linux virtual machine
Title, I write PHP code under Linux exec ("Kill $pid", $op, $returns), through the PID kill process, after execution, the return is always "1", that is, the execution is unsuccessful, the process ID is still in after execution. The file that executed the kill call I have given the maximum permission. Online there is said to be php.ini configuration problem what, but found a day has not found any worthy of reference, ask the great God to give some advice AH!!!!!

------to solve the idea----------------------
No permissions.
Set Apache permissions to root and see.
  • Related Article

    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.