Error in source code compilation and installation of apache startup
Question 1:
Httpd: apr_sockaddr_info_get () failed for crushlinux1.com
Httpd: cocould not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Httpd not running, trying to start
[Root @ crushlinux1 local] # cd/usr/local/httpd/conf/
[Root @ crushlinux1 conf] # vi httpd. conf
97 # ServerName www.example.com: 80
98 ServerName localhost: 80
Restart apache
[Root @ crushlinux1 conf] #/usr/local/httpd/bin/apachectl start
[Root @ crushlinux1 conf] # ps-aux | grep httpd
[Root @ crushlinux1 conf] # netstat-anptu | grep "httpd"
Question 2:
/Usr/local/apache/bin/httpd: error while loading shared libraries: libiconv. so.2: cannot open shared object file: No such file or directory
Many so modules are in the/usr/local/lib directory, so add/usr/local/lib to/etc/ld. so. conf.
[Root @ crushlinux1 conf] # vi/etc/ld. so. conf
/Usr/local/lib
[Root @ crushlinux1 conf] #/sbin/ldconfig-v
Now you have installed Apach on/usr/local/apache. This installation supports the loadable module
And standard MPM prefork. Then, run the following command to start the Apache server:
[Root @ crushlinux1 conf] #/usr/local/httpd/bin/apachectl start
This article is from the "Crushlinux Studio" blog!