LinuxQuestions.org
Help answer threads with 0 replies.
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 02-16-2006, 04:29 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
svcadm: Pattern 'apache' doesn't match any instances


Since I have problems with the mod_perl in apache2, I'm thinking of staying under apache1.3.
It's also preinstalled in solaris 10 and it has the mod_perl.
But when I do "svcadm clear apache", I get:
Quote:
svcadm: Pattern 'apache' doesn't match any instances
What is wrong? Isn't apache fully installed?
Thanks for any help. I'm used that nothing works right away and I'm conscious that I have no experience with solaris but it's really the first that I just can't make it further. Making run apache and perl shouldn't be that difficult. I would really be thanksfull if I'd get it to work.
Thanks.
 
Old 02-16-2006, 04:54 AM   #2
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
Try "svsc -a apache" to find out what apache the system think is installed.
 
Old 02-16-2006, 05:09 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
Try "svsc -a apache" to find out what apache the system think is installed.
Quote:
#svcs -a apache
svcs: -a ignored when used with arguments.
svcs: Pattern 'apache' doesn't match any instances
STATE STIME FMRI
when doing ./apachectl start I also get an error message saying
Quote:
./apachectl start: httpd could not be started
But I can't find the logs to see the reason. Under /var/log/ap_error.log there is only unsignificant error messages, and /var/apache/logs/error_log is empty. And under /var/svc/log/ there is no log file for apache, only for apache2.

Last edited by xpucto; 02-16-2006 at 05:31 AM.
 
Old 02-16-2006, 07:59 AM   #4
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
Sorry, I mean "svcs -a | grep apache"
 
Old 02-16-2006, 08:19 AM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Hier the result:
Quote:
svcs -a | grep apache
legacy_run 13:43:05 lrc:/etc/rc3_d/S50apache
online 13:49:44 svc:/network/http:apache2
 
Old 02-16-2006, 05:02 PM   #6
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 should use apache2 as pattern.
 
Old 02-17-2006, 03:51 AM   #7
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jlliagre
You should use apache2 as pattern.
What do you mean? Use apache2 or having apache2 as pattern calling apache1.3?
 
Old 02-17-2006, 04:31 AM   #8
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
Okay, I didn't got you wanted to target 1.3 as you were using svcadm.

You can't use the svcadm command with that apache version, as it isn't managed by the SMF framework but is in "legacy" mode (i.e. /etc/rc.*).

Moreover, "svcadm clear" is meant to clear a service which is in the maintenance state, while no such state exists with legacy services.

Finally, you have both apache and apache2 started on your server, which means only the first one launched will be functional, should both are set to listen on port 80.
 
Old 02-19-2006, 07:30 AM   #9
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
apache 1 is a legacy script; apache 2 is a service. There are only so many options with the svcs/svcadm command that you can use with legacy run scripts.

To start/stop apache 1, use the script /etc/init.d/apache.

It's config file is /etc/apache/httpd.conf, which you need to create by using the template httpd.conf-example.
 
  


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
printing pattern match and not whole line that matches pattern Avatar33 Programming 13 05-06-2009 06:17 AM
Multiple Apache instances on Debian solferino Debian 2 08-23-2005 08:44 AM
New instances of X? nagromo Linux - Software 2 04-16-2005 02:42 AM
Procmail: match pattern then pass to shell script essdeeay Linux - Software 1 11-08-2004 02:19 PM
2 instances of same printer fredws Mandriva 4 08-26-2003 12:02 PM

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

All times are GMT -5. The time now is 02:28 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