When installing Apache in source code, the following error occurs: cannot use an external APR with the bundled Apr-util and httpd: cocould not reliably determine the server's fully qualified domain name.

Source: Internet
Author: User
Tags fully qualified domain name

I. Solve the APR and APR-util errors:

1.1 install APR:

[[email protected] httpd-2.2.23]# cd srclib/apr[[email protected] apr]#  ./configure --prefix=/usr/local/apr   root@ganglia apr]# make && make install

1.2 install Apr-util:

[[email protected] apr]# cd ../apr-util/[[email protected] apr-util]#  ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr[[email protected] apr-util]# make && make install

1.3 install Apache and add parameters (-- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR-util)

[[email protected] httpd-2.2.23]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most  --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util[[email protected] httpd-2.2.23]# make && make install

Ii. Solve the Problem of httpd: cocould not reliably determine the server's fully qualified domain name and using:
2.1. Go to the Apache installation directory;

Windows: D: \ Program Files \ Apache Software Foundation \ apache2.2 \ conf

Linux:/usr/local/Apache/Conf

2.2 modify httpd. conf

Remove the # servername localhost: 80 comment in it.

2.3 restart HTTP again.

When installing Apache in source code, the following error occurs: cannot use an external APR with the bundled Apr-util and httpd: cocould not reliably determine the server's fully qualified domain name.

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.