Loading...


bookmark - Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10

Basic Setup For Apache In Solaris 10 - An step by step guide to configure an Apache web server in Solaris 10

 
 Discussion by Andres Martinez Andrade with 2 Replies.
 Last Update: June 1, 2009, 1:54 pm ( View Rated (1) )
 
bookmark - Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10  
Quickly Post to Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 w/o signup Share Info about Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 using Facebook, Twitter etc. email your friend about Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

HOW TO SETUP APACHE SERVER IN SOLARIS 10

Apache Web Server is already included and installed in Solaris 10 (Update 08/07).

Normally it is already running as a service, but it requires some configuration to make it run as you desire.


I will use the '#' to indicate the commands you should execute as root, and '%' to indicate it is a command to run as user.


1. Stop the web server

# svcadm disable svc:/network/http:apache2

2. Copy the file /etc/apache2/httpd.conf-example to /etc/apache2/httpd.conf. The file 'httpd.conf-example' contains an example of how to configure your webserver, so it is easy to copy and modify this file to get your customized config.

# cp /etc/apache2/httpd.conf-example /etc/apache2/httpd.conf.

3. Open the file using a text editor , and locate the following line in the file:

### Section 2: 'Main' server configuration

4. After this line we will find some important lines. Assure the user and group are set to 'nobody'. The corresponding lines should be like this:

User nobody
Group nobody

5. Set the server's admin. email:

ServerAdmin admin@mydomain.com

6. Also set this value on:

UseCanonicalName On

7. Find the following line containing 'Options Indexes', it should have the following value:

Options Indexes FollowSymLinks MultiViews

8. Locate the following lines and set the name of the directory for webpages. For example I will use 'WWW', this means that all users should create a directory with this name inside their home directory and store their webpages there. Note that the permissions of the 'WWW' directory should be 755 and for webpages in most cases 644.

<IfModule mod_userdir.c>
UserDir WWW
</IfModule>

9. Enable the use of CGI in the user's webpage directory; in this example for the 'WWW' directory.

<Directory /home/*/WWW>
Options +ExecCGI
</Directory>

10. Also this line should just like this to enable CGI:

AddHandler cgi-script .cgi .pl

11. Finally...Enable the webserver again:
# svcadm enable svc:/network/http:apache2

Now you have an Apache webserver ready in you Solaris 10!

Note that you may require additional configuration such as TCP Wrappers in order to make your webserver available to others in you network (or the Internet) and maintain security. I will post about this in the next days.

---
AndresMtzA

   Thu Dec 13, 2007    Reply         

concise although complete, I love this tutorial, congrats.
I don't see the "Listen" section, I guess this is what you mean with "computers on your network", because like this I suppose that the service can be used only from localhost.

   Thu Jan 3, 2008    Reply         

Basic Setup For Apache In Solaris 10 - An step by step guide to configure an Apache web server in Solaris 10Basic Setup For Apache In Solaris 10

Replying to yordan

 I try to do the procedure found in the address http://www.Astahost.Com/info.Php/Basic-Setup-Apache-Solaris-10_t17485.Html#opinion , but I don't found this fragment:<Directory /home/*/WWW>Options +ExecCGI</Directory> I found one similar. Exists another values  who can be near at this line "Options +ExecCGI" ?

-reply by Rodrigo







   Mon Jun 1, 2009    Reply         


Quickly Post to Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 w/o signup Share Info about Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 using Facebook, Twitter etc. email your friend about Basic Setup For Apache In Solaris 10 An step by step guide to configure an Apache web server in Solaris 10 Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

Problem How To Setup Vhost On Apac...

i am these dayz trying to setup pache so that in future i will start hosting of mine iste from mine PC last week i had deicded to check host more than one domain from mine PC. i am using apache 2 and using free DNS hosting servioce for mine domain i had read lots of help tutorials about setting vhos ...more

   11-Jul-2006    Reply         

Setting Up Fedora Core For Web Host...

On several occasions, I have attempted to install Linux on my computer in a dual boot format to learn how to use Linux and more importantly, learn how to set up a web server. In the past, I have installed a couple of versions of Red Hat, Unbuntu, Gentoox, GoblinX, and now a couple of versions ...more

   30-Nov-2007    Reply         

Complete Guide Install Run And Ma...

Complete guide: Install, Run and Manage Webserver on Ubuntu: Chapter 1 A Brief Introduction to the whole Tutorial Series: Target Audience: Absolute Beginners to Web Development, especially for learning the basics of web server ...more

   11-Dec-2010    Reply         

Shmmni, Shmseg, Shmmax : How To Know The Current Value On Solaris ? I would like to know the current value, how to read the value currentl   Shmmni, Shmseg, Shmmax : How To Know The Current Value On Solaris ? I would like to know the current value, how to read the value currentl (6) (10) Why Solaris Is Different To Other Unix? a general description of some diferences of Solaris 10  Why Solaris Is Different To Other Unix? a general description of some diferences of Solaris 10