Sie sind auf Seite 1von 2

How to install apache (http) on Solaris 9

1) Install the following packages in the exact sequence.

libgcc-3.4.6-sol9-sparc-local.gz
expat-2.0.1-sol9-sparc-local.gz
libiconv-1.11-sol9-sparc-local.gz
openssl-0.9.8j-sol9-sparc-local.gz
zlib-1.2.3-sol9-sparc-local.gz
db-4.2.52.NC-sol9-sparc-local.gz
sasl-2.1.21-sol9-sparc-local.gz
libintl-3.4.0-sol9-sparc-local.gz
openldap-2.4.11-sol9-sparc-local.gz
apache-2.2.11-sol9-sparc-local.gz

All packages can be found in http://www.sunfreeware.com/

Hint for installing the packages:


1) gzip-d package_name
2) pkgadd –d package_name

In case any of them (e.g. openssl) does not get installed (previous version exists, run
pkgrm name (e.g. SMCossl)
This name you can get when you try to install the package.
In order to see more information (if exists, etc) before any action, go to:
/usr/local/ssl/bin/ and execute ./openssl
In the new shell, type version in order to get the openssl version installed.

2) For sasl2, create a soft link for the plugins (default is /usr/loca//lib/sasl2).
ln –sf /usr/local/lib/sasl2 /usr/lib/sasl2 (second one does not exist)

3) Put the new libraries and executables in the path:


e.g. /.bashrc -> append PATH with /usr/local/apache/bin and /usr/local/ssl/bin and
/usr/local/ssl/lib in your LD_LIBRARY_PATH (if exists).

4) Now go to /usr/local/apache2/conf and edit the httpd.conf file to fit your local needs. I
suggest you read the files in the conf directory carefully along with some Apache
documentation to help you do the configuration. Further, if you are going to use the
mod_ssl, you will have to do some further configuration. Any good book on Apache
should have a discussion of this. If you do not need mod_ssl, you can edit httpd.conf
to comment out the lines related to ssl.
5) Create a script that will start apache server during a reboot.

Package

Attached one is an example. Also give chmod +x to file for execution rights.
Create a soft link to /etc/rc2.d in order to have the service started during boot time.
ln –sf /etc/init.d/apachesrv /etc/rc2.d/S99apache

6) You can now open a browser and attempt to contact your server with a URL like
http://localhost:80 or similar or go to another machine and try to get to your server
from there. You will have to put web documents in your DocumentRoot directory to
test in more detail.
You can also add any more modules like php, mod_perl, etc. if you intend to offer
more complicated services.

Sources:
http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html
http://www.sunfreeware.com/indexsparc9.html

Das könnte Ihnen auch gefallen