php-cgi not found

Source: Internet
Author: User
Tags php source code
Error description

Use Phpstorm to run PHP script when the browser prompts "502 Bad Gateway", Phpstorm prompt "php-cgi not found".

System is: MacOS X EI Captian

Solution Solutions

  1. Reinstall PHP without using the default Mac PHP.$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
  2. Set the newly installed PHP interpreter in Phpstorm, and change the interpreter path to "" in phpstorm->preferences->php /usr/local/php5/bin

At last

Although this scheme will have two sets of PHP in the system, the better way is to download a system-like PHP source code, and then recompile, but considering the time factor, it is not to toss.

The above describes the php-cgi not found, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.