Hello everyone I'm new to this community just got in last week. I got 2 sparc servers that I'm doing a fresh install of Solaris 10. The version of solaris by default is version 2.0.58 . Using Opencsw I installed v 2.2.22 . I notice it was installed on /opt/csw/apache2 however the default apache 2.0.58 is still running. How can I tell apache to use the new version?
In other hand I also installed phpmyadmin but I cant find it on the /opt/csw directory.
Any help will be appreciated.
asked: 2013-04-08 by: joepr
bonivart answers:
You can use the svc* commands to manage services. First take a look at services with apache2 in the name:
# svcs -a | grep apache2
disabled Mar_15 svc:/network/http:apache2
online 22:32:52 svc:/network/cswapache2:default
Here you can see that on my system the Solaris provided apache2 service is disabled and the one from CSW is online. You can control this with "svcadm". On your system you may need to:
# svcadm disable http:apache2
# svcadm enable cswapache2
Dagobert answers:
The phpmyadmin installs in /opt/csw/share/www/phpmyadmin. As you can use it with different webservers you need to link it into the webspace of your apache2, like
ln -s /opt/csw/share/www/phpmyadmin /opt/csw/apache2/share/htdocs/phpmyadmin
Dagobert answers:
The phpmyadmin installs in /opt/csw/share/www/phpmyadmin. As you can use it with different webservers you need to link it into the webspace of your apache2, like
ln -s /opt/csw/share/www/phpmyadmin /opt/csw/apache2/share/htdocs/phpmyadmin
joepr answers:
Hello Bonivart
Thanks so much for the fast reply . Running on my server
# svcs -a | grep apache2
online 16:58:36 svc:/network/http:apache2 maintenance 16:58:34 svc:/network/cswapache2:default
So I disable
# svcadm disable http:apache2
I restarted the entire server and now
# svcs -a | grep apache2
disabled 17:02:41 svc:/network/http:apache2 maintenance 17:02:59 svc:/network/cswapache2:default
bonivart answers:
As you can see CSW Apache is in a state of maintenance which is not good, you need to figure out why that is so. First place to look is the log file for that service.
# svcs -l cswapache2
fmri svc:/network/cswapache2:default
enabled true
state online
next_state none
state_time Mon Apr 08 22:32:52 2013
logfile /var/svc/log/network-cswapache2:default.log
restarter svc:/system/svc/restarter:default
contract_id 144
dependency require_all/none svc:/system/filesystem/local (online)
dependency require_all/none svc:/network/loopback (online)
And then look at the end of that file if that gives any clues.
# tail /var/svc/log/network-cswapache2:default.log
joepr answers:
Thanks I will get to that tomorrow Since I'm out of the office.
I really appreciate all the help :)
joepr answers:
After running
# tail /var/svc/log/network-cswapache2:default.log
httpd: Syntax error on line 65 of /opt/csw/apache2/etc/httpd.conf: Cannot load /opt/csw/apache2/libexec/mod_authnz_ldap.so into server: ld.so.1: httpd.prefork: fatal: relocation error: file /opt/csw/lib/sparcv8/libldap-2.4.so.2: symbol h_errno: referenced symbol not found [ Apr 8 17:02:59 Method "start" exited with status 1 ]
bonivart answers:
What version of Solaris 10 do you use?
# cat /etc/release
Oracle Solaris 10 8/11 s10x_u10wos_17b X86
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
joepr answers:
Hello Bonivart Here's my output
#cat /etc/release
Solaris 10 11/06 s10s_u3wos_10 SPARC
Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 14 November 2006
bonivart answers:
As you can see your version of Solaris 10 is 5 years older than mine. See the "u3" there in the middle of the first line? That means Update 3, I have Update 10 and we usually build for Update 8 so you basically need to upgrade otherwise your system libs will not have what it takes to run our binaries.
Note that Solaris is a free download even if you don't have a support contract with which you can get patches.
joepr answers:
Thanks for the help. That makes sense, I will like to ask.
If I download the ISO sol-10-u11-ga-sparc-dvd.iso directly from Oracle could I upgrade to that new build without loosing all the configuration I already made on the server?
Dagobert answers:
Sure, you can do so with LiveUpgrade, please see lucreate(1m) for details.
joepr answers:
Hello support
Just want to inform that upgrading to the latest Solaris 10 version solve my problem. I'm able to download and install the software without any issues so far. My problem is that the apache that is running at the system startup is the one locate on /var/apache/ . I will like to use the one I download via CSW
Here's my output
# svcs -a | grep apache
legacy_run 16:52:56 lrc:/etc/rc3_d/S50apache
disabled 16:51:59 svc:/network/http:apache2
online 16:52:19 svc:/network/cswapache2:default
How can I disable that old Apache/1.3.41 version?
joepr answers:
Hello just to notify for beginners on Solaris like me to disable the old apache version
# /etc/rc3.d/S50apache stop
This stop the service
Then remove the script that auto start that apache version
# rm /etc/rc3.d/S50apache
Thanks to all the experts for the help provided.