I am attempting to install Apache on OmniOS. I followed the instructions here: option 2 https://wiki.openindiana.org/oi/3.+Installing+software+and+package+management
Ran the command:
echo $PATH
results in/opt/local/sbin:/opt/local/bin:/usr/gnu/bin:/usr/sbin:/sbin
curl https://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2016Q4-x86_64.tar.gz | gtar -zxpf - -C /
pkgin -y update
pkgin -y install apache-2.4.6
resulted in the messagesCalculating dependencies...done
and thennothing to do
I can not find the apache service or configuration directory as they are described here: https://docs.joyent.com/public-cloud/instances/infrastructure/images/smartos/apache
/opt/local/etc/httpd
The configuration directory for Apachesvcs pkgsrc/apache
Checking service for Apache
Server Info:
uname -v
results inomnios-r151026-d9b45886bd
- Running x86
- Also running SunONE webserver
Though incomplete, my commands did make a change. My Perl scripts can no longer find DBI.
Why does the Apache install say there is nothing to do
? What am I missing?
UPDATE
- Ran
which apache2
resulted inno apache2
- Ran
pkgin list
to list all installed packages. Only apache
reference isapache-maven-3.5.4
- Ran
find . -name '*apache*'
in the following directories:etc
nothingopt
found:- vim, el, and elc files in
SUNWspro
org-apache-tools-ant-module
files and folder innetbeans/3.5V11/modules/patches
apache
folder inSUNWwbsvr/plugins/java/samples/webapps/jstl/src/org
which contains java files- vim, tag, el and elc files in
sfw
— also anapache
folder insfw
which contains readme/bash type files for apache/php and one so file apache-maven-3.5.4
files/folders inlocal
org-apache-xml-resolver*
files insunstudio12.1
- vim, el, and elc files in
- ‘usr’ found:
- 2 vims in
share/vim/vim80/syntax
apache-fcgi.conf
inlib/python2.7/vendor-packages/cherrypy/scaffold
- 2 vims in
- ‘var’ nothing
As far as I can tell, the binaries have not been installed
2
Answers
I tried running
pkgin -y install apache-2
and it worked. It installedapache-2.4.3
. Perhapsapache-2.4.6
does not exist in the repository.This mean apache is already installed on the Linux system. To run below command which will tell the location of the system binary.
for the configuration folder look for below directory: