1. Apache 2.4 (OmniOS extra repository)
This is future default option for Apache
- install Apache: pkg install server/apache-24
- update to newest 22.01 or 21.06
- update to 22.dev
on start problems after an update (or if you have forgotten to install Apache first), run:
/etc/init.d/napp-it start
This is a beta, grouping, clustering or remote repication not working!
To downgrade from 22.dev, download 21.06 , 22.01, 22.02 or 22.03 (use mini_httpd)
optionally stop Apache manually via pkill -f bin/httpd
and restart mini_httpd via /etc/init.d/napp-it restart
Manual setup of Apache on OmniOS
Install
pkg install server/apache-24
copy service manifest template /var/web-gui/data/tools/httpd/apache/apache-24.xml to
/lib/svc/manifest/ooce/apache-24.xml
copy Apache config template (napp-it) /var/web-gui/data/tools/httpd/apache/httpd.conf to
/etc/opt/ooce/apache-2.4/httpd.conf
set logfolder writable to Apache user (or everyone)
/bin/chmod -R 777 /var/log/opt/ooce/apache-2.4/*
Setup
import service manifest
svccfg import /lib/svc/manifest/ooce/apache-24.xml
svcadm restart manifest-import
edit config
/etc/opt/ooce/apache-2.4/httpd.conf
a default see /var/web-gui/_my/tools/apache/httpd.conf.napp-it
svcadm enable apache24
set logfolder writable to Apache user (or everyone)
/bin/chmod -R 777 /var/log/opt/ooce/apache-2.4/*
check service state
svcs -xv apache24
check service log
cat /var/svc/log/network-http:apache24.log
ServerRoot
/opt/ooce/apache-2.4
Configfiles:
/etc/opt/ooce/apache-2.4/
A default http.conf file for napp-it on port 83
/var/web-gui/_my/tools/apache/httpd.conf.napp-it
optional manual start instead smf:
/opt/ooce/apache-2.4/bin/apachectl -k start -f /etc/opt/ooce/apache-2.4/httpd.conf
OPTIONS
## stop it ##
apachectl -k stop
## restart it ##
apachectl -k restart
## graceful restart it ##
apachectl -k graceful
## Start it ##
apachectl -f /path/to/your/httpd.conf
apachectl -f /usr/local/apache2/conf/httpd.conf
SSL
default config files and private keys, see (newest napp-it 22.dev)
/var/web-gui/_my/tools/apache/
To switch from mini_httpd to Apache:
- rename /etc/init.d/napp-it to napp-it.disabled
- configure Apache for port 81 and 82 (443)
If you need PHP
pkg install application/php-74
pkg install application/php-common
https://pkg.omnios.org/r151040/extra/en/search.shtml?token=php&action=Search
2. AMP Stack for OmniOS (pkgsrc)
Nov 30, 2021
The installer is updated by KS to 20.4.2 (Apache security fix)
Installer is based on the SmartOS-Repo 2020Q4 lts
see http://pkgsrc.joyent.com/packages/SmartOS/2020Q4/x86 64/All//
Install via:
wget -O - www.napp-it.org/amp-20.4.2 | perl
########################################################
## Setup amp ##
## - Apache 2.4.51 ##
## - MySQL 5.7.32 ##
## - Redis 6.2.3 ##
## - PHP 7.4.13 ##
## - phpMyAdmin 4.9.7 ##
########################################################
Mar 16, 2020
Installer is based on the SmartOS-Repo 2020Q4 lts
see http://pkgsrc.joyent.com/packages/SmartOS/2020Q4/x86 64/All//
Install via:
wget -O - www.napp-it.org/amp-20.4.1 | perl
########################################################
## Setup amp ##
## - Apache 2.46bn2 ##
## - MySQL 5.7.32 ##
## - Redis 6.0.9 ##
## - PHP 7.4.13 ##
## - phpMyAdmin 4.9.7 ##
########################################################
Mar 03, 2019
The installer is updated by KS to 18.4.1
Installer is based on the SmartOS-Repo 2018Q4
see https://pkgsrc.joyent.com/packages/SmartOS/2018Q4/x86 64/All/
Install via:
wget -O - www.napp-it.org/amp-18.4.1 | perl
########################################################
## v 18.4.1 based on SmartOS repo 2018Q4 ##
## - Apache 2.4.37 ##
## - MySQL 5.7.24 ##
## - Redis 5.0.3 ##
## - PHP 7.3.1 ##
## - phpMyAdmin 4.8.5 ##
########################################################
Feb 13, 2017
This is a community project provided and maintained by zos
https://www.hardwareluxx.de/community/f101/zfs-stammtisch-570052-298.html#post25300760
Installer is based on the SmartOS-Repo 2016Q4 and tested on OmniOS 151020
see https://pkgsrc.joyent.com/packages/SmartOS/2016Q4/x86 64/All/
Important: Do not use this installer for upgrading, because upgrading is not supported
https://docs.joyent.com/public-cloud/containers/infrastructure/images/smartos/managing-a-smartos-instance/installing-software/joyent-package-repositories-and-using-pkgsrc/package-management/pkgsrc-releases
There is no support for Apache. Use this installer as a help for your own setup
Install:
wget -O - www.napp-it.org/amp-16.4.1 | perl
- Apache 2.4.
- mySQL 5.7 (database)
- Redis (ultrafast in memory database)
- PHP 7
- PHPMyadmin 4.6.5.2
- Last Installer keeps available as amp-15.4.2
If your webserver is reachable from the Internet, you should block all services that are only needed locally like Redis on port 6379 (bind it to localhost if you use it with Apache or disable via svcadm disable redis), PHPMyadmin or Mysql and care about Apache settings in general.
Menus related to this add-on are not available in the base menu set sol (Solaris), see About settings
This is a community project maintained by zos
Discuss at (there is no official support for this add-on from napp-it, add-on was published here):
https://www.hardwareluxx.de/community/f101/zfs-stammtisch-570052-298.html#post25300760
http://hardforum.com//forumdisplay.php?f=29
http://forums.servethehome.com/index.php?forums/solaris-nexenta-openindiana-and-napp-it.26/ (english)
http://www.hardwareluxx.de/community/f101/zfs-stammtisch-570052.html (german)
Infos for last version!!
Installer with php7 (May, 31 2016):
wget -O - www.napp-it.org/amp-php7-16.1.2 | perl
last version
wget -O - www.napp-it.org/amp-php7-15.4.1 | perl
Infos:
If you have not installed php7, you must edit /opt/local/etc/httpd/httpd_php.conf
from
# add php specific settings
#LoadModules
LoadModule php7_module lib/httpd/mod_php7.so
#AddHandler
AddHandler application/x-httpd-php .php
to
# add php specific settings
#LoadModules
LoadModule php5_module lib/httpd/mod_php5.so
#AddHandler
AddHandler application/x-httpd-php .php