LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 01-26-2012, 02:23 PM   #1
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 400

Rep: Reputation: 41
Apache Service is Not Getting Started after Enabling it


Hi,


Why apache2 service is not getting started/getting into "running" state on my OpenSolaris VM Box?

Notes on OS:

Code:
bash-3.2# uname -a
SunOS dev-solaris 5.10 Generic_147441-01 i86pc i386 i86pc
bash-3.2#
Code:
bash-3.2# svcadm enable apache2
bash-3.2# svcadm restart apache2
Code:
bash-3.2# svcs -x apache2
svc:/network/http:apache2 (Apache 2 HTTP server)
 State: maintenance since Fri Jan 27 01:41:15 2012
Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.
   See: http://sun.com/msg/SMF-8000-KS
   See: httpd(8)
   See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.
bash-3.2#
Am I missing anything?

I just noticed that there is some error:

Reason: Start method exited with $SMF_EXIT_ERR_CONFIG.

The red colored phrase sounds like an environment variable but there is nothing being output:

Code:
bash-3.2# echo $SMF_EXIT_ERR_CONFIG

bash-3.2#
I have not made any changes to the configuration file though.

Last edited by devUnix; 01-26-2012 at 02:41 PM.
 
Old 01-26-2012, 02:50 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,159

Rep: Reputation: 202Reputation: 202Reputation: 202
Check the apache error log to see what it doesn't like about the conf. Could be there is some setup required to get it running even out of box.
 
Old 01-26-2012, 03:34 PM   #3
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 400

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by jhwilliams View Post
Check the apache error log to see what it doesn't like about the conf. Could be there is some setup required to get it running even out of box.
Dependencies are up:

Code:
bash-3.2# svcs -l apache2
fmri         svc:/network/http:apache2
name         Apache 2 HTTP server
enabled      true
state        maintenance
next_state   none
state_time   Fri Jan 27 01:41:15 2012
logfile      /var/svc/log/network-http:apache2.log
restarter    svc:/system/svc/restarter:default
contract_id
dependency   require_all/error svc:/milestone/network:default (online)
dependency   require_all/none svc:/system/filesystem/local:default (online)
dependency   optional_all/error svc:/system/filesystem/autofs:default (online)
bash-3.2#

The log does not reveal anything in particular:

Code:
bash-3.2# pwd
/var/svc/log

[ Jan 27 01:41:15 Enabled. ]
[ Jan 27 01:41:15 Executing start method ("/lib/svc/method/http-apache2 start") ]
[ Jan 27 01:41:15 Method "start" exited with status 96 ]
[ Jan 27 01:42:25 Rereading configuration. ]
[ Jan 27 02:54:50 Rereading configuration. ]
bash-3.2#

bash-3.2# pwd
/var/apache2
bash-3.2# ls -ltr logs
total 0
bash-3.2#
Where else can the Apache Error Log be found?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dansguardian 2.10.0.3 - no service to be started ? TechnoBod Linux - Software 1 02-18-2009 04:41 AM
iptables service not started karimasif Linux - Kernel 0 09-01-2007 03:44 PM
Mysql service not getitng started ZAMO Linux - Software 4 04-25-2007 01:18 AM
LDAP service is not getting started dhanju Linux - Networking 0 01-06-2006 03:36 AM
Telnet service cannot be started! supermyself Linux - Networking 2 06-09-2005 11:46 AM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration