Friday 2 November 2012

How to enable HTTP Server for both IPv4 and IPv6 in Fedora core 16 ( Linux )

Errors and Troubleshooting:


1) vim /etc/httpd/conf/httpd.conf

Verify if you have below line

Listen *:80

this will server both ipv4 and ipv6 address.

2)
In fedora core 16 we have bug , if we start http server


root@localhost ~]# /etc/init.d/httpd start
Starting httpd (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [FAILED]


root@localhost ~]# apachectl start
/usr/sbin/apachectl: line 102:  2028 Segmentation fault      $HTTPD $OPTIONS -k $ARGV


To remove this error:

just comment below line vim /etc/httpd/conf.d/perl.conf

 #LoadModule perl_module modules/mod_perl.so

3)  after this when i restarted the server some error came , not exactly captured at that time  but similar to

"hostname nor servname provided, or not known"

for this

vim /etc/httpd/conf/httpd.conf

remove # ( or uncomment below line)

ServerName www.example.com:80

4) restart http service

systemctl start httpd.service

or apachectl start


From another browser try to access apache server, give below URL

http://[2001:db8:1:0:1e6f:65ff:fec5:833d]


You should be able to get fedora test page