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.

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.

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/

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)


4) restart http service

systemctl start httpd.service

or apachectl start

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


You should be able to get fedora test page