Why does/usr/local/apache2/bin/apxs exist clearly? When installing the module, the system always prompts you to specify a valid apxs path?

Source: Internet
Author: User
Tags install perl perl script

Many people think that the error message is that apxs does not exist. The real reason is that apxs cannot run.

Just tested. The first line of APACHE-generated apxs compiled and installed without Perl is :#! /Replace/with/path/to/perl/interpreter-w. To use apxs, install Perl because apxs uses the Perl script.

Install Perl

Yum install Perl

After the installation, you must modify the apxs file because its first line is still #! /Replace/with/path/to/perl/interpreter-W ,#! The/replace/with/path/to/perl/Interpreter file does not exist and cannot be run.

Replace the first line #! /Usr/bin/perl-W. Save it.

We recommend that you install Perl first and then compile and install Apache. This is more convenient and will not be too troublesome.

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.