Nov 21, 2009

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

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Solaris

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

Andres Martinez Andrade
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

 

 

 


Comment/Reply (w/o sign-up)

yordan
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.

Comment/Reply (w/o sign-up)

(G)Rodrigo
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

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

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Setup Apache Solaris 10 Configure Apache Web Server Solaris 10

  1. Why Solaris Is Different To Other Unix? - a general description of some diferences of Solaris 10 (10)
    Why SOLARIS is different to other UNIX? Well, Solaris has some important differences with other
    Unix. For example the FileSystem. They use ZFile which is file system created by Sun Microsystems an
    it is a 128bits file system capable for managing a unlimited capacity (2^128 bytes! it's a very
    huge number!) which could be a single Hard Disk or multiple hard disks or a cluster of computer.
    Another difference is the Console managment which makes the creation of users, roles and permission
    a very fast and easy task by using some wizards and a graphical interface. It al...
  2. 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)
    I have problems when installing Oracle on Solaris. The database files are correctly copied, but the
    instance does not startup, in the alert file I have a message saying that the the shm parameters are
    not correct. How is it possible to know the current value of SHMMNI, SHMSEG, SHMMAX etc..., really
    reading them from the solaris kernel ? I inserted some values in /etc/system, but how to know if
    these new values have been taken into account ? The Oracle documentation says "ask the system
    administrator". Unfortunately, I am currently the solaris sytem administrator !...
  3. How Do I Install Solaris? - (8)
  4. Whats A Good Graphics Editor For Solaris 10 ? - (8)
    I've just download Solaris from Sun Download Center. I also installed it. But I need to do some
    artwork with photoshop. I don't have any graphic edior for this Operating System. I don't
    know what to do next, Does anyone know anyway to run a Win App on Solaris or a good Graphic Editor
    for Solaris?...
  5. Port Status - Solaris 10 (2)
    Hi ! I wonder if there is any special command that shows which programs are listening to which
    network ports ? I have tried: # ps -ef Then I get something like this: CODE UID   PID  PPID
      C    STIME TTY         TIME CMD    root     0     0   0 07:51:10 ?           0:09 sched    root
        1     0   0 07:51:10 ?           0:00 /sbin/init    root     2     0   0 07:51:10 ?          
    0:00 pageout    root     3     0   0 07:51:10 ?           0:01 fsflush webservd   262   247   0
    07:51:34 ?           0:00 /usr/apache2/bin/httpd -k start    root     7     1   0 07...
  6. Someone from the Sun? - Solaris OS family (18)
    I've use Solaris 9 on X86 platform and i think that nobody does a best work than Sun
    Microsystem: Stabe, Fast, Secure the only problem was my Net Card and the hardware in general,
    it's very difficult to configure it /sad.gif" style="vertical-align:middle" emoid=":("
    border="0" alt="sad.gif" />...
  7. DNS Server On Solaris 10 - How to setup DNS server on solaris 10 (2)
    Hi ! I wonder if anybody knows how to set up a DNS server on Solaris 10. I know that the service
    should be started with: # svadm enable network/dns/server But when I write: # svcs -l
    /network/dns/server I get: fmri svc:/network/dns/server:default enabled false state
    disabled next_state none state_time Wed Sep 28 11:53:52 2005 restarter
    svc:/system/svc/restarter:default dependency require_all/none file://localhost/etc/named.conf
    (absent) dependency require_all/none svc:/system/filesystem/minimal (online) dependency
    require_any/error ...
  8. Named In Solaris - Named (1)
    Hi all I have configured Bind in Solaris Enterprise ..., Now I can dig but can't ping the
    server ..I have make all necessary entries in /etc/resolv.conf..but still can dig nameserver but
    can't ping why??? I m new to solaris but have configured in Linux lot of times.. help me plzz
    THX ...
  9. Mounting Ext2 Filesystem In Solaris 10 - (1)
    Hello everyone, I decided to make a move from Linux, to Solaris, for the time being, and was
    wondering how I would go about mounting an ext2 filesystem under Solaris. I used it for all my
    backup stuff, which I moved to another hard disk, and now that I'm on Solaris, I need it back....



Looking for basic, setup, apache, solaris, 10, step, step, guide, configure, apache, web, server, solaris, 10

See Also,

*SIMILAR VIDEOS*
Searching Video's for basic, setup, apache, solaris, 10, step, step, guide, configure, apache, web, server, solaris, 10
advertisement



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

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com