Solution for executable programs such as php5 and phpize cannot be found in Ubuntu

Source: Internet
Author: User
Environment: LinuxUbuntu2.6.27-7-server + Apache/2.2.9 (Ubuntu) + PHP/5.2.6-2ubuntu4. 6withsuhosin-pattern & gt; has been using source code compilation to install PHP, today in Ubuntu run directly use the apt-getinstallphp5 command to install php5, after installation has been unable to find php5 execution program, use the find command can not be found

Environment: Linux Ubuntu 2.6.27-7-server + Apache/2.2.9 (Ubuntu) + PHP/5.2.6-2ubuntu4. 6 with Suhosin-Patch

1> I have been using the source code to compile and install PHP. Today, I am using the apt-get install php5 command to install php5 directly on Ubuntu. After installation, I cannot find the php5 execution program, the find command cannot be found.
Later I found that I needed to install another program: apt-get install php5-cli

After installation, You can see php5 in/usr/bin!

2> when developing PHP extensions using C, if you use the dynamic link library to compile the extension module, you need to use phpize. This tool is not installed by default when you use apt-get install php5, install phpize: apt-get install php5-dev

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.