Welcome Guest ( Log In | Register )




                Web Hosting

 
Reply to this topicNew Topic
Basic Setup For Apache In Solaris 10, An step by step guide to configure an Apache web server in Solaris 10
Andres Martinez ...
post Dec 14 2007, 06:24 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 19
Joined: 14-December 07
From: Mexico
Member No.: 26,890


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

Go to the top of the page
 
+Quote Post
yordan
post Jan 3 2008, 04:24 PM
Post #2


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 2,292
Joined: 16-August 05
Member No.: 7,896
myCENTs:99.39


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.
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   8 bridenhosen 1,738 5th January 2009 - 01:38 PM
Last post by: iG-Ernesto Gramcko
No New Posts   10 Kardus 1,677 20th December 2008 - 02:31 PM
Last post by: wutske
No New Posts   7 solanky 3,315 19th December 2008 - 09:34 AM
Last post by: iG-preety sharma
No New Posts 3 abdo 357 18th December 2008 - 10:36 AM
Last post by: wutske
No New Posts 11 Propeng 1,373 17th December 2008 - 10:40 PM
Last post by: yordan
No New Posts   8 FirefoxRocks 782 16th December 2008 - 10:49 PM
Last post by: xboxrulz
No New Posts   11 TheCapo 448 13th December 2008 - 01:07 PM
Last post by: tek3D
No New Posts   17 l337 Nurse Pedestrian 9,003 12th December 2008 - 02:52 AM
Last post by: iG-biswarup ghosh
No New Posts   11 ViRuaL 2,360 10th December 2008 - 10:14 PM
Last post by: iG-nick
No New Posts   5 khalilov 356 1st November 2008 - 06:58 PM
Last post by: sparkx
No New Posts   16 r3d 4,093 8th October 2008 - 03:28 PM
Last post by: ml01172
No New Posts   5 miCRoSCoPiC^eaRthLinG 1,838 21st September 2008 - 09:25 PM
Last post by: yordan
No New Posts   5 tux_linux 615 19th September 2008 - 01:39 PM
Last post by: pyost
No New Posts   8 dhanesh 1,599 10th September 2008 - 02:25 PM
Last post by: Guest
No New Posts   1 chappill 211 8th September 2008 - 01:35 PM
Last post by: yordan