1. Download apache2 from source website.
2. Unzip
3. Make installation directory inside $HOME, i made "install" directory in my case.
4. Go inside the apache unzip directory
5. Run command ./configure --prefix=@HOME/path-to-install-directory.
6. make
7. make install
8. Then start apache by $HOME/path-to-install-directory/bin/apachectl start
In my case it throws the following error:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
2. Unzip
3. Make installation directory inside $HOME, i made "install" directory in my case.
4. Go inside the apache unzip directory
5. Run command ./configure --prefix=@HOME/path-to-install-directory.
6. make
7. make install
8. Then start apache by $HOME/path-to-install-directory/bin/apachectl start
In my case it throws the following error:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
So error given below is removed by changing the nameserver to localhost
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
In my case i added ServerName localhost:80 in $HOME/path-to-install- directory/conf/httpd.conf
and again start apache by the command in step 8 the upper error disappeared but the remaining was there.
so i get some ideas from this link http://askubuntu.com/questions/338218/why-am-i-getting-permission-denied-make-sock-could-not-bind-to-address-when
and made the following changes :
I just add Listen 1025 in $HOME/path-to-install-directory/conf/httpd.conf file instead of
Listen 80 and again start apache, this time it starts with no error.