Apache 2 on Solaris 10

por | 30 enero, 2007

Version 1.03 January 18, 2006

by: Mel Lester Jr. (meljr@meljr.com)

Apache 2.xx is included with Solaris 10. A few configuration details need to be addressed prior to starting Apache 2.xx:

  1. Login as root
         wired# _
        
  2. Copy the file, /etc/apache2/httpd.conf-example to /etc/apache2/httpd.conf
         wired# cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf
        
  3. Edit /etc/apache2/httpd.conf
    • Set ServerName if necessary (default is 127.0.0.1)
    • Set ServerAdmin to a valid email address
  4. From the command line type:
         wired# svcadm enable apache2
        

That is all it takes to to start the basic Apache 2 web server bundled with Solaris 10. In fact, the Apache 2 web service should persist through server and/or zone boots. The actual web pages are located in the /var/apache2/htdocs directory by default.