Here are the steps...
- svcadm enable apache (or apache2)
- mv /etc/apache[2]/httpd.conf-example /etc/apache[2]/httpd.conf
- /usr/apache/bin/apachectl start
Then open your browser
http://localhost or http://127.0.0.1
For other IP address , you have to open your httpd.conf
then modify the default address 127.0.0.1 using your x.x.x.x IP address or your host name ( for valid dns )in " Server Name" line:
ServerName x.x.x.x
Check the current status: 'svcs -l apache[2]'
Restarting/reloading can be done through apachectl (/usr/apache[2]/bin/apachectl) but 'svcadm refresh apache[2]' is the preferred method.
Disclaimer
Welcome to my blog. As you have already noticed, I am using this blog as my diary. Not all the views, tips & tricks presented here are of my own. Many of them are collected from various places of the web. If any person or organization have any problem with any post or piece of post, please feel free to report it to me. I will delete it from my blog. Happy reading.