Problems with PHP installation

Source: Internet
Author: User
Tags install perl

  1. PHP is installed with a lot of problems, but generally installed to the end there will be a hint where the error.

    Then yum install-y xxx on it. Yesterday at home installation is still smooth, the problems have been solved. But today in the company installed in this problem, have been engaged for a long time, and then surf the Internet to find information, finally understand. The problem is as follows:

  2. Sorry, I cannot run APXS. Possible reasons follow:

  3. 1. Perl is not installed

  4. 2. APXS is not found. Try to pass the path using--WITH-APXS2=/PATH/TO/APXS

  5. 3. Apache was isn't built using--enable-so (the APXS usage page is displayed)

  6. Configure:error:  sorry,i cannot run APXS.   Either you need to install Perl or need to pass the absolute path of APXS by using--with-apxs=/absolute/path/to/apxs< /span>

  7. first of all, we learned "I cannot rum apxs" by error. I always thought it was a problem with the APXS installation, but it hasn't been properly explained and solved for a long time.

    so I run the "/usr/local/apache/bin/apxs" script directly , get the following error prompt:

    bash:./APXS:/replace/with/path/to/perl/interpreter:bad interpreter:no such file or directory

    Run "Vi/usr/local/apache/bin/apxs" to get the following:

    #!/replace/with/path/to/perl/interpreter-w

    finally found that there is no location to indicate the correct Perl execution program!

    change this line to "#!/usr/bin/perl-w". Run PHP again!. /configure can do it.

This article is from the "Game" blog, be sure to keep this source http://9883552.blog.51cto.com/9873552/1641031

Problems with PHP installation

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.