Php Security? Problems

Source: Internet
Author: User
Php Security? Problems
  • Php has many problems during installation, but the installation usually prompts the error at the end.

    Then yum install-y xxx can be used. The installation was successful at home yesterday and all the problems were solved. However, this problem occurs during installation in the company today. after a long time, I checked the information online and finally understood it. The problem is as follows:

  • Sorry, I cannot run apxs. Possible reasons follow:

  • 1. Perl is not installed

  • 2. apxs was not found. Try to pass the path using -- with-apxs2 =/path/to/apxs

  • 3. Apache was not built using -- enable-so (the apxs usage page is displayed)

  • Configure: error: Sorry, I cannot run apxs. either you need to install Perl or you need to pass the absolute path of apxs by using -- with-apxs =/absolute/path/to/apxs

  • First, pass the error prompt,We know that "I cannot rum apxs". I always thought that there was a problem with the installation of apxs, but I have not found a reasonable explanation and solution for a long time.

    So I directly run the "/usr/local/apache/bin/apxs" script,The following error message is displayed:

    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 content:

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

    Finally, we found that the correct perl execution program location is not specified here!

    Change this line "#! /Usr/bin/perl-w ". run php again !. /Configure.

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