LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-03-2009, 11:30 AM   #1
Defution
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Rep: Reputation: 0
Question Configure Web Server in Solaris 10 sparc


hello

i got problem when ive try to set the web server
ive put these coding already
apahce2

-svcadm disable svc:/network/http:apache2

-copy file /etc/apache2/httpd.conf-example to /etc/apache2/httpd.conf

-User nobody
Group nobody

-ServerAdmin admin@mydomain.com

-UseCanonicalName On

-Options Indexes FollowSymLinks MultiViews

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

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

-AddHandler cgi-script .cgi .pl

-svcadm enable svc:/network/http:apache2

ive put all these coding already
when i type
svcd -a | grep -i http <--- for status check

its shows my server in maintenance..
when i try to use web browser and put http://localhost
i cant reach the apache server..
why?
if anybody noes bout it please tell me.. TQ
 
Old 09-03-2009, 11:56 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
...
<Directory /home/*/WWW>
...
I guess this is your problem.
Solaris uses the /home directory for automounting, so you have to use /export/home/*/WWW in the above directive.
 
Old 09-04-2009, 09:23 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You might have a look to what SMF has to say about it:
Code:
svcs -xv http
and also to the web server error log files: /var/apache2/2.2/logs/error_log
 
Old 09-08-2009, 04:27 PM   #4
Defution
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
ive check all the problem in errorlog
when everything ive setup back

folder that ive check is in
/var/svc/log/network-http:apache2.log

its shows that
errorlog - Executing start method ("/lib/svc/method/http-apache2 start")

and

when u use web browser and put http://localhost
its shows that
error popup - "The connection was refused where attempting to connect localhost"

any1 can help me? thanks a lot

Last edited by Defution; 09-08-2009 at 04:30 PM. Reason: adding text
 
Old 09-08-2009, 09:57 PM   #5
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Other than what's already been said, what does 'svcs -xv' show?

what about after you run
svcadm clear network/http:apache2
 
Old 09-09-2009, 07:18 AM   #6
Defution
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jlliagre View Post
You might have a look to what SMF has to say about it:
Code:
svcs -xv http
and also to the web server error log files: /var/apache2/2.2/logs/error_log
im sorry to ask, where should i use this "svcs -xv http" ?
in terminal?

thank you
 
Old 09-09-2009, 09:22 AM   #7
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally Posted by Defution View Post
im sorry to ask, where should i use this "svcs -xv http" ?
in terminal?

thank you
Yes in a terminal window.
 
Old 09-09-2009, 08:56 PM   #8
Defution
LQ Newbie
 
Registered: Aug 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Blinker_Fluid View Post
Yes in a terminal window.
ive set in my sun solaris terminal

code:
svcs -xv http

the code appear:

svc:/network/http:apache2 ( Apache2 HTTP Server)
State: Maintenance since Thu Sep 10 09:04:32 2009
Reason: Start method failed repeatedly, last exited with status 1.
See: http://sun.com/msg/SMF-8000-KS
See: man -M /usr/apache2/man -s 8 httpd
See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.


is there any problem wit my webserver setting? ive also check in root (localhost:10000) i also see my webserver status in maintenance, still need to know why its happen? i got fren who also got sun solaris and he use the same code like me, his service successful with all service online. both of us use the same code in httpd.conf, why i cant up my service but he can?

thank you so much
 
Old 09-10-2009, 12:21 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It is unclear what the web server error log file contains in your case. Can you post its last lines ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure VNC server on solaris 8 ? talat Solaris / OpenSolaris 15 09-17-2009 06:19 AM
Solaris 8.1.7 on SPARC, how I get it? saudoi Solaris / OpenSolaris 2 06-02-2005 09:39 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Patching Solaris 9 on Sparc pcdap Solaris / OpenSolaris 1 04-28-2004 02:30 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration