svcadm: Pattern 'apache' doesn't match any instances
Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.