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.